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

Unified Diff: pkg/compiler/lib/src/js_emitter/code_emitter_task.dart

Issue 2000323006: Make CompilerTask independent of compiler. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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
Index: pkg/compiler/lib/src/js_emitter/code_emitter_task.dart
diff --git a/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart b/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart
index 28583fcbeaf5eedc6a77e86e22d7c656126f264d..da0aff8169af40929bf99e2e313fc78799d66244 100644
--- a/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart
+++ b/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart
@@ -19,6 +19,7 @@ class CodeEmitterTask extends CompilerTask {
NativeEmitter nativeEmitter;
MetadataCollector metadataCollector;
Emitter emitter;
+ final Compiler compiler;
/// Records if a type variable is read dynamically for type tests.
final Set<TypeVariableElement> readTypeVariables =
@@ -35,9 +36,10 @@ class CodeEmitterTask extends CompilerTask {
CodeEmitterTask(Compiler compiler, Namer namer, bool generateSourceMap,
bool useStartupEmitter)
- : super(compiler),
+ : compiler = compiler,
this.namer = namer,
- this.typeTestRegistry = new TypeTestRegistry(compiler) {
+ this.typeTestRegistry = new TypeTestRegistry(compiler),
+ super(compiler.measurer) {
nativeEmitter = new NativeEmitter(this);
if (USE_LAZY_EMITTER) {
emitter = new lazy_js_emitter.Emitter(compiler, namer, nativeEmitter);

Powered by Google App Engine
This is Rietveld 408576698