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 '../js_backend/js_backend.dart'; | 10 import '../js_backend/js_backend.dart'; |
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
512 return "VoidType"; | 512 return "VoidType"; |
513 } | 513 } |
514 | 514 |
515 String visitInterfaceType(HInterfaceType node) { | 515 String visitInterfaceType(HInterfaceType node) { |
516 return "InterfaceType: ${node.dartType}"; | 516 return "InterfaceType: ${node.dartType}"; |
517 } | 517 } |
518 | 518 |
519 String visitDynamicType(HDynamicType node) { | 519 String visitDynamicType(HDynamicType node) { |
520 return "DynamicType"; | 520 return "DynamicType"; |
521 } | 521 } |
| 522 |
| 523 String visitAwait(HAwait node) { |
| 524 return "await ${temporaryId(node.inputs[0])}"; |
| 525 } |
| 526 |
| 527 String visitYield(HYield node) { |
| 528 return "yield${node.hasStar ? "*" : ""} ${temporaryId(node.inputs[0])}"; |
| 529 } |
522 } | 530 } |
OLD | NEW |