Chromium Code Reviews| 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 |
| 11 /** | 11 /** |
| 12 * If true, show LetCont expressions in output. | 12 * If true, show LetCont expressions in output. |
| 13 */ | 13 */ |
| 14 const bool IR_TRACE_LET_CONT = false; | 14 const bool IR_TRACE_LET_CONT = true; |
|
Siggi Cherem (dart-lang)
2016/02/08 19:26:44
was this supposed to be temporary while debugging?
asgerf
2016/02/09 09:29:07
Changed to false again.
| |
| 15 | 15 |
| 16 class IRTracer extends TracerUtil implements cps_ir.Visitor { | 16 class IRTracer extends TracerUtil implements cps_ir.Visitor { |
| 17 EventSink<String> output; | 17 EventSink<String> output; |
| 18 | 18 |
| 19 IRTracer(this.output); | 19 IRTracer(this.output); |
| 20 | 20 |
| 21 visit(cps_ir.Node node) => node.accept(this); | 21 visit(cps_ir.Node node) => node.accept(this); |
| 22 | 22 |
| 23 void traceGraph(String name, cps_ir.FunctionDefinition node) { | 23 void traceGraph(String name, cps_ir.FunctionDefinition node) { |
| 24 tag("cfg", () { | 24 tag("cfg", () { |
| (...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 678 } | 678 } |
| 679 | 679 |
| 680 visitBoundsCheck(cps_ir.BoundsCheck node) { | 680 visitBoundsCheck(cps_ir.BoundsCheck node) { |
| 681 unexpectedNode(node); | 681 unexpectedNode(node); |
| 682 } | 682 } |
| 683 | 683 |
| 684 visitNullCheck(cps_ir.NullCheck node) { | 684 visitNullCheck(cps_ir.NullCheck node) { |
| 685 unexpectedNode(node); | 685 unexpectedNode(node); |
| 686 } | 686 } |
| 687 } | 687 } |
| OLD | NEW |