| 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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 String receiver = temporaryId(node.receiver); | 282 String receiver = temporaryId(node.receiver); |
| 283 String index = temporaryId(node.index); | 283 String index = temporaryId(node.index); |
| 284 String value = temporaryId(node.value); | 284 String value = temporaryId(node.value); |
| 285 return "IndexAssign: $receiver[$index] = $value"; | 285 return "IndexAssign: $receiver[$index] = $value"; |
| 286 } | 286 } |
| 287 | 287 |
| 288 String visitInterceptor(HInterceptor node) { | 288 String visitInterceptor(HInterceptor node) { |
| 289 String value = temporaryId(node.inputs[0]); | 289 String value = temporaryId(node.inputs[0]); |
| 290 if (node.interceptedClasses != null) { | 290 if (node.interceptedClasses != null) { |
| 291 JavaScriptBackend backend = compiler.backend; | 291 JavaScriptBackend backend = compiler.backend; |
| 292 String cls = | 292 String cls = backend.namer.getInterceptorSuffix(node.interceptedClasses); |
| 293 backend.namer.suffixForGetInterceptor(node.interceptedClasses); | |
| 294 return "Intercept ($cls): $value"; | 293 return "Intercept ($cls): $value"; |
| 295 } | 294 } |
| 296 return "Intercept: $value"; | 295 return "Intercept: $value"; |
| 297 } | 296 } |
| 298 | 297 |
| 299 String visitInvokeClosure(HInvokeClosure node) | 298 String visitInvokeClosure(HInvokeClosure node) |
| 300 => visitInvokeDynamic(node, "closure"); | 299 => visitInvokeDynamic(node, "closure"); |
| 301 | 300 |
| 302 String visitInvokeDynamic(HInvokeDynamic invoke, String kind) { | 301 String visitInvokeDynamic(HInvokeDynamic invoke, String kind) { |
| 303 String receiver = temporaryId(invoke.receiver); | 302 String receiver = temporaryId(invoke.receiver); |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 514 } | 513 } |
| 515 | 514 |
| 516 String visitInterfaceType(HInterfaceType node) { | 515 String visitInterfaceType(HInterfaceType node) { |
| 517 return "InterfaceType: ${node.dartType}"; | 516 return "InterfaceType: ${node.dartType}"; |
| 518 } | 517 } |
| 519 | 518 |
| 520 String visitDynamicType(HDynamicType node) { | 519 String visitDynamicType(HDynamicType node) { |
| 521 return "DynamicType"; | 520 return "DynamicType"; |
| 522 } | 521 } |
| 523 } | 522 } |
| OLD | NEW |