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

Unified Diff: runtime/vm/flow_graph_builder.cc

Issue 1660203002: VM: Fix bug with break out of a try-finally inside a loop. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tests/language/try_finally_regress_25654_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_builder.cc
diff --git a/runtime/vm/flow_graph_builder.cc b/runtime/vm/flow_graph_builder.cc
index 861721af4a519d836c6f73c7fae214a8350c1ab6..1a5210d816394501afcf855fe56d9d5b633c1a37 100644
--- a/runtime/vm/flow_graph_builder.cc
+++ b/runtime/vm/flow_graph_builder.cc
@@ -175,7 +175,7 @@ JoinEntryInstr* NestedStatement::BreakTargetFor(SourceLabel* label) {
if (break_target_ == NULL) {
break_target_ =
new(owner()->zone()) JoinEntryInstr(owner()->AllocateBlockId(),
- owner()->try_index());
+ try_index());
}
return break_target_;
}
@@ -251,7 +251,7 @@ JoinEntryInstr* NestedLoop::ContinueTargetFor(SourceLabel* label) {
if (continue_target_ == NULL) {
continue_target_ =
new(owner()->zone()) JoinEntryInstr(owner()->AllocateBlockId(),
- try_index());
+ try_index());
}
return continue_target_;
}
@@ -295,7 +295,7 @@ JoinEntryInstr* NestedSwitch::ContinueTargetFor(SourceLabel* label) {
if (case_targets_[i] == NULL) {
case_targets_[i] =
new(owner()->zone()) JoinEntryInstr(owner()->AllocateBlockId(),
- try_index());
+ try_index());
}
return case_targets_[i];
}
« no previous file with comments | « no previous file | tests/language/try_finally_regress_25654_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698