Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(289)

Issue 9430051: Add native extensions to the Dart shell, on the linux platform. (Closed)

Created:
8 years, 10 months ago by Bill Hesse
Modified:
8 years, 10 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Add native extensions to the Dart shell, on the linux platform. BUG= TEST=standalone/TestExtensionTest Committed: https://code.google.com/p/dart/source/detail?r=4529

Patch Set 1 #

Patch Set 2 : Remove stray edits. #

Total comments: 8

Patch Set 3 : Address comments. #

Patch Set 4 : Fix Windows bugs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+253 lines, -2 lines) Patch
M runtime/bin/bin.gypi View 1 2 2 chunks +23 lines, -1 line 0 comments Download
M runtime/bin/builtin_impl_sources.gypi View 1 chunk +4 lines, -0 lines 0 comments Download
M runtime/bin/dartutils.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M runtime/bin/dartutils.cc View 1 2 2 chunks +10 lines, -0 lines 0 comments Download
A runtime/bin/extensions.h View 1 chunk +24 lines, -0 lines 0 comments Download
A runtime/bin/extensions_linux.cc View 1 2 1 chunk +45 lines, -0 lines 0 comments Download
A runtime/bin/extensions_macos.cc View 1 2 3 1 chunk +14 lines, -0 lines 0 comments Download
A runtime/bin/extensions_win.cc View 1 2 3 1 chunk +14 lines, -0 lines 0 comments Download
M runtime/bin/main.cc View 3 chunks +8 lines, -1 line 0 comments Download
A runtime/bin/test_extension_linux.cc View 1 1 chunk +40 lines, -0 lines 0 comments Download
M runtime/dart-runtime.gyp View 1 chunk +29 lines, -0 lines 0 comments Download
A tests/standalone/src/TestExtensionTest.dart View 1 chunk +16 lines, -0 lines 0 comments Download
A tests/standalone/src/test_extension.dart View 1 2 1 chunk +18 lines, -0 lines 0 comments Download
M tests/standalone/standalone.status View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Bill Hesse
All comments addressed. Symbolic links work for the .so files.
8 years, 10 months ago (2012-02-22 16:37:26 UTC) #1
Søren Gjesse
lgtm
8 years, 10 months ago (2012-02-23 07:47:27 UTC) #2
Mads Ager (google)
LGTM We need to get in a position where this is tested on the buildbots. ...
8 years, 10 months ago (2012-02-23 09:26:56 UTC) #3
Søren Gjesse
8 years, 10 months ago (2012-02-23 10:20:29 UTC) #4
https://chromiumcodereview.appspot.com/9430051/diff/16/runtime/bin/test_exten...
File runtime/bin/test_extension_linux.cc (right):

https://chromiumcodereview.appspot.com/9430051/diff/16/runtime/bin/test_exten...
runtime/bin/test_extension_linux.cc:13: extern "C" EXPORT_SYMBOL Dart_Handle
test_extension_Init(Dart_Handle library) {
On 2012/02/23 09:26:56, Mads Ager wrote:
> Maybe we should use lower-case 'init' as well? 

It was originally "init" and I suggested to change it to "Init" to somehow
conform to the Dart API "Dart_XxxYyy". Alternatively "test_extension" could be
"TestExtension" making it "TestExtension_Init". I have no strong opinion here.
Whatever we do extension writers will use "my_extension" or "MyExtension" or
"My_Extension" or "myExtension" or ...

Powered by Google App Engine
This is Rietveld 408576698