| 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 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 | 347 |
| 348 String visitModulo(HModulo node) => visitInvokeStatic(node); | 348 String visitModulo(HModulo node) => visitInvokeStatic(node); |
| 349 | 349 |
| 350 String visitMultiply(HMultiply node) => visitInvokeStatic(node); | 350 String visitMultiply(HMultiply node) => visitInvokeStatic(node); |
| 351 | 351 |
| 352 String visitNegate(HNegate node) => visitInvokeStatic(node); | 352 String visitNegate(HNegate node) => visitInvokeStatic(node); |
| 353 | 353 |
| 354 String visitNot(HNot node) => "Not: ${temporaryId(node.inputs[0])}"; | 354 String visitNot(HNot node) => "Not: ${temporaryId(node.inputs[0])}"; |
| 355 | 355 |
| 356 String visitParameterValue(HParameterValue node) { | 356 String visitParameterValue(HParameterValue node) { |
| 357 return "p${node.element.name.slowToString()}"; | 357 return "p${node.sourceElement.name.slowToString()}"; |
| 358 } | 358 } |
| 359 | 359 |
| 360 String visitPhi(HPhi phi) { | 360 String visitPhi(HPhi phi) { |
| 361 StringBuffer buffer = new StringBuffer(); | 361 StringBuffer buffer = new StringBuffer(); |
| 362 buffer.add("Phi("); | 362 buffer.add("Phi("); |
| 363 for (int i = 0; i < phi.inputs.length; i++) { | 363 for (int i = 0; i < phi.inputs.length; i++) { |
| 364 if (i > 0) buffer.add(", "); | 364 if (i > 0) buffer.add(", "); |
| 365 buffer.add(temporaryId(phi.inputs[i])); | 365 buffer.add(temporaryId(phi.inputs[i])); |
| 366 } | 366 } |
| 367 buffer.add(")"); | 367 buffer.add(")"); |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 463 String visitIs(HIs node) { | 463 String visitIs(HIs node) { |
| 464 String type = node.typeExpression.toString(); | 464 String type = node.typeExpression.toString(); |
| 465 return "TypeTest: ${temporaryId(node.expression)} is $type"; | 465 return "TypeTest: ${temporaryId(node.expression)} is $type"; |
| 466 } | 466 } |
| 467 | 467 |
| 468 String visitTypeConversion(HTypeConversion node) { | 468 String visitTypeConversion(HTypeConversion node) { |
| 469 String type = node.propagatedType.toString(); | 469 String type = node.propagatedType.toString(); |
| 470 return "TypeConversion: ${temporaryId(node.inputs[0])} to $type"; | 470 return "TypeConversion: ${temporaryId(node.inputs[0])} to $type"; |
| 471 } | 471 } |
| 472 } | 472 } |
| OLD | NEW |