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

Unified Diff: dart/frog/leg/ssa/builder.dart

Issue 9808109: Implement unlabeled continue. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 9 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 | « dart/frog/leg/lib/hash_map_set.dart ('k') | dart/tests/co19/co19-leg.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/frog/leg/ssa/builder.dart
diff --git a/dart/frog/leg/ssa/builder.dart b/dart/frog/leg/ssa/builder.dart
index 5974f5bdaa6ff61a844e8749998f98cb00a781da..93b6a384e02add2fcd055a4c88f0c4c5f79987d6 100644
--- a/dart/frog/leg/ssa/builder.dart
+++ b/dart/frog/leg/ssa/builder.dart
@@ -1164,10 +1164,15 @@ class SsaBuilder implements Visitor {
HLabeledBlockInformation labelInfo;
List<LabelElement> labels = jumpHandler.labels();
+ TargetElement target = elements[loop];
if (!labels.isEmpty()) {
beginBodyBlock.labeledBlockInformation =
new HLabeledBlockInformation(bodyGraph, updateBlock,
jumpHandler.labels(), isContinue: true);
+ } else if (target !== null && target.isContinueTarget) {
+ beginBodyBlock.labeledBlockInformation =
+ new HLabeledBlockInformation.implicit(bodyGraph, updateBlock,
+ target, isContinue: true);
}
localsHandler.enterLoopUpdates(loop);
« no previous file with comments | « dart/frog/leg/lib/hash_map_set.dart ('k') | dart/tests/co19/co19-leg.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698