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

Issue 23484020: Update handling of ambiguous name references (Closed)

Created:
7 years, 3 months ago by hausner
Modified:
7 years, 3 months ago
Reviewers:
regis
CC:
reviews_dartlang.org, vm-dev_dartlang.org, Ivan Posva
Visibility:
Public.

Description

Update handling of ambiguous name references Update VM to latest spec. Referencing a name that is imported from more than one library is no longer a compile-time error. If one of the sources of an ambiguous reference is a dart library, the dart library declaration is automatically hidden. Also fixes a bug where looking up a getter name in a library found the getter even though the name is filtered out in the 'hide' combinator. Long-term we should fix the need for repeatedly convert between the mangled getter and setter names and the untangled name. Fixes 12915, 12913, 12724. R=regis@google.com Committed: https://code.google.com/p/dart/source/detail?r=27312

Patch Set 1 #

Total comments: 26

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+231 lines, -529 lines) Patch
M runtime/lib/isolate.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M runtime/lib/mirrors.cc View 1 4 chunks +17 lines, -35 lines 0 comments Download
M runtime/vm/cha_test.cc View 1 1 chunk +4 lines, -5 lines 0 comments Download
M runtime/vm/class_finalizer.h View 1 1 chunk +1 line, -2 lines 0 comments Download
M runtime/vm/class_finalizer.cc View 1 3 chunks +7 lines, -15 lines 0 comments Download
M runtime/vm/code_descriptors_test.cc View 1 1 chunk +2 lines, -3 lines 0 comments Download
M runtime/vm/code_generator_test.cc View 1 5 chunks +6 lines, -9 lines 0 comments Download
M runtime/vm/compiler_test.cc View 1 1 chunk +2 lines, -3 lines 0 comments Download
M runtime/vm/dart_api_impl.cc View 1 11 chunks +13 lines, -38 lines 0 comments Download
M runtime/vm/dart_api_impl_test.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/dart_entry.cc View 1 5 chunks +5 lines, -10 lines 0 comments Download
M runtime/vm/dart_entry_test.cc View 1 3 chunks +3 lines, -6 lines 0 comments Download
M runtime/vm/debugger.cc View 1 2 chunks +2 lines, -6 lines 0 comments Download
M runtime/vm/exceptions.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/find_code_object_test.cc View 1 2 chunks +2 lines, -5 lines 0 comments Download
M runtime/vm/flow_graph_builder.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/flow_graph_compiler.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/guard_field_test.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M runtime/vm/intrinsifier.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/vm/intrinsifier_arm.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/intrinsifier_ia32.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/intrinsifier_mips.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/intrinsifier_x64.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/mirrors_api_impl.cc View 1 1 chunk +5 lines, -10 lines 0 comments Download
M runtime/vm/object.h View 1 3 chunks +12 lines, -16 lines 0 comments Download
M runtime/vm/object.cc View 1 12 chunks +85 lines, -107 lines 0 comments Download
M runtime/vm/object_test.cc View 1 2 chunks +3 lines, -5 lines 0 comments Download
M runtime/vm/parser.h View 1 1 chunk +6 lines, -14 lines 0 comments Download
M runtime/vm/parser.cc View 1 6 chunks +18 lines, -177 lines 0 comments Download
M runtime/vm/parser_test.cc View 1 3 chunks +6 lines, -9 lines 0 comments Download
M runtime/vm/resolver.h View 1 1 chunk +1 line, -2 lines 0 comments Download
M runtime/vm/resolver.cc View 1 3 chunks +7 lines, -14 lines 0 comments Download
M runtime/vm/resolver_test.cc View 1 5 chunks +4 lines, -9 lines 0 comments Download
M runtime/vm/snapshot.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/co19/co19-co19.status View 1 1 chunk +2 lines, -0 lines 0 comments Download
M tests/co19/co19-dart2dart.status View 1 1 chunk +1 line, -0 lines 0 comments Download
M tests/co19/co19-runtime.status View 1 1 chunk +0 lines, -10 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
hausner
It's not as scary as it looks :)
7 years, 3 months ago (2013-09-09 18:24:22 UTC) #1
regis
LGTM https://codereview.chromium.org/23484020/diff/1/runtime/vm/class_finalizer.cc File runtime/vm/class_finalizer.cc (right): https://codereview.chromium.org/23484020/diff/1/runtime/vm/class_finalizer.cc#newcode258 runtime/vm/class_finalizer.cc:258: Error* ambiguity_error) { Remove this unused parameter ambiguity_error. ...
7 years, 3 months ago (2013-09-09 21:29:07 UTC) #2
hausner
Thank you. https://codereview.chromium.org/23484020/diff/1/runtime/vm/class_finalizer.cc File runtime/vm/class_finalizer.cc (right): https://codereview.chromium.org/23484020/diff/1/runtime/vm/class_finalizer.cc#newcode258 runtime/vm/class_finalizer.cc:258: Error* ambiguity_error) { On 2013/09/09 21:29:07, regis ...
7 years, 3 months ago (2013-09-09 21:52:08 UTC) #3
hausner
7 years, 3 months ago (2013-09-09 21:52:56 UTC) #4
Message was sent while issue was closed.
Committed patchset #2 manually as r27312 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698