Index: pkg/compiler/lib/src/cps_ir/cps_ir_tracer.dart |
diff --git a/pkg/compiler/lib/src/cps_ir/cps_ir_tracer.dart b/pkg/compiler/lib/src/cps_ir/cps_ir_tracer.dart |
index 0064b6bf0bc0ff25d28b9d1e1cb3d21df5754312..14b31a55c36d815811a2cc805a471ed35f787e07 100644 |
--- a/pkg/compiler/lib/src/cps_ir/cps_ir_tracer.dart |
+++ b/pkg/compiler/lib/src/cps_ir/cps_ir_tracer.dart |
@@ -227,12 +227,10 @@ class IRTracer extends TracerUtil implements cps_ir.Visitor { |
printStmt(dummy, "Branch $condition ($trueCont, $falseCont)"); |
} |
- visitSetMutableVariable(cps_ir.SetMutableVariable node) { |
- String dummy = names.name(node); |
+ visitSetMutable(cps_ir.SetMutable node) { |
String variable = names.name(node.variable.definition); |
String value = formatReference(node.value); |
- printStmt(dummy, 'SetMutableVariable $variable := $value'); |
- visit(node.body); |
+ return 'SetMutable $variable := $value'; |
} |
String formatReference(cps_ir.Reference ref) { |
@@ -267,12 +265,10 @@ class IRTracer extends TracerUtil implements cps_ir.Visitor { |
} |
visitSetField(cps_ir.SetField node) { |
- String dummy = names.name(node); |
String object = formatReference(node.object); |
String field = node.field.name; |
String value = formatReference(node.value); |
- printStmt(dummy, 'SetField $object.$field = $value'); |
- visit(node.body); |
+ return 'SetField $object.$field = $value'; |
} |
visitGetField(cps_ir.GetField node) { |
@@ -287,11 +283,9 @@ class IRTracer extends TracerUtil implements cps_ir.Visitor { |
} |
visitSetStatic(cps_ir.SetStatic node) { |
- String dummy = names.name(node); |
String element = node.element.name; |
String value = formatReference(node.value); |
- printStmt(dummy, 'SetStatic $element = $value'); |
- visit(node.body); |
+ return 'SetStatic $element = $value'; |
} |
visitGetLazyStatic(cps_ir.GetLazyStatic node) { |
@@ -320,9 +314,9 @@ class IRTracer extends TracerUtil implements cps_ir.Visitor { |
return "CreateFunction ${node.definition.element.name}"; |
} |
- visitGetMutableVariable(cps_ir.GetMutableVariable node) { |
+ visitGetMutable(cps_ir.GetMutable node) { |
String variable = names.name(node.variable.definition); |
- return 'GetMutableVariable $variable'; |
+ return 'GetMutable $variable'; |
} |
visitReadTypeVariable(cps_ir.ReadTypeVariable node) { |
@@ -523,18 +517,6 @@ class BlockCollector implements cps_ir.Visitor { |
visitUnreachable(cps_ir.Unreachable node) { |
} |
- visitSetMutableVariable(cps_ir.SetMutableVariable exp) { |
- visit(exp.body); |
- } |
- |
- visitSetField(cps_ir.SetField exp) { |
- visit(exp.body); |
- } |
- |
- visitSetStatic(cps_ir.SetStatic exp) { |
- visit(exp.body); |
- } |
- |
visitGetLazyStatic(cps_ir.GetLazyStatic exp) { |
addEdgeToContinuation(exp.continuation); |
} |
@@ -583,7 +565,7 @@ class BlockCollector implements cps_ir.Visitor { |
unexpectedNode(node); |
} |
- visitGetMutableVariable(cps_ir.GetMutableVariable node) { |
+ visitGetMutable(cps_ir.GetMutable node) { |
unexpectedNode(node); |
} |
@@ -659,6 +641,18 @@ class BlockCollector implements cps_ir.Visitor { |
unexpectedNode(node); |
} |
+ visitSetMutable(cps_ir.SetMutable node) { |
+ unexpectedNode(node); |
+ } |
+ |
+ visitSetField(cps_ir.SetField node) { |
+ unexpectedNode(node); |
+ } |
+ |
+ visitSetStatic(cps_ir.SetStatic node) { |
+ unexpectedNode(node); |
+ } |
+ |
@override |
visitForeignCode(cps_ir.ForeignCode node) { |
if (node.continuation != null) { |