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

Unified Diff: pkg/compiler/lib/src/js_emitter/full_emitter/nsm_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/full_emitter/nsm_emitter.dart
diff --git a/pkg/compiler/lib/src/js_emitter/full_emitter/nsm_emitter.dart b/pkg/compiler/lib/src/js_emitter/full_emitter/nsm_emitter.dart
index 70d80e07f6df5148abb78ba6bb1bc452b54f6f37..409e66e56c2e690634ecfdba870a2d936822d8cb 100644
--- a/pkg/compiler/lib/src/js_emitter/full_emitter/nsm_emitter.dart
+++ b/pkg/compiler/lib/src/js_emitter/full_emitter/nsm_emitter.dart
@@ -35,7 +35,7 @@ class NsmEmitter extends CodeEmitterHelper {
void emitNoSuchMethodHandlers(AddPropertyFunction addProperty) {
ClassStubGenerator generator = new ClassStubGenerator(task.emitter,
- compiler.commonElements, namer, codegenWorldBuilder, closedWorld,
+ closedWorld.commonElements, namer, codegenWorldBuilder, closedWorld,
enableMinification: compiler.options.enableMinification);
// Keep track of the JavaScript names we've already added so we
@@ -174,9 +174,10 @@ class NsmEmitter extends CodeEmitterHelper {
}
// Startup code that loops over the method names and puts handlers on the
// Object class to catch noSuchMethod invocations.
- ClassEntity objectClass = compiler.commonElements.objectClass;
+ ClassEntity objectClass = closedWorld.commonElements.objectClass;
jsAst.Expression createInvocationMirror = backend.emitter
- .staticFunctionAccess(compiler.commonElements.createInvocationMirror);
+ .staticFunctionAccess(
+ closedWorld.commonElements.createInvocationMirror);
if (useDiffEncoding) {
statements.add(js.statement(
'''{

Powered by Google App Engine
This is Rietveld 408576698