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

Issue 308053012: Fix try-catch and continue in switch statements. (Closed)

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

Description

Fix try-catch and continue in switch statements. When assigning the try-index for continue targets, use the try index of the enclosing nested statement, not the current try-index of the graph builder. BUG=dartbug.com/18869 TEST=tests/language/switch_try_catch_test.dart R=hausner@google.com Committed: https://code.google.com/p/dart/source/detail?r=36876

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -3 lines) Patch
M runtime/vm/flow_graph_builder.cc View 4 chunks +7 lines, -3 lines 2 comments Download
A tests/language/switch_try_catch_test.dart View 1 chunk +33 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Florian Schneider
6 years, 6 months ago (2014-06-02 12:49:22 UTC) #1
hausner
LGTM. Thank you very much for fixing this!
6 years, 6 months ago (2014-06-02 15:20:03 UTC) #2
Florian Schneider
Committed patchset #1 manually as r36876 (presubmit successful).
6 years, 6 months ago (2014-06-02 15:46:43 UTC) #3
srdjan
DBC https://codereview.chromium.org/308053012/diff/1/runtime/vm/flow_graph_builder.cc File runtime/vm/flow_graph_builder.cc (right): https://codereview.chromium.org/308053012/diff/1/runtime/vm/flow_graph_builder.cc#newcode112 runtime/vm/flow_graph_builder.cc:112: intptr_t try_index_; const?
6 years, 6 months ago (2014-06-02 18:29:31 UTC) #4
Florian Schneider
6 years, 6 months ago (2014-06-03 10:50:18 UTC) #5
Message was sent while issue was closed.
https://codereview.chromium.org/308053012/diff/1/runtime/vm/flow_graph_builde...
File runtime/vm/flow_graph_builder.cc (right):

https://codereview.chromium.org/308053012/diff/1/runtime/vm/flow_graph_builde...
runtime/vm/flow_graph_builder.cc:112: intptr_t try_index_;
On 2014/06/02 18:29:31, srdjan wrote:
> const?

Yes, I will add it in my next cl.

Powered by Google App Engine
This is Rietveld 408576698