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

Unified Diff: pkg/compiler/lib/src/js_backend/backend.dart

Issue 2809203003: Remove Compiler/JavaScriptBackend from metadata_collector (Closed)
Patch Set: Created 3 years, 8 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_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,

Powered by Google App Engine
This is Rietveld 408576698