| 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 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 String visitInvokeSuper(HInvokeSuper invoke) { | 324 String visitInvokeSuper(HInvokeSuper invoke) { |
| 325 String target = invoke.element.name; | 325 String target = invoke.element.name; |
| 326 return visitGenericInvoke("Invoke super", target, invoke.inputs); | 326 return visitGenericInvoke("Invoke super", target, invoke.inputs); |
| 327 } | 327 } |
| 328 | 328 |
| 329 String visitInvokeConstructorBody(HInvokeConstructorBody invoke) { | 329 String visitInvokeConstructorBody(HInvokeConstructorBody invoke) { |
| 330 String target = invoke.element.name; | 330 String target = invoke.element.name; |
| 331 return visitGenericInvoke("Invoke constructor body", target, invoke.inputs); | 331 return visitGenericInvoke("Invoke constructor body", target, invoke.inputs); |
| 332 } | 332 } |
| 333 | 333 |
| 334 String visitForeign(HForeign foreign) { | 334 String visitForeignCode(HForeignCode foreign) { |
| 335 return visitGenericInvoke("Foreign", "${foreign.codeTemplate.ast}", foreign.
inputs); | 335 return visitGenericInvoke("Foreign", "${foreign.codeTemplate.ast}", |
| 336 foreign.inputs); |
| 336 } | 337 } |
| 337 | 338 |
| 338 String visitForeignNew(HForeignNew node) { | 339 String visitForeignNew(HForeignNew node) { |
| 339 return visitGenericInvoke("New", | 340 return visitGenericInvoke("New", |
| 340 "${node.element.name}", | 341 "${node.element.name}", |
| 341 node.inputs); | 342 node.inputs); |
| 342 } | 343 } |
| 343 | 344 |
| 344 String visitLess(HLess node) => handleInvokeBinary(node, '<'); | 345 String visitLess(HLess node) => handleInvokeBinary(node, '<'); |
| 345 String visitLessEqual(HLessEqual node) => handleInvokeBinary(node, '<='); | 346 String visitLessEqual(HLessEqual node) => handleInvokeBinary(node, '<='); |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 522 } | 523 } |
| 523 | 524 |
| 524 String visitAwait(HAwait node) { | 525 String visitAwait(HAwait node) { |
| 525 return "await ${temporaryId(node.inputs[0])}"; | 526 return "await ${temporaryId(node.inputs[0])}"; |
| 526 } | 527 } |
| 527 | 528 |
| 528 String visitYield(HYield node) { | 529 String visitYield(HYield node) { |
| 529 return "yield${node.hasStar ? "*" : ""} ${temporaryId(node.inputs[0])}"; | 530 return "yield${node.hasStar ? "*" : ""} ${temporaryId(node.inputs[0])}"; |
| 530 } | 531 } |
| 531 } | 532 } |
| OLD | NEW |