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

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

Issue 2824823004: Remove Compiler and JavaScriptBackend from program_builder and 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_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 d6af687b7c46b5e3bfe0ab0b01c1a9ccf9a87a9e..40fa1b9aea0dcf8b970ebc8e32d45313e3a3140c 100644
--- a/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart
+++ b/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart
@@ -179,7 +179,33 @@ class CodeEmitterTask extends CompilerTask {
return measure(() {
Set<ClassEntity> rtiNeededClasses = _finalizeRti();
ProgramBuilder programBuilder = new ProgramBuilder(
- compiler, namer, this, emitter, closedWorld, rtiNeededClasses);
+ compiler.options,
+ compiler.commonElements,
+ compiler.types,
+ compiler.deferredLoadTask,
+ compiler.closureToClassMapper,
+ compiler.codegenWorldBuilder,
+ backend.nativeCodegenEnqueuer,
+ backend.backendUsage,
+ backend.constants,
+ backend.nativeData,
+ backend.rtiNeed,
+ backend.mirrorsData,
+ backend.interceptorData,
+ backend.superMemberData,
+ backend.rtiChecks,
+ backend.rtiEncoder,
+ backend.rtiSubstitutions,
+ backend.jsInteropAnalysis,
+ backend.oneShotInterceptorData,
+ backend.customElementsCodegenAnalysis,
+ backend.generatedCode,
+ namer,
+ this,
+ closedWorld,
+ rtiNeededClasses,
+ compiler.mainFunction,
+ isMockCompilation: compiler.isMockCompilation);
int size = emitter.emitProgram(programBuilder);
// TODO(floitsch): we shouldn't need the `neededClasses` anymore.
neededClasses = programBuilder.collector.neededClasses;
« no previous file with comments | « pkg/compiler/lib/src/js_backend/backend.dart ('k') | pkg/compiler/lib/src/js_emitter/full_emitter/emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698