| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 class HTracer extends HGraphVisitor { | 5 class HTracer extends HGraphVisitor { |
| 6 int indent = 0; | 6 int indent = 0; |
| 7 final StringBuffer output; | 7 final StringBuffer output; |
| 8 | 8 |
| 9 factory HTracer.singleton() { | 9 factory HTracer.singleton() { |
| 10 if (_singleton === null) _singleton = new HTracer._internal(); | 10 if (_singleton === null) _singleton = new HTracer._internal(); |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 String visitParameter(HParameter node) => "p${node.parameterIndex}"; | 185 String visitParameter(HParameter node) => "p${node.parameterIndex}"; |
| 186 | 186 |
| 187 String visitPhi(HPhi phi) { | 187 String visitPhi(HPhi phi) { |
| 188 return "Phi(${temporaryId(phi.inputs[0])}, ${temporaryId(phi.inputs[1])})"; | 188 return "Phi(${temporaryId(phi.inputs[0])}, ${temporaryId(phi.inputs[1])})"; |
| 189 } | 189 } |
| 190 | 190 |
| 191 String visitReturn(HReturn node) => "Return ${temporaryId(node.inputs[0])}"; | 191 String visitReturn(HReturn node) => "Return ${temporaryId(node.inputs[0])}"; |
| 192 | 192 |
| 193 String visitSubtract(HSubtract node) => visitInvoke(node); | 193 String visitSubtract(HSubtract node) => visitInvoke(node); |
| 194 | 194 |
| 195 String visitThrow(HThrow node) => "Throw ${temporaryId(node.inputs[0])}"; |
| 196 |
| 195 String visitTruncatingDivide(HTruncatingDivide node) => visitInvoke(node); | 197 String visitTruncatingDivide(HTruncatingDivide node) => visitInvoke(node); |
| 196 } | 198 } |
| OLD | NEW |