| 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 #library('tracer'); | 5 #library('tracer'); |
| 6 | 6 |
| 7 #import('dart:io'); | 7 #import('dart:io'); |
| 8 #import('ssa.dart'); | 8 #import('ssa.dart'); |
| 9 #import('../leg.dart'); | 9 #import('../leg.dart'); |
| 10 | 10 |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 | 205 |
| 206 String visitBoundsCheck(HBoundsCheck node) { | 206 String visitBoundsCheck(HBoundsCheck node) { |
| 207 String lengthId = temporaryId(node.length); | 207 String lengthId = temporaryId(node.length); |
| 208 String indexId = temporaryId(node.index); | 208 String indexId = temporaryId(node.index); |
| 209 return "Bounds check: length = $lengthId, index = $indexId"; | 209 return "Bounds check: length = $lengthId, index = $indexId"; |
| 210 } | 210 } |
| 211 | 211 |
| 212 String visitBreak(HBreak node) { | 212 String visitBreak(HBreak node) { |
| 213 HBasicBlock target = currentBlock.successors[0]; | 213 HBasicBlock target = currentBlock.successors[0]; |
| 214 if (node.label !== null) { | 214 if (node.label !== null) { |
| 215 return "Break ${node.label.slowToString()}: (B${target.id})"; | 215 return "Break ${node.label.labelName}: (B${target.id})"; |
| 216 } | 216 } |
| 217 return "Break: (B${target.id})"; | 217 return "Break: (B${target.id})"; |
| 218 } | 218 } |
| 219 | 219 |
| 220 String visitConstant(HConstant constant) => "Constant ${constant.constant}"; | 220 String visitConstant(HConstant constant) => "Constant ${constant.constant}"; |
| 221 | 221 |
| 222 String visitDivide(HDivide node) => visitInvokeStatic(node); | 222 String visitDivide(HDivide node) => visitInvokeStatic(node); |
| 223 | 223 |
| 224 String visitEquals(HEquals node) => visitInvokeStatic(node); | 224 String visitEquals(HEquals node) => visitInvokeStatic(node); |
| 225 | 225 |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 443 default: unreachable(); | 443 default: unreachable(); |
| 444 } | 444 } |
| 445 return "TypeGuard: ${temporaryId(node.inputs[0])} is $type"; | 445 return "TypeGuard: ${temporaryId(node.inputs[0])} is $type"; |
| 446 } | 446 } |
| 447 | 447 |
| 448 String visitIs(HIs node) { | 448 String visitIs(HIs node) { |
| 449 String type = node.typeExpression.toString(); | 449 String type = node.typeExpression.toString(); |
| 450 return "TypeTest: ${temporaryId(node.expression)} is $type"; | 450 return "TypeTest: ${temporaryId(node.expression)} is $type"; |
| 451 } | 451 } |
| 452 } | 452 } |
| OLD | NEW |