| 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; |
| 11 import '../js_backend/js_backend.dart'; | 11 import '../js_backend/js_backend.dart'; |
| 12 import '../tracer.dart'; | 12 import '../tracer.dart'; |
| 13 | |
| 14 import 'nodes.dart'; | 13 import 'nodes.dart'; |
| 15 | 14 |
| 16 /** | 15 /** |
| 17 * Outputs SSA code in a format readable by Hydra IR. | 16 * Outputs SSA code in a format readable by Hydra IR. |
| 18 * Tracing is disabled by default, see ../tracer.dart for how | 17 * Tracing is disabled by default, see ../tracer.dart for how |
| 19 * to enable it. | 18 * to enable it. |
| 20 */ | 19 */ |
| 21 class HTracer extends HGraphVisitor with TracerUtil { | 20 class HTracer extends HGraphVisitor with TracerUtil { |
| 22 Compiler compiler; | 21 Compiler compiler; |
| 23 JavaScriptItemCompilationContext context; | 22 JavaScriptItemCompilationContext context; |
| (...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 528 } | 527 } |
| 529 | 528 |
| 530 String visitAwait(HAwait node) { | 529 String visitAwait(HAwait node) { |
| 531 return "Await: ${temporaryId(node.inputs[0])}"; | 530 return "Await: ${temporaryId(node.inputs[0])}"; |
| 532 } | 531 } |
| 533 | 532 |
| 534 String visitYield(HYield node) { | 533 String visitYield(HYield node) { |
| 535 return "Yield${node.hasStar ? "*" : ""}: ${temporaryId(node.inputs[0])}"; | 534 return "Yield${node.hasStar ? "*" : ""}: ${temporaryId(node.inputs[0])}"; |
| 536 } | 535 } |
| 537 } | 536 } |
| OLD | NEW |