| 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 | 8 |
| 9 import 'cps_ir_nodes.dart' as cps_ir hide Function; | 9 import 'cps_ir_nodes.dart' as cps_ir hide Function; |
| 10 import '../tracer.dart'; | 10 import '../tracer.dart'; |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 visitIsTrue(cps_ir.IsTrue node) { | 242 visitIsTrue(cps_ir.IsTrue node) { |
| 243 return "IsTrue(${names.name(node.value.definition)})"; | 243 return "IsTrue(${names.name(node.value.definition)})"; |
| 244 } | 244 } |
| 245 | 245 |
| 246 visitIdentical(cps_ir.Identical node) { | 246 visitIdentical(cps_ir.Identical node) { |
| 247 String left = formatReference(node.left); | 247 String left = formatReference(node.left); |
| 248 String right = formatReference(node.right); | 248 String right = formatReference(node.right); |
| 249 return "Identical($left, $right)"; | 249 return "Identical($left, $right)"; |
| 250 } | 250 } |
| 251 | 251 |
| 252 visitInterceptor(cps_ir.Interceptor node) { | |
| 253 return "Interceptor(${node.input})"; | |
| 254 } | |
| 255 | |
| 256 visitThis(cps_ir.This node) { | 252 visitThis(cps_ir.This node) { |
| 257 return "This"; | 253 return "This"; |
| 258 } | 254 } |
| 259 | 255 |
| 260 visitReifyTypeVar(cps_ir.ReifyTypeVar node) { | 256 visitReifyTypeVar(cps_ir.ReifyTypeVar node) { |
| 261 return "ReifyTypeVar ${node.typeVariable.name}"; | 257 return "ReifyTypeVar ${node.typeVariable.name}"; |
| 262 } | 258 } |
| 263 | 259 |
| 264 visitCreateFunction(cps_ir.CreateFunction node) { | 260 visitCreateFunction(cps_ir.CreateFunction node) { |
| 265 return "CreateFunction ${node.definition.element.name}"; | 261 return "CreateFunction ${node.definition.element.name}"; |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 } | 415 } |
| 420 } | 416 } |
| 421 | 417 |
| 422 visitContinuation(cps_ir.Continuation c) { | 418 visitContinuation(cps_ir.Continuation c) { |
| 423 var old_node = current_block; | 419 var old_node = current_block; |
| 424 current_block = getBlock(c); | 420 current_block = getBlock(c); |
| 425 visit(c.body); | 421 visit(c.body); |
| 426 current_block = old_node; | 422 current_block = old_node; |
| 427 } | 423 } |
| 428 } | 424 } |
| OLD | NEW |