| 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 tracer; | 5 library tracer; |
| 6 | 6 |
| 7 import 'dart:async' show EventSink; | 7 import 'dart:async' show EventSink; |
| 8 |
| 8 import '../compiler.dart' as api; | 9 import '../compiler.dart' as api; |
| 9 import 'common/work.dart' show ItemCompilationContext; | 10 import 'common/work.dart' show ItemCompilationContext; |
| 10 import 'compiler.dart' show Compiler; | 11 import 'compiler.dart' show Compiler; |
| 12 import 'cps_ir/cps_ir_nodes.dart' as cps_ir; |
| 13 import 'cps_ir/cps_ir_tracer.dart' show IRTracer; |
| 11 import 'ssa/nodes.dart' as ssa show HGraph; | 14 import 'ssa/nodes.dart' as ssa show HGraph; |
| 12 import 'ssa/ssa_tracer.dart' show HTracer; | 15 import 'ssa/ssa_tracer.dart' show HTracer; |
| 13 import 'cps_ir/cps_ir_nodes.dart' as cps_ir; | |
| 14 import 'cps_ir/cps_ir_tracer.dart' show IRTracer; | |
| 15 import 'tree_ir/tree_ir_nodes.dart' as tree_ir; | 16 import 'tree_ir/tree_ir_nodes.dart' as tree_ir; |
| 16 import 'tree_ir/tree_ir_tracer.dart' show TreeTracer; | 17 import 'tree_ir/tree_ir_tracer.dart' show TreeTracer; |
| 17 import 'util/util.dart' show Indentation; | 18 import 'util/util.dart' show Indentation; |
| 18 | 19 |
| 19 /** | 20 /** |
| 20 * If non-null, we only trace methods whose name match the regexp defined by the | 21 * If non-null, we only trace methods whose name match the regexp defined by the |
| 21 * given pattern. | 22 * given pattern. |
| 22 */ | 23 */ |
| 23 const String TRACE_FILTER_PATTERN = const String.fromEnvironment("DUMP_IR"); | 24 const String TRACE_FILTER_PATTERN = const String.fromEnvironment("DUMP_IR"); |
| 24 | 25 |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 } | 109 } |
| 109 | 110 |
| 110 void add(String string) { | 111 void add(String string) { |
| 111 output.add(string); | 112 output.add(string); |
| 112 } | 113 } |
| 113 | 114 |
| 114 void addIndent() { | 115 void addIndent() { |
| 115 add(_ind.indentation); | 116 add(_ind.indentation); |
| 116 } | 117 } |
| 117 } | 118 } |
| OLD | NEW |