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

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

Issue 2575083002: Pass ClosedWorld directly to codegen tasks (Closed)
Patch Set: Updated cf. comment. Created 4 years 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/ssa/value_range_analyzer.dart ('k') | no next file » | 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 e73e82aa63718861a99730ae4276eecedd34731b..02331433ad1fc9c3ab54f545c4da9a9392620191 100644
--- a/pkg/compiler/lib/src/tracer.dart
+++ b/pkg/compiler/lib/src/tracer.dart
@@ -7,10 +7,11 @@ library tracer;
import 'dart:async' show EventSink;
import '../compiler.dart' as api;
-import 'compiler.dart' show Compiler;
+import 'js_backend/namer.dart' show Namer;
import 'ssa/nodes.dart' as ssa show HGraph;
import 'ssa/ssa_tracer.dart' show HTracer;
import 'util/util.dart' show Indentation;
+import 'world.dart' show ClosedWorld;
/**
* If non-null, we only trace methods whose name match the regexp defined by the
@@ -26,14 +27,15 @@ final RegExp TRACE_FILTER =
* readable by IR Hydra.
*/
class Tracer extends TracerUtil {
- final Compiler compiler;
+ final ClosedWorld closedWorld;
+ final Namer namer;
bool traceActive = false;
final EventSink<String> output;
final bool isEnabled = TRACE_FILTER != null;
- Tracer(Compiler compiler, api.CompilerOutputProvider outputProvider)
- : this.compiler = compiler,
- output = TRACE_FILTER != null ? outputProvider('dart', 'cfg') : null;
+ Tracer(
+ this.closedWorld, this.namer, api.CompilerOutputProvider outputProvider)
+ : output = TRACE_FILTER != null ? outputProvider('dart', 'cfg') : null;
void traceCompilation(String methodName) {
if (!isEnabled) return;
@@ -49,7 +51,7 @@ class Tracer extends TracerUtil {
void traceGraph(String name, var irObject) {
if (!traceActive) return;
if (irObject is ssa.HGraph) {
- new HTracer(output, compiler).traceGraph(name, irObject);
+ new HTracer(output, closedWorld, namer).traceGraph(name, irObject);
}
}
« no previous file with comments | « pkg/compiler/lib/src/ssa/value_range_analyzer.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698