Index: pkg/compiler/lib/src/tracer.dart |
diff --git a/pkg/compiler/lib/src/tracer.dart b/pkg/compiler/lib/src/tracer.dart |
index 723c7ede28492acfb855134d369026a461745496..359ea772340a0a8cefe17e3085b034d29cead348 100644 |
--- a/pkg/compiler/lib/src/tracer.dart |
+++ b/pkg/compiler/lib/src/tracer.dart |
@@ -6,22 +6,15 @@ library tracer; |
import 'dart:async' show EventSink; |
import '../compiler.dart' as api; |
-import 'common/work.dart' show |
- ItemCompilationContext; |
-import 'compiler.dart' show |
- Compiler; |
-import 'ssa/nodes.dart' as ssa show |
- HGraph; |
-import 'ssa/ssa_tracer.dart' show |
- HTracer; |
+import 'common/work.dart' show ItemCompilationContext; |
+import 'compiler.dart' show Compiler; |
+import 'ssa/nodes.dart' as ssa show HGraph; |
+import 'ssa/ssa_tracer.dart' show HTracer; |
import 'cps_ir/cps_ir_nodes.dart' as cps_ir; |
-import 'cps_ir/cps_ir_tracer.dart' show |
- IRTracer; |
+import 'cps_ir/cps_ir_tracer.dart' show IRTracer; |
import 'tree_ir/tree_ir_nodes.dart' as tree_ir; |
-import 'tree_ir/tree_ir_tracer.dart' show |
- TreeTracer; |
-import 'util/util.dart' show |
- Indentation; |
+import 'tree_ir/tree_ir_tracer.dart' show TreeTracer; |
+import 'util/util.dart' show Indentation; |
/** |
* If non-null, we only trace methods whose name match the regexp defined by the |
@@ -47,8 +40,8 @@ class Tracer extends TracerUtil { |
: this.compiler = compiler, |
output = TRACE_FILTER != null ? outputProvider('dart', 'cfg') : null; |
- void traceCompilation(String methodName, |
- ItemCompilationContext compilationContext) { |
+ void traceCompilation( |
+ String methodName, ItemCompilationContext compilationContext) { |
if (!isEnabled) return; |
traceActive = TRACE_FILTER.hasMatch(methodName); |
if (!traceActive) return; |
@@ -64,11 +57,9 @@ class Tracer extends TracerUtil { |
if (!traceActive) return; |
if (irObject is ssa.HGraph) { |
new HTracer(output, compiler, context).traceGraph(name, irObject); |
- } |
- else if (irObject is cps_ir.FunctionDefinition) { |
+ } else if (irObject is cps_ir.FunctionDefinition) { |
new IRTracer(output).traceGraph(name, irObject); |
- } |
- else if (irObject is tree_ir.FunctionDefinition) { |
+ } else if (irObject is tree_ir.FunctionDefinition) { |
new TreeTracer(output).traceGraph(name, irObject); |
} |
} |
@@ -80,7 +71,6 @@ class Tracer extends TracerUtil { |
} |
} |
- |
abstract class TracerUtil { |
EventSink<String> get output; |
final Indentation _ind = new Indentation(); |