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 467933002: Fix issue 20476: creating multiple LocalVariables with same name (finally_ret_val35), confuses the … (Closed)

Created:
6 years, 4 months ago by srdjan
Modified:
6 years, 4 months ago
Reviewers:
Florian Schneider
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Fix issue 20476: creating multiple LocalVariables with same name (finally_ret_val35), confuses the compiler. token_pos is not enough to guarantee unique name for inlined finally-s. Instead of uniques names per inlined return node, use one function level local. R=fschneider@google.com Committed: https://code.google.com/p/dart/source/detail?r=39206

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -32 lines) Patch
M runtime/vm/ast.h View 1 2 3 4 chunks +0 lines, -10 lines 0 comments Download
M runtime/vm/flow_graph_builder.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M runtime/vm/parser.h View 1 2 3 4 3 chunks +16 lines, -0 lines 0 comments Download
M runtime/vm/parser.cc View 1 2 3 4 8 chunks +33 lines, -18 lines 0 comments Download
M tests/language/language.status View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
srdjan
6 years, 4 months ago (2014-08-12 23:42:38 UTC) #1
Florian Schneider
lgtm https://codereview.chromium.org/467933002/diff/40001/runtime/vm/parser.cc File runtime/vm/parser.cc (right): https://codereview.chromium.org/467933002/diff/40001/runtime/vm/parser.cc#newcode7304 runtime/vm/parser.cc:7304: return_node->set_saved_return_value_var( No need to save the variable with ...
6 years, 4 months ago (2014-08-13 10:35:22 UTC) #2
srdjan
https://codereview.chromium.org/467933002/diff/40001/runtime/vm/parser.cc File runtime/vm/parser.cc (right): https://codereview.chromium.org/467933002/diff/40001/runtime/vm/parser.cc#newcode7304 runtime/vm/parser.cc:7304: return_node->set_saved_return_value_var( On 2014/08/13 10:35:22, Florian Schneider wrote: > No ...
6 years, 4 months ago (2014-08-13 15:38:55 UTC) #3
srdjan
6 years, 4 months ago (2014-08-13 17:03:54 UTC) #4
Message was sent while issue was closed.
Committed patchset #5 manually as r39206 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698