| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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:async' show EventSink; | 7 import 'dart:async' show EventSink; |
| 8 | 8 |
| 9 import 'ssa.dart'; | 9 import 'ssa.dart'; |
| 10 import '../js_backend/js_backend.dart'; | 10 import '../js_backend/js_backend.dart'; |
| (...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 return "Static $lhs = ${temporaryId(node.inputs[0])}"; | 442 return "Static $lhs = ${temporaryId(node.inputs[0])}"; |
| 443 } | 443 } |
| 444 | 444 |
| 445 String visitStringConcat(HStringConcat node) { | 445 String visitStringConcat(HStringConcat node) { |
| 446 var leftId = temporaryId(node.left); | 446 var leftId = temporaryId(node.left); |
| 447 var rightId = temporaryId(node.right); | 447 var rightId = temporaryId(node.right); |
| 448 return "StringConcat: $leftId + $rightId"; | 448 return "StringConcat: $leftId + $rightId"; |
| 449 } | 449 } |
| 450 | 450 |
| 451 String visitStringify(HStringify node) { | 451 String visitStringify(HStringify node) { |
| 452 return "Stringify: ${node.inputs[0]}"; | 452 return "Stringify ${temporaryId(node.inputs[0])}"; |
| 453 } | 453 } |
| 454 | 454 |
| 455 String visitSubtract(HSubtract node) => handleInvokeBinary(node, '-'); | 455 String visitSubtract(HSubtract node) => handleInvokeBinary(node, '-'); |
| 456 | 456 |
| 457 String visitSwitch(HSwitch node) { | 457 String visitSwitch(HSwitch node) { |
| 458 StringBuffer buf = new StringBuffer(); | 458 StringBuffer buf = new StringBuffer(); |
| 459 buf.write("Switch: ("); | 459 buf.write("Switch: ("); |
| 460 buf.write(temporaryId(node.inputs[0])); | 460 buf.write(temporaryId(node.inputs[0])); |
| 461 buf.write(") "); | 461 buf.write(") "); |
| 462 for (int i = 1; i < node.inputs.length; i++) { | 462 for (int i = 1; i < node.inputs.length; i++) { |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 539 } | 539 } |
| 540 | 540 |
| 541 String visitInterfaceType(HInterfaceType node) { | 541 String visitInterfaceType(HInterfaceType node) { |
| 542 return "InterfaceType: ${node.dartType}"; | 542 return "InterfaceType: ${node.dartType}"; |
| 543 } | 543 } |
| 544 | 544 |
| 545 String visitDynamicType(HDynamicType node) { | 545 String visitDynamicType(HDynamicType node) { |
| 546 return "DynamicType"; | 546 return "DynamicType"; |
| 547 } | 547 } |
| 548 } | 548 } |
| OLD | NEW |