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

Unified Diff: pkg/compiler/lib/src/js_emitter/interceptor_stub_generator.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/interceptor_stub_generator.dart
diff --git a/pkg/compiler/lib/src/js_emitter/interceptor_stub_generator.dart b/pkg/compiler/lib/src/js_emitter/interceptor_stub_generator.dart
index 47ea5c4b31d00bfdf2ef8a021a665f23dc897bfa..15dc23a6381b6eab46f7abc8e304d46142bf44e3 100644
--- a/pkg/compiler/lib/src/js_emitter/interceptor_stub_generator.dart
+++ b/pkg/compiler/lib/src/js_emitter/interceptor_stub_generator.dart
@@ -34,7 +34,6 @@ class InterceptorStubGenerator {
final NativeCodegenEnqueuer _nativeCodegenEnqueuer;
final JavaScriptConstantCompiler _constants;
final Namer _namer;
- final InterceptorData _interceptorData;
final OneShotInterceptorData _oneShotInterceptorData;
final CustomElementsCodegenAnalysis _customElementsCodegenAnalysis;
final CodegenWorldBuilder _codegenWorldBuilder;
@@ -47,7 +46,6 @@ class InterceptorStubGenerator {
this._nativeCodegenEnqueuer,
this._constants,
this._namer,
- this._interceptorData,
this._oneShotInterceptorData,
this._customElementsCodegenAnalysis,
this._codegenWorldBuilder,
@@ -55,6 +53,8 @@ class InterceptorStubGenerator {
NativeData get _nativeData => _closedWorld.nativeData;
+ InterceptorData get _interceptorData => _closedWorld.interceptorData;
+
Emitter get _emitter => _emitterTask.emitter;
jsAst.Expression generateGetInterceptorMethod(Set<ClassEntity> classes) {

Powered by Google App Engine
This is Rietveld 408576698