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 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 String target = invoke.element.name; | 322 String target = invoke.element.name; |
323 return visitGenericInvoke("Invoke super", target, invoke.inputs); | 323 return visitGenericInvoke("Invoke super", target, invoke.inputs); |
324 } | 324 } |
325 | 325 |
326 String visitInvokeConstructorBody(HInvokeConstructorBody invoke) { | 326 String visitInvokeConstructorBody(HInvokeConstructorBody invoke) { |
327 String target = invoke.element.name; | 327 String target = invoke.element.name; |
328 return visitGenericInvoke("Invoke constructor body", target, invoke.inputs); | 328 return visitGenericInvoke("Invoke constructor body", target, invoke.inputs); |
329 } | 329 } |
330 | 330 |
331 String visitForeign(HForeign foreign) { | 331 String visitForeign(HForeign foreign) { |
332 return visitGenericInvoke("Foreign", "${foreign.codeAst}", foreign.inputs); | 332 return visitGenericInvoke("Foreign", "${foreign.codeTemplate.ast}", foreign.
inputs); |
333 } | 333 } |
334 | 334 |
335 String visitForeignNew(HForeignNew node) { | 335 String visitForeignNew(HForeignNew node) { |
336 return visitGenericInvoke("New", | 336 return visitGenericInvoke("New", |
337 "${node.element.name}", | 337 "${node.element.name}", |
338 node.inputs); | 338 node.inputs); |
339 } | 339 } |
340 | 340 |
341 String visitLess(HLess node) => handleInvokeBinary(node, '<'); | 341 String visitLess(HLess node) => handleInvokeBinary(node, '<'); |
342 String visitLessEqual(HLessEqual node) => handleInvokeBinary(node, '<='); | 342 String visitLessEqual(HLessEqual node) => handleInvokeBinary(node, '<='); |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
506 } | 506 } |
507 | 507 |
508 String visitInterfaceType(HInterfaceType node) { | 508 String visitInterfaceType(HInterfaceType node) { |
509 return "InterfaceType: ${node.dartType}"; | 509 return "InterfaceType: ${node.dartType}"; |
510 } | 510 } |
511 | 511 |
512 String visitDynamicType(HDynamicType node) { | 512 String visitDynamicType(HDynamicType node) { |
513 return "DynamicType"; | 513 return "DynamicType"; |
514 } | 514 } |
515 } | 515 } |
OLD | NEW |