| 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('../js_backend/js_backend.dart'); | 9 #import('../js_backend/js_backend.dart'); |
| 10 #import('../leg.dart'); | 10 #import('../leg.dart'); |
| (...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 410 } | 410 } |
| 411 | 411 |
| 412 String visitReturn(HReturn node) => "Return ${temporaryId(node.inputs[0])}"; | 412 String visitReturn(HReturn node) => "Return ${temporaryId(node.inputs[0])}"; |
| 413 | 413 |
| 414 String visitShiftLeft(HShiftLeft node) => visitInvokeStatic(node); | 414 String visitShiftLeft(HShiftLeft node) => visitInvokeStatic(node); |
| 415 | 415 |
| 416 String visitShiftRight(HShiftRight node) => visitInvokeStatic(node); | 416 String visitShiftRight(HShiftRight node) => visitInvokeStatic(node); |
| 417 | 417 |
| 418 String visitStatic(HStatic node) | 418 String visitStatic(HStatic node) |
| 419 => "Static ${node.element.name.slowToString()}"; | 419 => "Static ${node.element.name.slowToString()}"; |
| 420 |
| 421 String visitLazyStatic(HLazyStatic node) |
| 422 => "LazyStatic ${node.element.name.slowToString()}"; |
| 423 |
| 420 String visitStaticStore(HStaticStore node) { | 424 String visitStaticStore(HStaticStore node) { |
| 421 String lhs = node.element.name.slowToString(); | 425 String lhs = node.element.name.slowToString(); |
| 422 return "Static $lhs = ${temporaryId(node.inputs[0])}"; | 426 return "Static $lhs = ${temporaryId(node.inputs[0])}"; |
| 423 } | 427 } |
| 424 | 428 |
| 425 String visitStringConcat(HStringConcat node) { | 429 String visitStringConcat(HStringConcat node) { |
| 426 var leftId = temporaryId(node.left); | 430 var leftId = temporaryId(node.left); |
| 427 var rightId = temporaryId(node.right); | 431 var rightId = temporaryId(node.right); |
| 428 return "StringConcat: $leftId + $rightId"; | 432 return "StringConcat: $leftId + $rightId"; |
| 429 } | 433 } |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 516 | 520 |
| 517 String visitIs(HIs node) { | 521 String visitIs(HIs node) { |
| 518 String type = node.typeExpression.toString(); | 522 String type = node.typeExpression.toString(); |
| 519 return "TypeTest: ${temporaryId(node.expression)} is $type"; | 523 return "TypeTest: ${temporaryId(node.expression)} is $type"; |
| 520 } | 524 } |
| 521 | 525 |
| 522 String visitTypeConversion(HTypeConversion node) { | 526 String visitTypeConversion(HTypeConversion node) { |
| 523 return "TypeConversion: ${temporaryId(node.inputs[0])} to ${node.type}"; | 527 return "TypeConversion: ${temporaryId(node.inputs[0])} to ${node.type}"; |
| 524 } | 528 } |
| 525 } | 529 } |
| OLD | NEW |