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