Index: pkg/compiler/lib/src/js_backend/backend.dart |
diff --git a/pkg/compiler/lib/src/js_backend/backend.dart b/pkg/compiler/lib/src/js_backend/backend.dart |
index c46eb0842f0fb7d798f426436b300a775bb321cd..5dd20409243ec59f7545664d1b41dff0eb918644 100644 |
--- a/pkg/compiler/lib/src/js_backend/backend.dart |
+++ b/pkg/compiler/lib/src/js_backend/backend.dart |
@@ -42,7 +42,7 @@ import '../js/js.dart' as jsAst; |
import '../js/js.dart' show js; |
import '../js/js_source_mapping.dart' show JavaScriptSourceInformationStrategy; |
import '../js/rewrite_async.dart'; |
-import '../js_emitter/js_emitter.dart' show CodeEmitterTask; |
+import '../js_emitter/js_emitter.dart' show CodeEmitterTask, Emitter; |
import '../kernel/task.dart'; |
import '../library_loader.dart' show LoadedLibraries; |
import '../native/native.dart' as native; |
@@ -1047,7 +1047,7 @@ class JavaScriptBackend { |
*/ |
String getGeneratedCode(Element element) { |
assert(invariant(element, element.isDeclaration)); |
- return jsAst.prettyPrint(generatedCode[element], compiler); |
+ return jsAst.prettyPrint(generatedCode[element], compiler.options); |
} |
/// Called to finalize the [RuntimeTypesChecks] information. |
@@ -1194,9 +1194,8 @@ class JavaScriptBackend { |
_closedWorld = closedWorld; |
_namer = determineNamer(closedWorld, codegenWorldBuilder); |
tracer = new Tracer(closedWorld, namer, compiler); |
- emitter.createEmitter(namer, closedWorld); |
- _rtiEncoder = |
- _namer.rtiEncoder = new _RuntimeTypesEncoder(namer, emitter, helpers); |
+ _rtiEncoder = _namer.rtiEncoder = new _RuntimeTypesEncoder(namer, helpers); |
+ emitter.createEmitter(namer, closedWorld, codegenWorldBuilder); |
_codegenImpactTransformer = new CodegenImpactTransformer( |
compiler.options, |
compiler.elementEnvironment, |