| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 dart2js.ir_tracer; | 5 library dart2js.ir_tracer; |
| 6 | 6 |
| 7 import 'dart:async' show EventSink; | 7 import 'dart:async' show EventSink; |
| 8 import 'cps_ir_nodes.dart' as cps_ir; | 8 import 'cps_ir_nodes.dart' as cps_ir; |
| 9 import '../tracer.dart'; | 9 import '../tracer.dart'; |
| 10 | 10 |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 visitGetLazyStatic(cps_ir.GetLazyStatic node) { | 294 visitGetLazyStatic(cps_ir.GetLazyStatic node) { |
| 295 String element = node.element.name; | 295 String element = node.element.name; |
| 296 return "GetLazyStatic $element"; | 296 return "GetLazyStatic $element"; |
| 297 } | 297 } |
| 298 | 298 |
| 299 visitCreateBox(cps_ir.CreateBox node) { | 299 visitCreateBox(cps_ir.CreateBox node) { |
| 300 return 'CreateBox'; | 300 return 'CreateBox'; |
| 301 } | 301 } |
| 302 | 302 |
| 303 visitCreateInstance(cps_ir.CreateInstance node) { | 303 visitCreateInstance(cps_ir.CreateInstance node) { |
| 304 String className = node.classElement.name; | 304 String name = '${node.dartType}'; |
| 305 String arguments = node.arguments.map(formatReference).join(', '); | 305 String arguments = node.arguments.map(formatReference).join(', '); |
| 306 String typeInformation = | 306 String typeInformation = |
| 307 node.typeInformation.map(formatReference).join(', '); | 307 node.typeInformation.map(formatReference).join(', '); |
| 308 return 'CreateInstance $className ($arguments) <$typeInformation>'; | 308 return 'CreateInstance $name ($arguments) <$typeInformation>'; |
| 309 } | 309 } |
| 310 | 310 |
| 311 visitInterceptor(cps_ir.Interceptor node) { | 311 visitInterceptor(cps_ir.Interceptor node) { |
| 312 return 'Interceptor(${formatReference(node.input)}, ' | 312 return 'Interceptor(${formatReference(node.input)}, ' |
| 313 '${node.interceptedClasses})'; | 313 '${node.interceptedClasses})'; |
| 314 } | 314 } |
| 315 | 315 |
| 316 visitGetMutable(cps_ir.GetMutable node) { | 316 visitGetMutable(cps_ir.GetMutable node) { |
| 317 String variable = names.name(node.variable.definition); | 317 String variable = names.name(node.variable.definition); |
| 318 return 'GetMutable $variable'; | 318 return 'GetMutable $variable'; |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 691 } | 691 } |
| 692 | 692 |
| 693 visitBoundsCheck(cps_ir.BoundsCheck node) { | 693 visitBoundsCheck(cps_ir.BoundsCheck node) { |
| 694 unexpectedNode(node); | 694 unexpectedNode(node); |
| 695 } | 695 } |
| 696 | 696 |
| 697 visitNullCheck(cps_ir.NullCheck node) { | 697 visitNullCheck(cps_ir.NullCheck node) { |
| 698 unexpectedNode(node); | 698 unexpectedNode(node); |
| 699 } | 699 } |
| 700 } | 700 } |
| OLD | NEW |