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

Unified Diff: pkg/compiler/lib/src/inferrer/closure_tracer.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/inferrer/builder.dart ('k') | pkg/compiler/lib/src/inferrer/list_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/closure_tracer.dart
diff --git a/pkg/compiler/lib/src/inferrer/closure_tracer.dart b/pkg/compiler/lib/src/inferrer/closure_tracer.dart
index 88fd7fcb9986c1e5539532ddf3f5e2284acee8a4..f6a674bbb40dba1db6c7f029e486fa126c5e7250 100644
--- a/pkg/compiler/lib/src/inferrer/closure_tracer.dart
+++ b/pkg/compiler/lib/src/inferrer/closure_tracer.dart
@@ -77,7 +77,8 @@ class ClosureTracerVisitor extends TracerVisitor {
visitStaticCallSiteTypeInformation(StaticCallSiteTypeInformation info) {
super.visitStaticCallSiteTypeInformation(info);
Element called = info.calledElement;
- if (compiler.backend.isForeign(compiler.commonElements, called)) {
+ if (compiler.backend
+ .isForeign(inferrer.closedWorld.commonElements, called)) {
String name = called.name;
if (name == JavaScriptBackend.JS || name == 'DART_CLOSURE_TO_JS') {
bailout('Used in JS ${info.call}');
@@ -103,7 +104,7 @@ class ClosureTracerVisitor extends TracerVisitor {
inferrer.types.getInferredTypeOf(element) == currentUser;
bool _checkIfFunctionApply(MemberElement element) {
- return compiler.commonElements.isFunctionApplyMethod(element);
+ return inferrer.closedWorld.commonElements.isFunctionApplyMethod(element);
}
@override
« no previous file with comments | « pkg/compiler/lib/src/inferrer/builder.dart ('k') | pkg/compiler/lib/src/inferrer/list_tracer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698