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

Issue 19662003: Refactor resolution code in the vm to properly handle ambiguity errors. (Closed)

Created:
7 years, 5 months ago by regis
Modified:
7 years, 5 months ago
Reviewers:
siva
CC:
reviews_dartlang.org, hausner, Ivan Posva
Visibility:
Public.

Description

Refactor resolution code in the vm to properly handle ambiguity errors. Add test. R=asiva@google.com Committed: https://code.google.com/p/dart/source/detail?r=25324

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Patch Set 3 : #

Total comments: 26

Patch Set 4 : #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+506 lines, -323 lines) Patch
M runtime/lib/isolate.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M runtime/lib/mirrors.cc View 1 2 3 4 chunks +42 lines, -26 lines 0 comments Download
M runtime/vm/cha_test.cc View 1 2 3 1 chunk +5 lines, -4 lines 0 comments Download
M runtime/vm/class_finalizer.cc View 1 2 3 1 chunk +9 lines, -45 lines 0 comments Download
M runtime/vm/code_descriptors_test.cc View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M runtime/vm/code_generator_test.cc View 1 2 3 5 chunks +9 lines, -6 lines 0 comments Download
M runtime/vm/compiler_test.cc View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M runtime/vm/dart_api_impl.cc View 1 2 3 11 chunks +59 lines, -43 lines 0 comments Download
M runtime/vm/dart_api_impl_test.cc View 1 2 3 4 1 chunk +53 lines, -0 lines 0 comments Download
M runtime/vm/dart_entry.cc View 1 2 3 5 chunks +13 lines, -5 lines 0 comments Download
M runtime/vm/dart_entry_test.cc View 1 2 3 3 chunks +9 lines, -6 lines 0 comments Download
M runtime/vm/debugger.cc View 1 2 3 2 chunks +6 lines, -2 lines 0 comments Download
M runtime/vm/exceptions.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M runtime/vm/find_code_object_test.cc View 1 2 3 2 chunks +5 lines, -2 lines 0 comments Download
M runtime/vm/flow_graph_builder.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/flow_graph_compiler.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/intrinsifier.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/vm/intrinsifier_arm.cc View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M runtime/vm/intrinsifier_ia32.cc View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M runtime/vm/intrinsifier_mips.cc View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M runtime/vm/intrinsifier_x64.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/vm/mirrors_api_impl.cc View 1 2 3 2 chunks +17 lines, -6 lines 0 comments Download
M runtime/vm/object.h View 1 2 3 2 chunks +16 lines, -6 lines 0 comments Download
M runtime/vm/object.cc View 1 2 3 8 chunks +153 lines, -86 lines 0 comments Download
M runtime/vm/object_test.cc View 1 2 3 12 chunks +25 lines, -24 lines 0 comments Download
M runtime/vm/parser.cc View 1 2 3 3 chunks +7 lines, -8 lines 0 comments Download
M runtime/vm/parser_test.cc View 1 2 3 3 chunks +9 lines, -6 lines 0 comments Download
M runtime/vm/resolver.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M runtime/vm/resolver.cc View 1 2 3 4 chunks +25 lines, -13 lines 0 comments Download
M runtime/vm/resolver_test.cc View 1 2 3 5 chunks +13 lines, -8 lines 0 comments Download
M runtime/vm/snapshot.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M tests/language/library_ambiguous_test.dart View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
regis
Regression tests are still missing. But please have a look and see if it makes ...
7 years, 5 months ago (2013-07-17 18:34:24 UTC) #1
hausner
Overall makes sense. I think you need to do the same error checking also when ...
7 years, 5 months ago (2013-07-17 23:50:06 UTC) #2
regis
Thanks! https://codereview.chromium.org/19662003/diff/1/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/19662003/diff/1/runtime/vm/object.cc#newcode6757 runtime/vm/object.cc:6757: ASSERT(ambiguity_error_msg != NULL); On 2013/07/17 23:50:06, hausner wrote: ...
7 years, 5 months ago (2013-07-18 20:00:24 UTC) #3
regis
I have added a test showing that dart API was previously failing to report ambiguities.
7 years, 5 months ago (2013-07-22 18:46:16 UTC) #4
siva
LGTM with one comment about NULL being passed in for tests. https://codereview.chromium.org/19662003/diff/32001/runtime/vm/cha_test.cc File runtime/vm/cha_test.cc (right): ...
7 years, 5 months ago (2013-07-22 22:21:41 UTC) #5
regis
Thanks! https://codereview.chromium.org/19662003/diff/32001/runtime/vm/cha_test.cc File runtime/vm/cha_test.cc (right): https://codereview.chromium.org/19662003/diff/32001/runtime/vm/cha_test.cc#newcode38 runtime/vm/cha_test.cc:38: EXPECT(!class_a.IsNull()); On 2013/07/22 22:21:46, siva wrote: > This ...
7 years, 5 months ago (2013-07-22 23:51:26 UTC) #6
regis
7 years, 5 months ago (2013-07-23 00:19:55 UTC) #7
Message was sent while issue was closed.
Committed patchset #5 manually as r25324 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698