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 6f3f30e3e6bfcb759d5e72812e03c21e065f9334..cb89790eea7031cb1e743f59335b690126b797a4 100644 |
--- a/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart |
+++ b/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart |
@@ -4,7 +4,7 @@ |
part of dart2js.js_emitter; |
-const USE_NEW_EMITTER = const bool.fromEnvironment("dart2js.use.new.emitter"); |
+const USE_LAZY_EMITTER = const bool.fromEnvironment("dart2js.use.lazy.emitter"); |
/** |
* Generates the code for all used classes in the program. Static fields (even |
@@ -54,8 +54,8 @@ class CodeEmitterTask extends CompilerTask { |
this.typeTestRegistry = new TypeTestRegistry(compiler) { |
nativeEmitter = new NativeEmitter(this); |
oldEmitter = new OldEmitter(compiler, namer, generateSourceMap, this); |
- emitter = USE_NEW_EMITTER |
- ? new new_js_emitter.Emitter(compiler, namer, nativeEmitter) |
+ emitter = USE_LAZY_EMITTER |
+ ? new lazy_js_emitter.Emitter(compiler, namer, nativeEmitter) |
: oldEmitter; |
metadataCollector = new MetadataCollector(compiler, emitter); |
} |