| 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 } else if (instruction.isIndexablePrimitive(compiler)) { | 138 } else if (instruction.isIndexablePrimitive(compiler)) { |
| 139 prefix = 'r'; | 139 prefix = 'r'; |
| 140 } else if (instruction.isBoolean(compiler)) { | 140 } else if (instruction.isBoolean(compiler)) { |
| 141 prefix = 'b'; | 141 prefix = 'b'; |
| 142 } else if (instruction.isInteger(compiler)) { | 142 } else if (instruction.isInteger(compiler)) { |
| 143 prefix = 'i'; | 143 prefix = 'i'; |
| 144 } else if (instruction.isDouble(compiler)) { | 144 } else if (instruction.isDouble(compiler)) { |
| 145 prefix = 'd'; | 145 prefix = 'd'; |
| 146 } else if (instruction.isNumber(compiler)) { | 146 } else if (instruction.isNumber(compiler)) { |
| 147 prefix = 'n'; | 147 prefix = 'n'; |
| 148 } else if (instruction.instructionType.containsAll(compiler.world)) { | 148 } else if (instruction.instructionType.containsAll(compiler.closedWorld)) { |
| 149 prefix = 'v'; | 149 prefix = 'v'; |
| 150 } else { | 150 } else { |
| 151 prefix = 'U'; | 151 prefix = 'U'; |
| 152 } | 152 } |
| 153 return "$prefix${instruction.id}"; | 153 return "$prefix${instruction.id}"; |
| 154 } | 154 } |
| 155 | 155 |
| 156 String visitBoolify(HBoolify node) { | 156 String visitBoolify(HBoolify node) { |
| 157 return "Boolify: ${temporaryId(node.inputs[0])}"; | 157 return "Boolify: ${temporaryId(node.inputs[0])}"; |
| 158 } | 158 } |
| (...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 536 } | 536 } |
| 537 | 537 |
| 538 String visitAwait(HAwait node) { | 538 String visitAwait(HAwait node) { |
| 539 return "Await: ${temporaryId(node.inputs[0])}"; | 539 return "Await: ${temporaryId(node.inputs[0])}"; |
| 540 } | 540 } |
| 541 | 541 |
| 542 String visitYield(HYield node) { | 542 String visitYield(HYield node) { |
| 543 return "Yield${node.hasStar ? "*" : ""}: ${temporaryId(node.inputs[0])}"; | 543 return "Yield${node.hasStar ? "*" : ""}: ${temporaryId(node.inputs[0])}"; |
| 544 } | 544 } |
| 545 } | 545 } |
| OLD | NEW |