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

Unified Diff: pkg/compiler/lib/src/js_emitter/startup_emitter/fragment_emitter.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
Index: pkg/compiler/lib/src/js_emitter/startup_emitter/fragment_emitter.dart
diff --git a/pkg/compiler/lib/src/js_emitter/startup_emitter/fragment_emitter.dart b/pkg/compiler/lib/src/js_emitter/startup_emitter/fragment_emitter.dart
index dbd8e3121903d65b9e8f428f6927d4ab149784d8..e9f6f7ab67bb80701f3763c61eb8ba31d47761de 100644
--- a/pkg/compiler/lib/src/js_emitter/startup_emitter/fragment_emitter.dart
+++ b/pkg/compiler/lib/src/js_emitter/startup_emitter/fragment_emitter.dart
@@ -447,6 +447,10 @@ class FragmentEmitter {
FragmentEmitter(this.compiler, this.namer, this.backend, this.constantEmitter,
this.modelEmitter);
+ InterceptorData get _interceptorData =>
+ // TODO(johnniwinther): Pass [InterceptorData] directly?
+ modelEmitter.nativeEmitter.interceptorData;
+
js.Expression generateEmbeddedGlobalAccess(String global) =>
modelEmitter.generateEmbeddedGlobalAccess(global);
@@ -1029,7 +1033,7 @@ class FragmentEmitter {
bool isIntercepted = false;
if (method is InstanceMethod) {
MethodElement element = method.element;
- isIntercepted = backend.interceptorData.isInterceptedMethod(element);
+ isIntercepted = _interceptorData.isInterceptedMethod(element);
}
int requiredParameterCount = 0;
js.Expression optionalParameterDefaultValues = new js.LiteralNull();

Powered by Google App Engine
This is Rietveld 408576698