| 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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 } | 222 } |
| 223 | 223 |
| 224 visitContinuation(cps_ir.Continuation node) { | 224 visitContinuation(cps_ir.Continuation node) { |
| 225 return "Continuation ${names.name(node)}"; | 225 return "Continuation ${names.name(node)}"; |
| 226 } | 226 } |
| 227 | 227 |
| 228 visitIsTrue(cps_ir.IsTrue node) { | 228 visitIsTrue(cps_ir.IsTrue node) { |
| 229 return "IsTrue(${names.name(node.value.definition)})"; | 229 return "IsTrue(${names.name(node.value.definition)})"; |
| 230 } | 230 } |
| 231 | 231 |
| 232 visitIdentical(cps_ir.Identical node) { |
| 233 String left = formatReference(node.left); |
| 234 String right = formatReference(node.right); |
| 235 return "Identical($left, $right)"; |
| 236 } |
| 237 |
| 232 visitThis(cps_ir.This node) { | 238 visitThis(cps_ir.This node) { |
| 233 return "This"; | 239 return "This"; |
| 234 } | 240 } |
| 235 | 241 |
| 236 visitReifyTypeVar(cps_ir.ReifyTypeVar node) { | 242 visitReifyTypeVar(cps_ir.ReifyTypeVar node) { |
| 237 return "ReifyTypeVar ${node.typeVariable.name}"; | 243 return "ReifyTypeVar ${node.typeVariable.name}"; |
| 238 } | 244 } |
| 239 | 245 |
| 240 visitCreateFunction(cps_ir.CreateFunction node) { | 246 visitCreateFunction(cps_ir.CreateFunction node) { |
| 241 return "CreateFunction ${node.definition.element.name}"; | 247 return "CreateFunction ${node.definition.element.name}"; |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 } | 389 } |
| 384 } | 390 } |
| 385 | 391 |
| 386 visitContinuation(cps_ir.Continuation c) { | 392 visitContinuation(cps_ir.Continuation c) { |
| 387 var old_node = current_block; | 393 var old_node = current_block; |
| 388 current_block = getBlock(c); | 394 current_block = getBlock(c); |
| 389 visit(c.body); | 395 visit(c.body); |
| 390 current_block = old_node; | 396 current_block = old_node; |
| 391 } | 397 } |
| 392 } | 398 } |
| OLD | NEW |