| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 } | 401 } |
| 402 | 402 |
| 403 String visitReturn(HReturn node) => "Return ${temporaryId(node.inputs[0])}"; | 403 String visitReturn(HReturn node) => "Return ${temporaryId(node.inputs[0])}"; |
| 404 | 404 |
| 405 String visitShiftLeft(HShiftLeft node) => visitInvokeStatic(node); | 405 String visitShiftLeft(HShiftLeft node) => visitInvokeStatic(node); |
| 406 | 406 |
| 407 String visitShiftRight(HShiftRight node) => visitInvokeStatic(node); | 407 String visitShiftRight(HShiftRight node) => visitInvokeStatic(node); |
| 408 | 408 |
| 409 String visitStatic(HStatic node) | 409 String visitStatic(HStatic node) |
| 410 => "Static ${node.element.name.slowToString()}"; | 410 => "Static ${node.element.name.slowToString()}"; |
| 411 |
| 412 String visitLazyStatic(HLazyStatic node) |
| 413 => "LazyStatic ${node.element.name.slowToString()}"; |
| 414 |
| 411 String visitStaticStore(HStaticStore node) { | 415 String visitStaticStore(HStaticStore node) { |
| 412 String lhs = node.element.name.slowToString(); | 416 String lhs = node.element.name.slowToString(); |
| 413 return "Static $lhs = ${temporaryId(node.inputs[0])}"; | 417 return "Static $lhs = ${temporaryId(node.inputs[0])}"; |
| 414 } | 418 } |
| 415 | 419 |
| 416 String visitStringConcat(HStringConcat node) { | 420 String visitStringConcat(HStringConcat node) { |
| 417 var leftId = temporaryId(node.left); | 421 var leftId = temporaryId(node.left); |
| 418 var rightId = temporaryId(node.right); | 422 var rightId = temporaryId(node.right); |
| 419 return "StringConcat: $leftId + $rightId"; | 423 return "StringConcat: $leftId + $rightId"; |
| 420 } | 424 } |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 508 String visitIs(HIs node) { | 512 String visitIs(HIs node) { |
| 509 String type = node.typeExpression.toString(); | 513 String type = node.typeExpression.toString(); |
| 510 return "TypeTest: ${temporaryId(node.expression)} is $type"; | 514 return "TypeTest: ${temporaryId(node.expression)} is $type"; |
| 511 } | 515 } |
| 512 | 516 |
| 513 String visitTypeConversion(HTypeConversion node) { | 517 String visitTypeConversion(HTypeConversion node) { |
| 514 String type = node.propagatedType.toString(); | 518 String type = node.propagatedType.toString(); |
| 515 return "TypeConversion: ${temporaryId(node.inputs[0])} to $type"; | 519 return "TypeConversion: ${temporaryId(node.inputs[0])} to $type"; |
| 516 } | 520 } |
| 517 } | 521 } |
| OLD | NEW |