| 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 tracer; | 5 library 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 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 | 348 |
| 349 String visitInvokeDynamicMethod(HInvokeDynamicMethod node) | 349 String visitInvokeDynamicMethod(HInvokeDynamicMethod node) |
| 350 => visitInvokeDynamic(node, "method"); | 350 => visitInvokeDynamic(node, "method"); |
| 351 String visitInvokeDynamicGetter(HInvokeDynamicGetter node) | 351 String visitInvokeDynamicGetter(HInvokeDynamicGetter node) |
| 352 => visitInvokeDynamic(node, "get"); | 352 => visitInvokeDynamic(node, "get"); |
| 353 String visitInvokeDynamicSetter(HInvokeDynamicSetter node) | 353 String visitInvokeDynamicSetter(HInvokeDynamicSetter node) |
| 354 => visitInvokeDynamic(node, "set"); | 354 => visitInvokeDynamic(node, "set"); |
| 355 | 355 |
| 356 String visitInvokeStatic(HInvokeStatic invoke) { | 356 String visitInvokeStatic(HInvokeStatic invoke) { |
| 357 String target = invoke.element.name.slowToString(); | 357 String target = invoke.element.name.slowToString(); |
| 358 int offset = HInvoke.ARGUMENTS_OFFSET; | 358 return visitGenericInvoke("Invoke", target, invoke.inputs); |
| 359 List arguments = invoke.inputs.sublist(offset); | |
| 360 return visitGenericInvoke("Invoke", target, arguments); | |
| 361 } | 359 } |
| 362 | 360 |
| 363 String visitInvokeSuper(HInvokeSuper invoke) { | 361 String visitInvokeSuper(HInvokeSuper invoke) { |
| 364 String target = invoke.element.name.slowToString(); | 362 String target = invoke.element.name.slowToString(); |
| 365 int offset = HInvoke.ARGUMENTS_OFFSET + 1; | 363 int offset = HInvoke.ARGUMENTS_OFFSET + 1; |
| 366 List arguments = invoke.inputs.sublist(offset); | 364 List arguments = invoke.inputs.sublist(offset); |
| 367 return visitGenericInvoke("Invoke super", target, arguments); | 365 return visitGenericInvoke("Invoke super", target, arguments); |
| 368 } | 366 } |
| 369 | 367 |
| 368 String visitInvokeConstructorBody(HInvokeConstructorBody invoke) { |
| 369 String target = invoke.element.name.slowToString(); |
| 370 int offset = HInvoke.ARGUMENTS_OFFSET + 1; |
| 371 List arguments = invoke.inputs.sublist(offset); |
| 372 return visitGenericInvoke("Invoke constructor body", target, arguments); |
| 373 } |
| 374 |
| 370 String visitForeign(HForeign foreign) { | 375 String visitForeign(HForeign foreign) { |
| 371 return visitGenericInvoke("Foreign", "${foreign.codeAst}", foreign.inputs); | 376 return visitGenericInvoke("Foreign", "${foreign.codeAst}", foreign.inputs); |
| 372 } | 377 } |
| 373 | 378 |
| 374 String visitForeignNew(HForeignNew node) { | 379 String visitForeignNew(HForeignNew node) { |
| 375 return visitGenericInvoke("New", | 380 return visitGenericInvoke("New", |
| 376 "${node.element.name.slowToString()}", | 381 "${node.element.name.slowToString()}", |
| 377 node.inputs); | 382 node.inputs); |
| 378 } | 383 } |
| 379 | 384 |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 549 | 554 |
| 550 String visitTypeConversion(HTypeConversion node) { | 555 String visitTypeConversion(HTypeConversion node) { |
| 551 return "TypeConversion: ${temporaryId(node.checkedInput)} to " | 556 return "TypeConversion: ${temporaryId(node.checkedInput)} to " |
| 552 "${node.instructionType}"; | 557 "${node.instructionType}"; |
| 553 } | 558 } |
| 554 | 559 |
| 555 String visitRangeConversion(HRangeConversion node) { | 560 String visitRangeConversion(HRangeConversion node) { |
| 556 return "RangeConversion: ${node.checkedInput}"; | 561 return "RangeConversion: ${node.checkedInput}"; |
| 557 } | 562 } |
| 558 } | 563 } |
| OLD | NEW |