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

Unified Diff: pkg/compiler/lib/src/inferrer/builder.dart

Issue 2932883002: Add FrontendStrategy.commonElements and remove Backend.commonElements (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
« no previous file with comments | « pkg/compiler/lib/src/frontend_strategy.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 9c8e6262c7342e6a7d72700560dd9fdecce1c711..b258a6e7962691b303b129c9138a78a1049cdd72 100644
--- a/pkg/compiler/lib/src/inferrer/builder.dart
+++ b/pkg/compiler/lib/src/inferrer/builder.dart
@@ -2325,7 +2325,7 @@ class ElementGraphBuilder extends ast.Visitor<TypeInformation>
if (!target.isRedirectingFactory) break;
target = target.effectiveTarget.implementation;
}
- if (compiler.backend.isForeign(target)) {
+ if (compiler.backend.isForeign(closedWorld.commonElements, target)) {
return handleForeignSend(node, target);
}
Selector selector = elements.getSelector(node);
@@ -2413,7 +2413,7 @@ class ElementGraphBuilder extends ast.Visitor<TypeInformation>
/// Handle invocation of a top level or static [function].
TypeInformation handleStaticFunctionInvoke(
ast.Send node, MethodElement function) {
- if (compiler.backend.isForeign(function)) {
+ if (compiler.backend.isForeign(closedWorld.commonElements, function)) {
return handleForeignSend(node, function);
}
ArgumentsTypes arguments = analyzeArguments(node.arguments);
« no previous file with comments | « pkg/compiler/lib/src/frontend_strategy.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