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

Unified Diff: pkg/compiler/lib/src/js_emitter/lazy_emitter/model_emitter.dart

Issue 2935663002: Remove Compiler.commonElements (Closed)
Patch Set: Remove Compiler._commonElements 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/lazy_emitter/model_emitter.dart
diff --git a/pkg/compiler/lib/src/js_emitter/lazy_emitter/model_emitter.dart b/pkg/compiler/lib/src/js_emitter/lazy_emitter/model_emitter.dart
index 2b04fac5675d71fa22df5de283c7d69517c0ddb9..44c88660b8ef84a42509885eabd36b36f9c5bfc8 100644
--- a/pkg/compiler/lib/src/js_emitter/lazy_emitter/model_emitter.dart
+++ b/pkg/compiler/lib/src/js_emitter/lazy_emitter/model_emitter.dart
@@ -223,7 +223,7 @@ class ModelEmitter {
'deferredInitializer': emitDeferredInitializerGlobal(program.loadMap),
'holders': emitHolders(program.holders),
'tearOff': buildTearOffCode(compiler.options, backend.emitter.emitter,
- backend.namer, compiler.commonElements),
+ backend.namer, _closedWorld.commonElements),
'parseFunctionDescriptor':
js.js.statement(parseFunctionDescriptorBoilerplate, {
'argumentCount': js.string(namer.requiredParameterField),
@@ -365,7 +365,7 @@ class ModelEmitter {
js.Property emitMangledGlobalNames() {
List<js.Property> names = <js.Property>[];
- CommonElements commonElements = compiler.commonElements;
+ CommonElements commonElements = _closedWorld.commonElements;
// We want to keep the original names for the most common core classes when
// calling toString on them.
List<ClassElement> nativeClassesNeedingUnmangledName = [

Powered by Google App Engine
This is Rietveld 408576698