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

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

Issue 9592009: Reapply "Refactor constant part." (r4958) with fixes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add TODO. 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 | « frog/leg/ssa/optimize.dart ('k') | frog/leg/tree/nodes.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 445dda7780d7473310191bf7d7461e60f8aba35f..a012725448a32d9163cb4e06e991297f62e116df 100644
--- a/frog/leg/ssa/tracer.dart
+++ b/frog/leg/ssa/tracer.dart
@@ -217,6 +217,8 @@ class HInstructionStringifier implements HVisitor<String> {
return "Break: (B${target.id})";
}
+ String visitConstant(HConstant constant) => "Constant ${constant.constant}";
+
String visitDivide(HDivide node) => visitInvokeStatic(node);
String visitEquals(HEquals node) => visitInvokeStatic(node);
@@ -327,8 +329,6 @@ class HInstructionStringifier implements HVisitor<String> {
String visitLess(HLess node) => visitInvokeStatic(node);
String visitLessEqual(HLessEqual node) => visitInvokeStatic(node);
- String visitLiteral(HLiteral literal) => "Literal ${literal.value}";
-
String visitLiteralList(HLiteralList node) {
StringBuffer elementsString = new StringBuffer();
for (int i = 0; i < node.inputs.length; i++) {
« no previous file with comments | « frog/leg/ssa/optimize.dart ('k') | frog/leg/tree/nodes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698