| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 dart2js.ir_tracer; | 5 library dart2js.ir_tracer; |
| 6 | 6 |
| 7 import 'dart:async' show EventSink; | 7 import 'dart:async' show EventSink; |
| 8 import 'cps_ir_nodes.dart' as cps_ir hide Function; | 8 import 'cps_ir_nodes.dart' as cps_ir hide Function; |
| 9 import '../tracer.dart'; | 9 import '../tracer.dart'; |
| 10 | 10 |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 | 332 |
| 333 visitReifyRuntimeType(cps_ir.ReifyRuntimeType node) { | 333 visitReifyRuntimeType(cps_ir.ReifyRuntimeType node) { |
| 334 return "ReifyRuntimeType ${formatReference(node.value)}"; | 334 return "ReifyRuntimeType ${formatReference(node.value)}"; |
| 335 } | 335 } |
| 336 | 336 |
| 337 visitTypeExpression(cps_ir.TypeExpression node) { | 337 visitTypeExpression(cps_ir.TypeExpression node) { |
| 338 return "TypeExpression ${node.dartType} " | 338 return "TypeExpression ${node.dartType} " |
| 339 "${node.arguments.map(formatReference).join(', ')}"; | 339 "${node.arguments.map(formatReference).join(', ')}"; |
| 340 } | 340 } |
| 341 | 341 |
| 342 visitNonTailThrow(cps_ir.NonTailThrow node) { | |
| 343 String value = formatReference(node.value); | |
| 344 return "NonTailThrow($value)"; | |
| 345 } | |
| 346 | |
| 347 visitCreateInvocationMirror(cps_ir.CreateInvocationMirror node) { | 342 visitCreateInvocationMirror(cps_ir.CreateInvocationMirror node) { |
| 348 String args = node.arguments.map(formatReference).join(', '); | 343 String args = node.arguments.map(formatReference).join(', '); |
| 349 return "CreateInvocationMirror(${node.selector.name}, $args)"; | 344 return "CreateInvocationMirror(${node.selector.name}, $args)"; |
| 350 } | 345 } |
| 351 | 346 |
| 352 visitTypeTest(cps_ir.TypeTest node) { | 347 visitTypeTest(cps_ir.TypeTest node) { |
| 353 String value = formatReference(node.value); | 348 String value = formatReference(node.value); |
| 354 String args = node.typeArguments.map(formatReference).join(', '); | 349 String args = node.typeArguments.map(formatReference).join(', '); |
| 355 return "TypeTest ($value ${node.type} ($args))"; | 350 return "TypeTest ($value ${node.type} ($args))"; |
| 356 } | 351 } |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 612 } | 607 } |
| 613 | 608 |
| 614 visitReifyRuntimeType(cps_ir.ReifyRuntimeType node) { | 609 visitReifyRuntimeType(cps_ir.ReifyRuntimeType node) { |
| 615 unexpectedNode(node); | 610 unexpectedNode(node); |
| 616 } | 611 } |
| 617 | 612 |
| 618 visitTypeExpression(cps_ir.TypeExpression node) { | 613 visitTypeExpression(cps_ir.TypeExpression node) { |
| 619 unexpectedNode(node); | 614 unexpectedNode(node); |
| 620 } | 615 } |
| 621 | 616 |
| 622 visitNonTailThrow(cps_ir.NonTailThrow node) { | |
| 623 unexpectedNode(node); | |
| 624 } | |
| 625 | |
| 626 visitCreateInvocationMirror(cps_ir.CreateInvocationMirror node) { | 617 visitCreateInvocationMirror(cps_ir.CreateInvocationMirror node) { |
| 627 unexpectedNode(node); | 618 unexpectedNode(node); |
| 628 } | 619 } |
| 629 | 620 |
| 630 visitTypeTest(cps_ir.TypeTest node) { | 621 visitTypeTest(cps_ir.TypeTest node) { |
| 631 unexpectedNode(node); | 622 unexpectedNode(node); |
| 632 } | 623 } |
| 633 | 624 |
| 634 visitApplyBuiltinOperator(cps_ir.ApplyBuiltinOperator node) { | 625 visitApplyBuiltinOperator(cps_ir.ApplyBuiltinOperator node) { |
| 635 unexpectedNode(node); | 626 unexpectedNode(node); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 659 unexpectedNode(node); | 650 unexpectedNode(node); |
| 660 } | 651 } |
| 661 | 652 |
| 662 @override | 653 @override |
| 663 visitForeignCode(cps_ir.ForeignCode node) { | 654 visitForeignCode(cps_ir.ForeignCode node) { |
| 664 if (node.continuation != null) { | 655 if (node.continuation != null) { |
| 665 addEdgeToContinuation(node.continuation); | 656 addEdgeToContinuation(node.continuation); |
| 666 } | 657 } |
| 667 } | 658 } |
| 668 } | 659 } |
| OLD | NEW |