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

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: 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
Index: frog/leg/ssa/tracer.dart
diff --git a/frog/leg/ssa/tracer.dart b/frog/leg/ssa/tracer.dart
index ce5c96b3fd3a1e4597470a3ae40511ec41a9f16b..1ef75f0a0522fffd3b84e18ee01069b98e6cb2ae 100644
--- a/frog/leg/ssa/tracer.dart
+++ b/frog/leg/ssa/tracer.dart
@@ -202,6 +202,11 @@ class HInstructionStringifier implements HVisitor<String> {
return "Bounds check: length = $lengthId, index = $indexId";
}
+ String visitBreak(HBreak node) {
+ if (node.label !== null) return "break " + node.label.stringValue;
+ return "break";
+ }
+
String visitDivide(HDivide node) => visitInvokeStatic(node);
String visitEquals(HEquals node) => visitInvokeStatic(node);

Powered by Google App Engine
This is Rietveld 408576698