|
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
Total comments: 16
|
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
|
Total messages: 5 (0 generated)
|