| 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 ssa.tracer; | 5 library ssa.tracer; |
| 6 | 6 |
| 7 import '../../compiler_new.dart' show OutputSink; | 7 import '../../compiler_new.dart' show OutputSink; |
| 8 import '../diagnostics/invariant.dart' show DEBUG_MODE; | 8 import '../diagnostics/invariant.dart' show DEBUG_MODE; |
| 9 import '../js_backend/namer.dart' show Namer; | 9 import '../js_backend/namer.dart' show Namer; |
| 10 import '../tracer.dart'; | 10 import '../tracer.dart'; |
| (...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 529 return "TypeInfoReadVariable: " | 529 return "TypeInfoReadVariable: " |
| 530 "${temporaryId(node.inputs.single)}.${node.variable}"; | 530 "${temporaryId(node.inputs.single)}.${node.variable}"; |
| 531 } | 531 } |
| 532 | 532 |
| 533 String visitTypeInfoExpression(HTypeInfoExpression node) { | 533 String visitTypeInfoExpression(HTypeInfoExpression node) { |
| 534 var inputs = node.inputs.map(temporaryId).join(', '); | 534 var inputs = node.inputs.map(temporaryId).join(', '); |
| 535 return "TypeInfoExpression: ${node.kindAsString} ${node.dartType}" | 535 return "TypeInfoExpression: ${node.kindAsString} ${node.dartType}" |
| 536 " ($inputs)"; | 536 " ($inputs)"; |
| 537 } | 537 } |
| 538 | 538 |
| 539 String visitReadTypeVariable(HReadTypeVariable node) { | |
| 540 var inputs = node.inputs.map(temporaryId).join(', '); | |
| 541 return "ReadTypeVariable: ${node.dartType} ${node.hasReceiver} $inputs"; | |
| 542 } | |
| 543 | |
| 544 String visitFunctionType(HFunctionType node) { | |
| 545 var inputs = node.inputs.map(temporaryId).join(', '); | |
| 546 return "FunctionType: ${node.dartType} $inputs"; | |
| 547 } | |
| 548 | |
| 549 String visitVoidType(HVoidType node) { | |
| 550 return "VoidType"; | |
| 551 } | |
| 552 | |
| 553 String visitInterfaceType(HInterfaceType node) { | |
| 554 return "InterfaceType: ${node.dartType}"; | |
| 555 } | |
| 556 | |
| 557 String visitDynamicType(HDynamicType node) { | |
| 558 return "DynamicType"; | |
| 559 } | |
| 560 | |
| 561 String visitAwait(HAwait node) { | 539 String visitAwait(HAwait node) { |
| 562 return "Await: ${temporaryId(node.inputs[0])}"; | 540 return "Await: ${temporaryId(node.inputs[0])}"; |
| 563 } | 541 } |
| 564 | 542 |
| 565 String visitYield(HYield node) { | 543 String visitYield(HYield node) { |
| 566 return "Yield${node.hasStar ? "*" : ""}: ${temporaryId(node.inputs[0])}"; | 544 return "Yield${node.hasStar ? "*" : ""}: ${temporaryId(node.inputs[0])}"; |
| 567 } | 545 } |
| 568 } | 546 } |
| OLD | NEW |