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

Issue 25842003: VM: Fix bug with evaluation order of static setter invocation. (Closed)

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

Description

VM: Fix bug with evaluation order of static setter invocation. This fixes the case for an assignment of the form v=e where v is unknown. The right-hand side of the assignment has to be evaluated before throwing a NoSuchMethodError. I moved the generation of the NoSuchMethodError out of the parser to the flow-graph builder, where the right-hand side argument is evaluated before throwing. BUG=https://code.google.com/p/dart/issues/detail?id=13494 TEST=co19/Language/12_Expressions/18_Assignment_A01_t07 R=hausner@google.com Committed: https://code.google.com/p/dart/source/detail?r=28723

Patch Set 1 #

Total comments: 3

Patch Set 2 : #

Patch Set 3 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -8 lines) Patch
M runtime/vm/parser.cc View 1 2 1 chunk +5 lines, -7 lines 0 comments Download
M tests/co19/co19-runtime.status View 1 2 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
Florian Schneider
https://codereview.chromium.org/25842003/diff/1/runtime/vm/parser.cc File runtime/vm/parser.cc (right): https://codereview.chromium.org/25842003/diff/1/runtime/vm/parser.cc#newcode8139 runtime/vm/parser.cc:8139: field_name); field_name is already a ZoneHandle.
7 years, 2 months ago (2013-10-03 15:33:21 UTC) #1
Ivan Posva
https://codereview.chromium.org/25842003/diff/1/runtime/vm/parser.cc File runtime/vm/parser.cc (left): https://codereview.chromium.org/25842003/diff/1/runtime/vm/parser.cc#oldcode8213 runtime/vm/parser.cc:8213: InvocationMirror::kStatic, You are losing information here about the kind ...
7 years, 2 months ago (2013-10-03 16:44:04 UTC) #2
hausner
A solution that keeps the generation of NSME in the parser is preferable. The NSME ...
7 years, 2 months ago (2013-10-03 17:36:28 UTC) #3
Florian Schneider
I agree that the current generation of NoSuchMethodErrors is a mess: There are 12 places ...
7 years, 2 months ago (2013-10-04 09:10:28 UTC) #4
Florian Schneider
On 2013/10/04 09:10:28, Florian Schneider wrote: > I agree that the current generation of NoSuchMethodErrors ...
7 years, 2 months ago (2013-10-10 08:55:13 UTC) #5
hausner
LGTM. Sorry for the long delay! Matthias
7 years, 2 months ago (2013-10-15 21:00:04 UTC) #6
Florian Schneider
7 years, 2 months ago (2013-10-16 13:08:06 UTC) #7
Message was sent while issue was closed.
Committed patchset #3 manually as r28723 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698