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

Unified Diff: pkg/compiler/lib/src/inferrer/builder.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
« no previous file with comments | « pkg/compiler/lib/src/deferred_load.dart ('k') | pkg/compiler/lib/src/inferrer/closure_tracer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/inferrer/builder.dart
diff --git a/pkg/compiler/lib/src/inferrer/builder.dart b/pkg/compiler/lib/src/inferrer/builder.dart
index b258a6e7962691b303b129c9138a78a1049cdd72..cb7b330c464623f5a65c51d8930a163fdb1e2e61 100644
--- a/pkg/compiler/lib/src/inferrer/builder.dart
+++ b/pkg/compiler/lib/src/inferrer/builder.dart
@@ -2045,7 +2045,7 @@ class ElementGraphBuilder extends ast.Visitor<TypeInformation>
ClassElement cls = outermostElement.enclosingClass;
MethodElement element = cls.lookupSuperMember(Identifiers.noSuchMethod_);
if (!Selectors.noSuchMethod_.signatureApplies(element)) {
- ClassElement objectClass = compiler.commonElements.objectClass;
+ ClassElement objectClass = closedWorld.commonElements.objectClass;
element = objectClass.lookupMember(Identifiers.noSuchMethod_);
}
return handleStaticSend(node, selector, mask, element, arguments);
@@ -2930,7 +2930,8 @@ class ElementGraphBuilder extends ast.Visitor<TypeInformation>
Selector moveNextSelector = Selectors.moveNext;
TypeMask moveNextMask = inTreeData.typeOfIteratorMoveNext(node);
- ConstructorElement ctor = compiler.commonElements.streamIteratorConstructor;
+ ConstructorElement ctor =
+ closedWorld.commonElements.streamIteratorConstructor;
/// Synthesize a call to the [StreamIterator] constructor.
TypeInformation iteratorType = handleStaticSend(
« no previous file with comments | « pkg/compiler/lib/src/deferred_load.dart ('k') | pkg/compiler/lib/src/inferrer/closure_tracer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698