| 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 'dart:async' show EventSink; | 7 import 'dart:async' show EventSink; |
| 8 | 8 |
| 9 import '../compiler.dart' show Compiler; | 9 import '../compiler.dart' show Compiler; |
| 10 import '../diagnostics/invariant.dart' show DEBUG_MODE; | 10 import '../diagnostics/invariant.dart' show DEBUG_MODE; |
| (...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 499 if (node.witness != null) { | 499 if (node.witness != null) { |
| 500 result += " witnessed by ${temporaryId(node.witness)}"; | 500 result += " witnessed by ${temporaryId(node.witness)}"; |
| 501 } | 501 } |
| 502 return result; | 502 return result; |
| 503 } | 503 } |
| 504 | 504 |
| 505 String visitRangeConversion(HRangeConversion node) { | 505 String visitRangeConversion(HRangeConversion node) { |
| 506 return "RangeConversion: ${node.checkedInput}"; | 506 return "RangeConversion: ${node.checkedInput}"; |
| 507 } | 507 } |
| 508 | 508 |
| 509 String visitTypeInfoReadRaw(HTypeInfoReadRaw node) { |
| 510 return "TypeInfoReadRaw"; |
| 511 } |
| 512 |
| 513 String visitTypeInfoReadVariable(HTypeInfoReadVariable node) { |
| 514 return "TypeInfoReadVariable ${node.variable}"; |
| 515 } |
| 516 |
| 517 String visitTypeInfoExpression(HTypeInfoExpression node) { |
| 518 return "TypeInfoExpression ${node.kindAsString} ${node.dartType}"; |
| 519 } |
| 520 |
| 509 String visitReadTypeVariable(HReadTypeVariable node) { | 521 String visitReadTypeVariable(HReadTypeVariable node) { |
| 510 return "ReadTypeVariable: ${node.dartType} ${node.hasReceiver}"; | 522 return "ReadTypeVariable: ${node.dartType} ${node.hasReceiver}"; |
| 511 } | 523 } |
| 512 | 524 |
| 513 String visitFunctionType(HFunctionType node) { | 525 String visitFunctionType(HFunctionType node) { |
| 514 return "FunctionType: ${node.dartType}"; | 526 return "FunctionType: ${node.dartType}"; |
| 515 } | 527 } |
| 516 | 528 |
| 517 String visitVoidType(HVoidType node) { | 529 String visitVoidType(HVoidType node) { |
| 518 return "VoidType"; | 530 return "VoidType"; |
| 519 } | 531 } |
| 520 | 532 |
| 521 String visitInterfaceType(HInterfaceType node) { | 533 String visitInterfaceType(HInterfaceType node) { |
| 522 return "InterfaceType: ${node.dartType}"; | 534 return "InterfaceType: ${node.dartType}"; |
| 523 } | 535 } |
| 524 | 536 |
| 525 String visitDynamicType(HDynamicType node) { | 537 String visitDynamicType(HDynamicType node) { |
| 526 return "DynamicType"; | 538 return "DynamicType"; |
| 527 } | 539 } |
| 528 | 540 |
| 529 String visitAwait(HAwait node) { | 541 String visitAwait(HAwait node) { |
| 530 return "Await: ${temporaryId(node.inputs[0])}"; | 542 return "Await: ${temporaryId(node.inputs[0])}"; |
| 531 } | 543 } |
| 532 | 544 |
| 533 String visitYield(HYield node) { | 545 String visitYield(HYield node) { |
| 534 return "Yield${node.hasStar ? "*" : ""}: ${temporaryId(node.inputs[0])}"; | 546 return "Yield${node.hasStar ? "*" : ""}: ${temporaryId(node.inputs[0])}"; |
| 535 } | 547 } |
| 536 } | 548 } |
| OLD | NEW |