Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(630)

Unified Diff: pkg/compiler/lib/src/tracer.dart

Issue 1859343004: dartfmt pkg/compiler (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/tokens/token_map.dart ('k') | pkg/compiler/lib/src/tree/dartstring.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « pkg/compiler/lib/src/tokens/token_map.dart ('k') | pkg/compiler/lib/src/tree/dartstring.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698