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

Unified Diff: pkg/compiler/lib/src/ssa/builder_kernel.dart

Issue 2871583002: Pass InterceptorData through ResolutionWorldBuilder and access it through ClosedWorld (Closed)
Patch Set: Created 3 years, 7 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/ssa/builder.dart ('k') | pkg/compiler/lib/src/ssa/codegen.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/ssa/builder_kernel.dart
diff --git a/pkg/compiler/lib/src/ssa/builder_kernel.dart b/pkg/compiler/lib/src/ssa/builder_kernel.dart
index c2c992bc7c1bfece35cf0e74eb0d279491c414cd..bb0134c7b5807873d34534c45cff445479555447 100644
--- a/pkg/compiler/lib/src/ssa/builder_kernel.dart
+++ b/pkg/compiler/lib/src/ssa/builder_kernel.dart
@@ -2730,7 +2730,9 @@ class KernelSsaBuilder extends ir.Visitor with GraphBuilder {
List<HInstruction> inputs = <HInstruction>[];
selector ??= astAdapter.getSelector(node);
- bool isIntercepted = astAdapter.isInterceptedSelector(selector);
+
+ bool isIntercepted =
+ closedWorld.interceptorData.isInterceptedSelector(selector);
if (isIntercepted) {
HInterceptor interceptor = _interceptorFor(receiver);
@@ -2932,7 +2934,7 @@ class KernelSsaBuilder extends ir.Visitor with GraphBuilder {
HInstruction receiver = localsHandler.readThis();
List<HInstruction> inputs = <HInstruction>[];
- if (astAdapter.isInterceptedSelector(selector)) {
+ if (closedWorld.interceptorData.isInterceptedSelector(selector)) {
inputs.add(_interceptorFor(receiver));
}
inputs.add(receiver);
« no previous file with comments | « pkg/compiler/lib/src/ssa/builder.dart ('k') | pkg/compiler/lib/src/ssa/codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698