| 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 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 501 | 501 |
| 502 return "Try: $tryBlock, Catch: $catchBlock, Finally: $finallyBlock, " | 502 return "Try: $tryBlock, Catch: $catchBlock, Finally: $finallyBlock, " |
| 503 "Join: B${successors.last.id}"; | 503 "Join: B${successors.last.id}"; |
| 504 } | 504 } |
| 505 | 505 |
| 506 String visitIs(HIs node) { | 506 String visitIs(HIs node) { |
| 507 String type = node.typeExpression.toString(); | 507 String type = node.typeExpression.toString(); |
| 508 return "TypeTest: ${temporaryId(node.expression)} is $type"; | 508 return "TypeTest: ${temporaryId(node.expression)} is $type"; |
| 509 } | 509 } |
| 510 | 510 |
| 511 String visitIsViaInterceptor(HIsViaInterceptor node) { |
| 512 String type = node.typeExpression.toString(); |
| 513 return "TypeTest: ${temporaryId(node.inputs[0])} is $type"; |
| 514 } |
| 515 |
| 511 String visitTypeConversion(HTypeConversion node) { | 516 String visitTypeConversion(HTypeConversion node) { |
| 512 assert(node.inputs.length <= 2); | 517 assert(node.inputs.length <= 2); |
| 513 String otherInput = (node.inputs.length == 2) | 518 String otherInput = (node.inputs.length == 2) |
| 514 ? temporaryId(node.inputs[1]) | 519 ? temporaryId(node.inputs[1]) |
| 515 : ''; | 520 : ''; |
| 516 return "TypeConversion: ${temporaryId(node.checkedInput)} to " | 521 return "TypeConversion: ${temporaryId(node.checkedInput)} to " |
| 517 "${node.instructionType} $otherInput"; | 522 "${node.instructionType} $otherInput"; |
| 518 } | 523 } |
| 519 | 524 |
| 520 String visitTypeKnown(HTypeKnown node) { | 525 String visitTypeKnown(HTypeKnown node) { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 539 } | 544 } |
| 540 | 545 |
| 541 String visitInterfaceType(HInterfaceType node) { | 546 String visitInterfaceType(HInterfaceType node) { |
| 542 return "InterfaceType: ${node.dartType}"; | 547 return "InterfaceType: ${node.dartType}"; |
| 543 } | 548 } |
| 544 | 549 |
| 545 String visitDynamicType(HDynamicType node) { | 550 String visitDynamicType(HDynamicType node) { |
| 546 return "DynamicType"; | 551 return "DynamicType"; |
| 547 } | 552 } |
| 548 } | 553 } |
| OLD | NEW |