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

Issue 24631003: Add proper API for creating private symbols wrt a library. (Closed)

Created:
7 years, 2 months ago by rmacnak
Modified:
7 years, 2 months ago
Reviewers:
ahe, gbracha, siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Add proper API for creating private symbols wrt a library. BUG=http://dartbug.com/13355 BUG=http://dartbug.com/12358 R=ahe@google.com, asiva@google.com, gbracha@google.com Committed: https://code.google.com/p/dart/source/detail?r=28551

Patch Set 1 #

Total comments: 1

Patch Set 2 : also handle mangling of private symbol returns from the mirrors #

Patch Set 3 : amend tests #

Total comments: 4

Patch Set 4 : merge with findInContext #

Patch Set 5 : rename StripAccessorPrefix #

Total comments: 1

Patch Set 6 : #

Patch Set 7 : rebase #

Total comments: 10

Patch Set 8 : test getSymbol with a bad library #

Patch Set 9 : whitespace #

Patch Set 10 : maintain dart2js coverage #

Unified diffs Side-by-side diffs Delta from patch set Stats (+501 lines, -120 lines) Patch
M runtime/lib/mirrors.cc View 1 2 3 4 5 6 7 19 chunks +104 lines, -21 lines 0 comments Download
M runtime/lib/mirrors_impl.dart View 1 2 3 4 5 6 7 4 chunks +4 lines, -4 lines 0 comments Download
M runtime/lib/mirrors_patch.dart View 1 2 3 4 5 6 7 1 chunk +14 lines, -1 line 0 comments Download
M runtime/tests/vm/dart/isolate_mirror_local_test.dart View 1 2 3 4 5 6 7 10 chunks +21 lines, -8 lines 0 comments Download
M runtime/vm/bootstrap_natives.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/vm/object.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M runtime/vm/object.cc View 1 2 3 4 5 6 7 6 chunks +50 lines, -4 lines 0 comments Download
M runtime/vm/resolver.h View 1 chunk +0 lines, -5 lines 0 comments Download
M runtime/vm/resolver.cc View 1 chunk +0 lines, -41 lines 0 comments Download
M sdk/lib/_internal/lib/mirrors_patch.dart View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M sdk/lib/mirrors/mirrors.dart View 1 2 3 4 5 6 7 1 chunk +13 lines, -0 lines 0 comments Download
M tests/lib/lib.status View 1 2 3 4 5 6 7 8 9 4 chunks +16 lines, -9 lines 0 comments Download
M tests/lib/mirrors/closures_test.dart View 1 2 3 4 1 chunk +8 lines, -10 lines 0 comments Download
M tests/lib/mirrors/intercepted_object_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
A tests/lib/mirrors/intercepted_superclass_test.dart View 1 2 3 4 5 6 7 8 9 1 chunk +29 lines, -0 lines 0 comments Download
A tests/lib/mirrors/invoke_import_test.dart View 1 2 3 1 chunk +35 lines, -0 lines 0 comments Download
M tests/lib/mirrors/invoke_private_test.dart View 1 chunk +16 lines, -16 lines 0 comments Download
A tests/lib/mirrors/other_library.dart View 1 2 3 1 chunk +15 lines, -0 lines 0 comments Download
A tests/lib/mirrors/private_symbol_test.dart View 1 2 3 4 5 6 7 1 chunk +127 lines, -0 lines 0 comments Download
A tests/lib/mirrors/symbol_validation_test.dart View 1 2 3 4 1 chunk +39 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
rmacnak
https://codereview.chromium.org/24631003/diff/1/sdk/lib/mirrors/mirrors.dart File sdk/lib/mirrors/mirrors.dart (right): https://codereview.chromium.org/24631003/diff/1/sdk/lib/mirrors/mirrors.dart#newcode117 sdk/lib/mirrors/mirrors.dart:117: external static Symbol getSymbol(String name, [LibraryMirror lib]); createSymbol? newSymbol?
7 years, 2 months ago (2013-09-26 00:02:55 UTC) #1
rmacnak
https://chromiumcodereview.appspot.com/24631003/diff/8001/runtime/vm/object.cc File runtime/vm/object.cc (right): https://chromiumcodereview.appspot.com/24631003/diff/8001/runtime/vm/object.cc#newcode221 runtime/vm/object.cc:221: RawString* String::StripAccessorPrefix(const String& name) { Yuck. This should at ...
7 years, 2 months ago (2013-09-27 01:38:27 UTC) #2
siva
LGTM. Please wait for review from Peter for the API and dart2js parts. https://chromiumcodereview.appspot.com/24631003/diff/17001/runtime/vm/object.cc File ...
7 years, 2 months ago (2013-09-30 23:47:12 UTC) #3
rmacnak
On 2013/09/30 23:47:12, siva wrote: > LGTM. > > Please wait for review from Peter ...
7 years, 2 months ago (2013-10-01 00:47:11 UTC) #4
rmacnak
On 2013/10/01 00:47:11, Ryan Macnak wrote: > On 2013/09/30 23:47:12, siva wrote: > > LGTM. ...
7 years, 2 months ago (2013-10-04 23:03:44 UTC) #5
gbracha
lgtm
7 years, 2 months ago (2013-10-05 01:43:24 UTC) #6
ahe
LGTM! https://chromiumcodereview.appspot.com/24631003/diff/25001/sdk/lib/_internal/lib/mirrors_patch.dart File sdk/lib/_internal/lib/mirrors_patch.dart (right): https://chromiumcodereview.appspot.com/24631003/diff/25001/sdk/lib/_internal/lib/mirrors_patch.dart#newcode11 sdk/lib/_internal/lib/mirrors_patch.dart:11: patch static Symbol getSymbol(String name, [LibraryMirror lib]) { ...
7 years, 2 months ago (2013-10-11 10:27:14 UTC) #7
rmacnak
https://chromiumcodereview.appspot.com/24631003/diff/25001/sdk/lib/_internal/lib/mirrors_patch.dart File sdk/lib/_internal/lib/mirrors_patch.dart (right): https://chromiumcodereview.appspot.com/24631003/diff/25001/sdk/lib/_internal/lib/mirrors_patch.dart#newcode11 sdk/lib/_internal/lib/mirrors_patch.dart:11: patch static Symbol getSymbol(String name, [LibraryMirror lib]) { On ...
7 years, 2 months ago (2013-10-11 20:39:33 UTC) #8
rmacnak
7 years, 2 months ago (2013-10-11 20:56:28 UTC) #9
Message was sent while issue was closed.
Committed patchset #10 manually as r28551 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698