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

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

Issue 2935063002: Add ClosedWorld.elementEnvironment and remove Compiler.elementEnvironment (Closed)
Patch Set: Created 3 years, 6 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 f8ba32ed27011d2f5f8d01af456f25bbf8d2f9b2..59c06ae547854be6daa84c56fb5de096d28957f5 100644
--- a/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart
+++ b/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart
@@ -182,7 +182,7 @@ class CodeEmitterTask extends CompilerTask {
backend.mirrorsData,
backend.rtiEncoder);
typeTestRegistry = new TypeTestRegistry(
- codegenWorldBuilder, closedWorld, compiler.elementEnvironment);
+ codegenWorldBuilder, closedWorld, closedWorld.elementEnvironment);
});
}
@@ -192,7 +192,7 @@ class CodeEmitterTask extends CompilerTask {
ProgramBuilder programBuilder = new ProgramBuilder(
compiler.options,
compiler.reporter,
- compiler.elementEnvironment,
+ closedWorld.elementEnvironment,
closedWorld.commonElements,
compiler.types,
compiler.deferredLoadTask,
« no previous file with comments | « pkg/compiler/lib/src/js_backend/element_strategy.dart ('k') | pkg/compiler/lib/src/js_emitter/full_emitter/class_emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698