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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 if (ref == null) return 'null'; | 239 if (ref == null) return 'null'; |
240 cps_ir.Definition target = ref.definition; | 240 cps_ir.Definition target = ref.definition; |
241 if (target is cps_ir.Continuation && target.isReturnContinuation) { | 241 if (target is cps_ir.Continuation && target.isReturnContinuation) { |
242 return "return"; // Do not generate a name for the return continuation | 242 return "return"; // Do not generate a name for the return continuation |
243 } else { | 243 } else { |
244 return names.name(ref.definition); | 244 return names.name(ref.definition); |
245 } | 245 } |
246 } | 246 } |
247 | 247 |
248 visitConstant(cps_ir.Constant node) { | 248 visitConstant(cps_ir.Constant node) { |
249 return "Constant ${node.value.toStructuredString()}"; | 249 return "Constant ${node.value.toStructuredText()}"; |
250 } | 250 } |
251 | 251 |
252 visitParameter(cps_ir.Parameter node) { | 252 visitParameter(cps_ir.Parameter node) { |
253 return "Parameter ${names.name(node)}"; | 253 return "Parameter ${names.name(node)}"; |
254 } | 254 } |
255 | 255 |
256 visitMutableVariable(cps_ir.MutableVariable node) { | 256 visitMutableVariable(cps_ir.MutableVariable node) { |
257 return "MutableVariable ${names.name(node)}"; | 257 return "MutableVariable ${names.name(node)}"; |
258 } | 258 } |
259 | 259 |
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
674 } | 674 } |
675 | 675 |
676 visitBoundsCheck(cps_ir.BoundsCheck node) { | 676 visitBoundsCheck(cps_ir.BoundsCheck node) { |
677 unexpectedNode(node); | 677 unexpectedNode(node); |
678 } | 678 } |
679 | 679 |
680 visitReceiverCheck(cps_ir.ReceiverCheck node) { | 680 visitReceiverCheck(cps_ir.ReceiverCheck node) { |
681 unexpectedNode(node); | 681 unexpectedNode(node); |
682 } | 682 } |
683 } | 683 } |
OLD | NEW |