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

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

Issue 3004713002: Remove use of Compiler in inferrer engines. (Closed)
Patch Set: Created 3 years, 4 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/js_emitter/startup_emitter/model_emitter.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 ad0b47adc1b613533560e2d76d16eed563178209..cdebb1cc61aaadd487444e6e623df33b00e7abc4 100644
--- a/pkg/compiler/lib/src/tracer.dart
+++ b/pkg/compiler/lib/src/tracer.dart
@@ -5,7 +5,6 @@
library tracer;
import '../compiler_new.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;
@@ -34,12 +33,13 @@ class Tracer extends TracerUtil {
final api.OutputSink output;
final RegExp traceFilter;
- Tracer(this.closedWorld, this.namer, Compiler compiler)
+ Tracer(this.closedWorld, this.namer, api.CompilerOutput compilerOutput)
: traceFilter = TRACE_FILTER_PATTERN == null
? null
: new RegExp(TRACE_FILTER_PATTERN),
output = TRACE_FILTER_PATTERN != null
- ? compiler.outputProvider('dart', 'cfg', api.OutputType.debug)
+ ? compilerOutput.createOutputSink(
+ 'dart', 'cfg', api.OutputType.debug)
: null;
bool get isEnabled => traceFilter != null;
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/startup_emitter/model_emitter.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698