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

Issue 11362132: Change dart_no_snapshot to run native extensions. (Closed)

Created:
8 years, 1 month ago by Bill Hesse
Modified:
8 years, 1 month ago
CC:
reviews_dartlang.org, Ivan Posva
Visibility:
Public.

Description

Change dart_no_snapshot to run native extensions. BUG=standalone/test_extension_test Committed: https://code.google.com/p/dart/source/detail?r=14619

Patch Set 1 #

Total comments: 5

Patch Set 2 : Add comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -0 lines) Patch
M runtime/bin/bin.gypi View 1 3 chunks +11 lines, -0 lines 0 comments Download
M runtime/dart-runtime.gyp View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Bill Hesse
libdart has a separate target libdart_export with these changes, but there seems no reason to ...
8 years, 1 month ago (2012-11-07 10:09:22 UTC) #1
Mads Ager (google)
The change to export Dart_True on dart_nosnapshot is the right change. The other change looks ...
8 years, 1 month ago (2012-11-07 10:16:27 UTC) #2
Bill Hesse
http://codereview.chromium.org/11362132/diff/1/runtime/bin/bin.gypi File runtime/bin/bin.gypi (right): http://codereview.chromium.org/11362132/diff/1/runtime/bin/bin.gypi#newcode326 runtime/bin/bin.gypi:326: 'DART_SHARED_LIB', The only effect of DART_SHARED_LIB is to use ...
8 years, 1 month ago (2012-11-07 11:23:26 UTC) #3
Mads Ager (google)
lgtm http://codereview.chromium.org/11362132/diff/1/runtime/bin/bin.gypi File runtime/bin/bin.gypi (right): http://codereview.chromium.org/11362132/diff/1/runtime/bin/bin.gypi#newcode326 runtime/bin/bin.gypi:326: 'DART_SHARED_LIB', On 2012/11/07 11:23:26, Bill Hesse wrote: > ...
8 years, 1 month ago (2012-11-07 11:52:00 UTC) #4
Bill Hesse
8 years, 1 month ago (2012-11-07 12:04:13 UTC) #5
Ivan Posva
8 years, 1 month ago (2012-11-08 20:32:12 UTC) #6
DBC -ip

http://codereview.chromium.org/11362132/diff/1/runtime/bin/bin.gypi
File runtime/bin/bin.gypi (right):

http://codereview.chromium.org/11362132/diff/1/runtime/bin/bin.gypi#newcode326
runtime/bin/bin.gypi:326: 'DART_SHARED_LIB',
On 2012/11/07 11:52:00, Mads Ager wrote:
> On 2012/11/07 11:23:26, Bill Hesse wrote:
> > The only effect of DART_SHARED_LIB is to use _declspec(dllexport) (on
Windows)
> > or visibility("default") (on gcc) to make the Dart API visible to libraries
> that
> > link with this.  Perhaps it should be renamed to DART_EXPORT_API.  Shall I
do
> > that?

Siva and I discussed earlier today whether we should just change the default to
always export. And yes, we would change the name of the flag at that point as
well. Just having a comment for now is fine.

> 
> OK. This looked weird because of that naming. Add a comment for now?
> 
> > On 2012/11/07 10:16:27, Mads Ager wrote:
> > > This looks wrong.
> > > 
> > > 'type': 'static_library'
> > > 
> > > 'defines': [ 'DART_SHARED_LIB', ]
> > > 
> > > ???
> > 
>

http://codereview.chromium.org/11362132/diff/1/runtime/bin/bin.gypi#newcode479
runtime/bin/bin.gypi:479: # Extensions use this import library to link to the
API in dart.exe.
This is actually dart_no_snapshot.exe. Can you also add a clarification comment
that states whether all Dart_* are exported or is it only Dart_True? If only
Dart_True, why is that enough?

Powered by Google App Engine
This is Rietveld 408576698