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

Issue 8537023: Implement automatic loading of dart:core_native_fields library (Closed)

Created:
9 years, 1 month ago by siva
Modified:
9 years, 1 month ago
Reviewers:
Anton Muhin, Ivan Posva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Implement automatic loading of dart:core_native_fields library with predefined classes having native fields. Classes that need native fields in them can import this library and extend these predefined classes. Committed: https://code.google.com/p/dart/source/detail?r=1629

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 35

Patch Set 6 : '' #

Total comments: 4

Patch Set 7 : '' #

Total comments: 26

Patch Set 8 : '' #

Patch Set 9 : '' #

Total comments: 4

Patch Set 10 : '' #

Patch Set 11 : '' #

Patch Set 12 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+424 lines, -131 lines) Patch
M bin/builtin.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M bin/builtin.dart View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M bin/builtin_in.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +29 lines, -30 lines 0 comments Download
M bin/dartutils.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -1 line 0 comments Download
M bin/dartutils.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +8 lines, -2 lines 0 comments Download
M bin/eventhandler.dart View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M bin/gen_snapshot.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +56 lines, -22 lines 0 comments Download
M bin/main.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +7 lines, -4 lines 0 comments Download
M vm/class_finalizer.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +12 lines, -0 lines 0 comments Download
M vm/dart_api_impl_test.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +226 lines, -67 lines 0 comments Download
M vm/object.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M vm/object.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +36 lines, -0 lines 0 comments Download
M vm/object_store.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -0 lines 0 comments Download
M vm/object_store.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M vm/parser.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download
M vm/unit_test.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +29 lines, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
siva
9 years, 1 month ago (2011-11-12 01:28:38 UTC) #1
Anton Muhin
Siva, I couldn't give the new API a try as it doesn't apply cleanly to ...
9 years, 1 month ago (2011-11-13 16:19:32 UTC) #2
siva
Synched up to tot and addressed review comments. http://codereview.chromium.org/8537023/diff/3008/bin/builtin_in.cc File bin/builtin_in.cc (right): http://codereview.chromium.org/8537023/diff/3008/bin/builtin_in.cc#newcode99 bin/builtin_in.cc:99: ASSERT(Dart_IsValid(core_lib)); ...
9 years, 1 month ago (2011-11-15 02:16:52 UTC) #3
Anton Muhin
Great! LGTM w/ comments addressed. http://codereview.chromium.org/8537023/diff/3008/bin/eventhandler.dart File bin/eventhandler.dart (right): http://codereview.chromium.org/8537023/diff/3008/bin/eventhandler.dart#newcode7 bin/eventhandler.dart:7: class EventHandlerNativeWrapper extends NativeFieldWrapperClass1 ...
9 years, 1 month ago (2011-11-15 12:22:22 UTC) #4
siva
Ok Ivan you can take a look now. http://codereview.chromium.org/8537023/diff/3008/bin/eventhandler.dart File bin/eventhandler.dart (right): http://codereview.chromium.org/8537023/diff/3008/bin/eventhandler.dart#newcode7 bin/eventhandler.dart:7: class ...
9 years, 1 month ago (2011-11-15 19:42:49 UTC) #5
Ivan Posva
http://codereview.chromium.org/8537023/diff/19001/bin/dartutils.cc File bin/dartutils.cc (right): http://codereview.chromium.org/8537023/diff/19001/bin/dartutils.cc#newcode7 bin/dartutils.cc:7: const char* DartUtils::kBuiltinLibURL = "dart:builtin-lib"; Please drop the -lib ...
9 years, 1 month ago (2011-11-16 19:19:53 UTC) #6
siva
Addressed comments. http://codereview.chromium.org/8537023/diff/19001/bin/dartutils.cc File bin/dartutils.cc (right): http://codereview.chromium.org/8537023/diff/19001/bin/dartutils.cc#newcode7 bin/dartutils.cc:7: const char* DartUtils::kBuiltinLibURL = "dart:builtin-lib"; On 2011/11/16 ...
9 years, 1 month ago (2011-11-17 00:04:27 UTC) #7
Ivan Posva
LGTMwC -ip http://codereview.chromium.org/8537023/diff/28003/bin/builtin.dart File bin/builtin.dart (right): http://codereview.chromium.org/8537023/diff/28003/bin/builtin.dart#newcode6 bin/builtin.dart:6: #import("dart:nativewrappers"); As discussed you can add #import("dart:coreimpl"); ...
9 years, 1 month ago (2011-11-17 19:35:06 UTC) #8
siva
9 years, 1 month ago (2011-11-17 20:00:17 UTC) #9
http://codereview.chromium.org/8537023/diff/28003/bin/builtin.dart
File bin/builtin.dart (right):

http://codereview.chromium.org/8537023/diff/28003/bin/builtin.dart#newcode6
bin/builtin.dart:6: #import("dart:nativewrappers");
On 2011/11/17 19:35:06, Ivan Posva wrote:
> As discussed you can add #import("dart:coreimpl"); here as well and remove the
> manual injection from the .cc file.

Done.

http://codereview.chromium.org/8537023/diff/28003/vm/unit_test.cc
File vm/unit_test.cc (right):

http://codereview.chromium.org/8537023/diff/28003/vm/unit_test.cc#newcode71
vm/unit_test.cc:71: return Dart_NewString(url_chars);
On 2011/11/17 19:35:06, Ivan Posva wrote:
> Why don't you just return the incoming url?

Done.

Powered by Google App Engine
This is Rietveld 408576698