| 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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 | 296 |
| 297 String visitInvokeClosure(HInvokeClosure node) | 297 String visitInvokeClosure(HInvokeClosure node) |
| 298 => visitInvokeDynamic(node, "closure"); | 298 => visitInvokeDynamic(node, "closure"); |
| 299 | 299 |
| 300 String visitInvokeDynamic(HInvokeDynamic invoke, String kind) { | 300 String visitInvokeDynamic(HInvokeDynamic invoke, String kind) { |
| 301 String receiver = temporaryId(invoke.receiver); | 301 String receiver = temporaryId(invoke.receiver); |
| 302 String name = invoke.selector.name; | 302 String name = invoke.selector.name; |
| 303 String target = "($kind) $receiver.$name"; | 303 String target = "($kind) $receiver.$name"; |
| 304 int offset = HInvoke.ARGUMENTS_OFFSET; | 304 int offset = HInvoke.ARGUMENTS_OFFSET; |
| 305 List arguments = invoke.inputs.sublist(offset); | 305 List arguments = invoke.inputs.sublist(offset); |
| 306 return visitGenericInvoke("Invoke", target, arguments); | 306 return visitGenericInvoke("Invoke", target, arguments) + |
| 307 "(${invoke.selector.mask})"; |
| 307 } | 308 } |
| 308 | 309 |
| 309 String visitInvokeDynamicMethod(HInvokeDynamicMethod node) | 310 String visitInvokeDynamicMethod(HInvokeDynamicMethod node) |
| 310 => visitInvokeDynamic(node, "method"); | 311 => visitInvokeDynamic(node, "method"); |
| 311 String visitInvokeDynamicGetter(HInvokeDynamicGetter node) | 312 String visitInvokeDynamicGetter(HInvokeDynamicGetter node) |
| 312 => visitInvokeDynamic(node, "get"); | 313 => visitInvokeDynamic(node, "get"); |
| 313 String visitInvokeDynamicSetter(HInvokeDynamicSetter node) | 314 String visitInvokeDynamicSetter(HInvokeDynamicSetter node) |
| 314 => visitInvokeDynamic(node, "set"); | 315 => visitInvokeDynamic(node, "set"); |
| 315 | 316 |
| 316 String visitInvokeStatic(HInvokeStatic invoke) { | 317 String visitInvokeStatic(HInvokeStatic invoke) { |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 511 } | 512 } |
| 512 | 513 |
| 513 String visitInterfaceType(HInterfaceType node) { | 514 String visitInterfaceType(HInterfaceType node) { |
| 514 return "InterfaceType: ${node.dartType}"; | 515 return "InterfaceType: ${node.dartType}"; |
| 515 } | 516 } |
| 516 | 517 |
| 517 String visitDynamicType(HDynamicType node) { | 518 String visitDynamicType(HDynamicType node) { |
| 518 return "DynamicType"; | 519 return "DynamicType"; |
| 519 } | 520 } |
| 520 } | 521 } |
| OLD | NEW |