| Index: lib/compiler/implementation/ssa/tracer.dart
|
| diff --git a/lib/compiler/implementation/ssa/tracer.dart b/lib/compiler/implementation/ssa/tracer.dart
|
| index a013aa159534c2f61e8c42ea51c72613fba954f3..ee3551d3122abad3b8d82760d1acf21c2856d3e0 100644
|
| --- a/lib/compiler/implementation/ssa/tracer.dart
|
| +++ b/lib/compiler/implementation/ssa/tracer.dart
|
| @@ -383,6 +383,22 @@ class HInstructionStringifier implements HVisitor<String> {
|
|
|
| String visitSubtract(HSubtract node) => visitInvokeStatic(node);
|
|
|
| + String visitSwitch(HSwitch node) {
|
| + StringBuffer buf = new StringBuffer();
|
| + buf.add("Switch: (");
|
| + buf.add(temporaryId(node.inputs[0]));
|
| + buf.add(") ");
|
| + for (int i = 1; i < node.inputs.length; i++) {
|
| + buf.add(temporaryId(node.inputs[i]));
|
| + buf.add(": B");
|
| + buf.add(node.block.successors[i - 1].id);
|
| + buf.add(", ");
|
| + }
|
| + buf.add("default: B");
|
| + buf.add(node.block.successors.last().id);
|
| + return buf.toString();
|
| + }
|
| +
|
| String visitThis(HThis node) => "this";
|
|
|
| String visitThrow(HThrow node) => "Throw ${temporaryId(node.inputs[0])}";
|
|
|