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

Issue 14173005: Update dart:mirrors to use Symbol. (Closed)

Created:
7 years, 8 months ago by ahe
Modified:
7 years, 8 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Update dart:mirrors to use Symbol. Committed: https://code.google.com/p/dart/source/detail?r=21460

Patch Set 1 #

Total comments: 4

Patch Set 2 : Update VM mirror implementation to use Symbols #

Patch Set 3 : Add question about LibraryMirror.url #

Total comments: 13

Patch Set 4 : Use collection-dev #

Patch Set 5 : Patch collection-dev to make everything work in dart2js as well. #

Patch Set 6 : Should work now. #

Total comments: 1

Patch Set 7 : Fix various issues discovered during own review. #

Total comments: 8

Patch Set 8 : Address review comments #

Patch Set 9 : Merged #

Patch Set 10 : Update function_patch to use _symbol_dev.Symbol.getName. #

Patch Set 11 : Also use _symbol_dev.Symbol.getName in dart2js #

Unified diffs Side-by-side diffs Delta from patch set Stats (+494 lines, -308 lines) Patch
M dart/pkg/pkg.status View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
A + dart/runtime/lib/collection_dev_patch.dart View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
A + dart/runtime/lib/collection_dev_sources.gypi View 1 2 3 4 5 6 1 chunk +4 lines, -5 lines 0 comments Download
M dart/runtime/lib/core_patch.dart View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M dart/runtime/lib/function_patch.dart View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M dart/runtime/lib/lib_sources.gypi View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M dart/runtime/lib/mirrors_impl.dart View 1 2 3 4 5 6 7 31 chunks +146 lines, -111 lines 0 comments Download
M dart/runtime/lib/mirrors_patch.dart View 1 2 3 4 5 6 7 2 chunks +8 lines, -0 lines 0 comments Download
M dart/runtime/lib/symbol_patch.dart View 1 2 3 4 5 6 7 1 chunk +26 lines, -16 lines 0 comments Download
M dart/runtime/tests/vm/dart/isolate_mirror_local_test.dart View 1 2 3 4 5 6 7 8 15 chunks +86 lines, -73 lines 0 comments Download
M dart/runtime/vm/bootstrap.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M dart/runtime/vm/bootstrap.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M dart/runtime/vm/object.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M dart/runtime/vm/vm.gypi View 1 2 3 4 4 chunks +41 lines, -0 lines 0 comments Download
M dart/sdk/lib/_collection_dev/collection_dev.dart View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M dart/sdk/lib/_collection_dev/collection_dev_sources.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A dart/sdk/lib/_collection_dev/symbol.dart View 1 2 3 4 5 6 1 chunk +35 lines, -0 lines 0 comments Download
A + dart/sdk/lib/_internal/compiler/implementation/lib/collection_dev_patch.dart View 1 2 3 4 5 6 7 1 chunk +3 lines, -4 lines 0 comments Download
M dart/sdk/lib/_internal/compiler/implementation/lib/core_patch.dart View 1 2 3 4 5 6 7 8 9 10 3 chunks +2 lines, -17 lines 0 comments Download
M dart/sdk/lib/_internal/compiler/implementation/lib/mirrors_patch.dart View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -0 lines 0 comments Download
M dart/sdk/lib/_internal/dartdoc/lib/src/json_serializer.dart View 1 2 3 4 5 2 chunks +15 lines, -8 lines 0 comments Download
M dart/sdk/lib/_internal/libraries.dart View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M dart/sdk/lib/core/core.dart View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M dart/sdk/lib/core/symbol.dart View 1 2 3 4 1 chunk +3 lines, -8 lines 0 comments Download
M dart/sdk/lib/mirrors/mirrors.dart View 1 2 3 4 5 15 chunks +40 lines, -37 lines 0 comments Download
M dart/tests/corelib/symbol_test.dart View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M dart/tests/lib/mirrors/mirrors_test.dart View 1 4 4 chunks +55 lines, -22 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
ahe
I'll attempt to make the required changes to the VM, unless Ivan would rather do ...
7 years, 8 months ago (2013-04-11 15:14:21 UTC) #1
Johnni Winther
lgtm
7 years, 8 months ago (2013-04-11 17:34:09 UTC) #2
gbracha
https://codereview.chromium.org/14173005/diff/1/dart/sdk/lib/mirrors/mirrors.dart File dart/sdk/lib/mirrors/mirrors.dart (right): https://codereview.chromium.org/14173005/diff/1/dart/sdk/lib/mirrors/mirrors.dart#newcode37 dart/sdk/lib/mirrors/mirrors.dart:37: Map<Symbol, LibraryMirror> get libraries; So, didn't we just change ...
7 years, 8 months ago (2013-04-11 18:12:20 UTC) #3
ahe
I have updated (and extended) the test to use Symbol, and gotten it to work. ...
7 years, 8 months ago (2013-04-11 20:12:27 UTC) #4
ahe
I can definitely access the private field '_name' of a symbol using reflection: String _n(Symbol ...
7 years, 8 months ago (2013-04-11 21:15:26 UTC) #5
Ivan Posva
With the amount of "This part is work in progress" and "do not submit this ...
7 years, 8 months ago (2013-04-12 04:16:18 UTC) #6
ahe
https://codereview.chromium.org/14173005/diff/10001/dart/runtime/lib/symbol_patch.dart File dart/runtime/lib/symbol_patch.dart (right): https://codereview.chromium.org/14173005/diff/10001/dart/runtime/lib/symbol_patch.dart#newcode36 dart/runtime/lib/symbol_patch.dart:36: if (name.isEmpty) return name; On 2013/04/11 20:12:27, ahe wrote: ...
7 years, 8 months ago (2013-04-15 12:34:02 UTC) #7
ahe
This CL is ready for a complete review now. https://codereview.chromium.org/14173005/diff/28001/dart/sdk/lib/_internal/compiler/implementation/lib/mirrors_patch.dart File dart/sdk/lib/_internal/compiler/implementation/lib/mirrors_patch.dart (right): https://codereview.chromium.org/14173005/diff/28001/dart/sdk/lib/_internal/compiler/implementation/lib/mirrors_patch.dart#newcode28 dart/sdk/lib/_internal/compiler/implementation/lib/mirrors_patch.dart:28: ...
7 years, 8 months ago (2013-04-15 13:08:03 UTC) #8
Søren Gjesse
lgtm https://codereview.chromium.org/14173005/diff/28002/dart/runtime/lib/mirrors_impl.dart File dart/runtime/lib/mirrors_impl.dart (right): https://codereview.chromium.org/14173005/diff/28002/dart/runtime/lib/mirrors_impl.dart#newcode68 dart/runtime/lib/mirrors_impl.dart:68: _LocalMirrorSystemImpl(Map<String, LibraryMirror> libraries, this.isolate) Four space indent - ...
7 years, 8 months ago (2013-04-15 14:08:31 UTC) #9
ahe
Thank you, Søren. I'm going to submit this now, and deal with any follow-up comments ...
7 years, 8 months ago (2013-04-15 14:29:55 UTC) #10
ahe
7 years, 8 months ago (2013-04-15 15:01:23 UTC) #11
Message was sent while issue was closed.
Committed patchset #11 manually as r21460.

Powered by Google App Engine
This is Rietveld 408576698