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

Issue 10416050: Remove the partially completed code for remote IsolateMirrors and (Closed)

Created:
8 years, 7 months ago by turnidge
Modified:
8 years, 6 months ago
Reviewers:
Ivan Posva
CC:
reviews_dartlang.org, gbracha
Visibility:
Public.

Description

Remove the partially completed code for remote IsolateMirrors and replace it with the beginnings of a local (same isolate) IsolateMirror implementation. Removed old mirror tests and added two new mirror tests. Even though mirrors.cc is part of the vm, I chose to implement most of it using the dart embedding interface instead of our internal interfaces because the embedding interface was more convenient. mirrors.cc is basically all new in this CL -- don't pay any attention to diffs for that file. Added dart embedding functions required for the functionality in this CL: Dart_DebugName, Dart_GetNativeInstanceFieldCount, Dart_RootLibrary, Dart_RegisteredLibraryUrls, and Dart_LibraryName. Extended or modified some existing dart api functions, primarily to make them propagate error handles properly. Added tests for new dart embedding api functionality. Added the ability to determine if a port is local to the current isolate. Extended NotImplementedException to accept an optional string argument. I wanted to give more descriptive error messages. Committed: https://code.google.com/p/dart/source/detail?r=8117

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 16

Patch Set 6 : #

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+843 lines, -267 lines) Patch
M corelib/src/exceptions.dart View 1 2 3 4 5 6 1 chunk +5 lines, -2 lines 0 comments Download
M lib/mirrors/mirrors.dart View 1 2 3 4 5 6 1 chunk +115 lines, -5 lines 0 comments Download
M runtime/include/dart_api.h View 1 2 3 4 5 6 6 chunks +30 lines, -3 lines 0 comments Download
M runtime/include/dart_debugger_api.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M runtime/lib/mirrors.cc View 1 2 3 4 5 6 2 chunks +288 lines, -114 lines 0 comments Download
M runtime/lib/mirrors_impl.dart View 1 2 3 4 5 6 1 chunk +99 lines, -20 lines 0 comments Download
M runtime/platform/assert.h View 1 2 3 4 5 6 3 chunks +19 lines, -0 lines 0 comments Download
D runtime/tests/vm/dart/isolate_mirror_busy_test.dart View 1 2 3 4 5 6 1 chunk +0 lines, -33 lines 0 comments Download
D runtime/tests/vm/dart/isolate_mirror_idle_test.dart View 1 2 3 4 5 6 1 chunk +0 lines, -31 lines 0 comments Download
A + runtime/tests/vm/dart/isolate_mirror_local_test.dart View 1 2 3 4 5 1 chunk +39 lines, -9 lines 0 comments Download
A runtime/tests/vm/dart/isolate_mirror_remote_test.dart View 1 chunk +32 lines, -0 lines 0 comments Download
D runtime/tests/vm/dart/isolate_mirror_self_test.dart View 1 2 3 4 5 6 1 chunk +0 lines, -25 lines 0 comments Download
M runtime/tests/vm/vm.status View 1 2 3 4 5 6 2 chunks +0 lines, -5 lines 0 comments Download
M runtime/vm/bootstrap_natives.h View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download
M runtime/vm/dart_api_impl.cc View 1 2 3 4 5 6 5 chunks +51 lines, -10 lines 0 comments Download
M runtime/vm/dart_api_impl_test.cc View 1 2 3 4 5 6 6 chunks +98 lines, -6 lines 0 comments Download
M runtime/vm/dart_entry.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/debugger_api_impl_test.cc View 1 2 3 4 5 6 1 chunk +30 lines, -0 lines 0 comments Download
M runtime/vm/isolate.cc View 1 2 3 4 5 6 2 chunks +8 lines, -1 line 0 comments Download
M runtime/vm/message_handler.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M runtime/vm/object.cc View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M runtime/vm/port.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M runtime/vm/port.cc View 1 2 3 4 5 6 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
turnidge
8 years, 7 months ago (2012-05-22 23:47:44 UTC) #1
turnidge
Adding cshapiro as a reviewer.
8 years, 6 months ago (2012-05-29 17:03:11 UTC) #2
Ivan Posva
https://chromiumcodereview.appspot.com/10416050/diff/13023/runtime/include/dart_api.h File runtime/include/dart_api.h (right): https://chromiumcodereview.appspot.com/10416050/diff/13023/runtime/include/dart_api.h#newcode2050 runtime/include/dart_api.h:2050: DART_EXPORT Dart_Handle Dart_RegisteredLibraryUrls(); Is there an overlap with the ...
8 years, 6 months ago (2012-05-29 22:13:45 UTC) #3
turnidge
Ready for another look. https://chromiumcodereview.appspot.com/10416050/diff/13023/runtime/include/dart_api.h File runtime/include/dart_api.h (right): https://chromiumcodereview.appspot.com/10416050/diff/13023/runtime/include/dart_api.h#newcode2050 runtime/include/dart_api.h:2050: DART_EXPORT Dart_Handle Dart_RegisteredLibraryUrls(); On 2012/05/29 ...
8 years, 6 months ago (2012-05-29 23:13:46 UTC) #4
Ivan Posva
8 years, 6 months ago (2012-05-29 23:31:27 UTC) #5
LGTM -ip

Powered by Google App Engine
This is Rietveld 408576698