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

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

Issue 9718034: Continue for simple loops (while/for). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
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
Index: frog/leg/ssa/tracer.dart
diff --git a/frog/leg/ssa/tracer.dart b/frog/leg/ssa/tracer.dart
index bfde7508e925c40eff5ef3986ebe33f90091cb3e..c7554460b08e8203eaac5ca1179c98306b01d80a 100644
--- a/frog/leg/ssa/tracer.dart
+++ b/frog/leg/ssa/tracer.dart
@@ -219,6 +219,14 @@ class HInstructionStringifier implements HVisitor<String> {
String visitConstant(HConstant constant) => "Constant ${constant.constant}";
+ String visitContinue(HContinue node) {
+ HBasicBlock target = currentBlock.successors[0];
+ if (node.label !== null) {
+ return "Continue ${node.label.labelName}: (B${target.id})";
+ }
+ return "Continue: (B${target.id})";
+ }
+
String visitDivide(HDivide node) => visitInvokeStatic(node);
String visitEquals(HEquals node) => visitInvokeStatic(node);

Powered by Google App Engine
This is Rietveld 408576698