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

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

Issue 9421035: Support break and labeled statements. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments. Update expectations. Created 8 years, 10 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 | « frog/leg/ssa/optimize.dart ('k') | frog/leg/typechecker.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/leg/ssa/tracer.dart
diff --git a/frog/leg/ssa/tracer.dart b/frog/leg/ssa/tracer.dart
index ce5c96b3fd3a1e4597470a3ae40511ec41a9f16b..c6a251d1cd97ca11f62e538c3408106a7784ce7f 100644
--- a/frog/leg/ssa/tracer.dart
+++ b/frog/leg/ssa/tracer.dart
@@ -202,6 +202,14 @@ class HInstructionStringifier implements HVisitor<String> {
return "Bounds check: length = $lengthId, index = $indexId";
}
+ String visitBreak(HBreak node) {
+ HBasicBlock target = currentBlock.successors[0];
+ if (node.label !== null) {
+ return "Break ${node.label.stringValue}: (B${target.id})";
+ }
+ return "Break: (B${target.id})";
+ }
+
String visitDivide(HDivide node) => visitInvokeStatic(node);
String visitEquals(HEquals node) => visitInvokeStatic(node);
« no previous file with comments | « frog/leg/ssa/optimize.dart ('k') | frog/leg/typechecker.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698