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

Unified Diff: pkg/compiler/lib/src/js_emitter/interceptor_stub_generator.dart

Issue 2863073003: Access NativeData only 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 aa2eb257fcabf0f02953a0ab72d67d626aadeb73..47ea5c4b31d00bfdf2ef8a021a665f23dc897bfa 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 NativeData _nativeData;
final InterceptorData _interceptorData;
final OneShotInterceptorData _oneShotInterceptorData;
final CustomElementsCodegenAnalysis _customElementsCodegenAnalysis;
@@ -48,13 +47,14 @@ class InterceptorStubGenerator {
this._nativeCodegenEnqueuer,
this._constants,
this._namer,
- this._nativeData,
this._interceptorData,
this._oneShotInterceptorData,
this._customElementsCodegenAnalysis,
this._codegenWorldBuilder,
this._closedWorld);
+ NativeData get _nativeData => _closedWorld.nativeData;
+
Emitter get _emitter => _emitterTask.emitter;
jsAst.Expression generateGetInterceptorMethod(Set<ClassEntity> classes) {

Powered by Google App Engine
This is Rietveld 408576698