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

Unified Diff: pkg/compiler/lib/src/js_backend/backend.dart

Issue 2729943004: Remove backend reference from ResolutionEnqueuerListener. (Closed)
Patch Set: Created 3 years, 10 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_backend/backend.dart
diff --git a/pkg/compiler/lib/src/js_backend/backend.dart b/pkg/compiler/lib/src/js_backend/backend.dart
index b18f84014e6f2591a0f2ff3ae38edcd6693a3cfb..e088576bba987bbc9db4d0ba5efd593dd5647645 100644
--- a/pkg/compiler/lib/src/js_backend/backend.dart
+++ b/pkg/compiler/lib/src/js_backend/backend.dart
@@ -547,10 +547,10 @@ class JavaScriptBackend {
functionCompiler =
new SsaFunctionCompiler(this, sourceInformationStrategy, useKernel);
serialization = new JavaScriptBackendSerialization(nativeData);
- _interceptorDataBuilder =
- new InterceptorDataBuilderImpl(nativeData, helpers, commonElements);
+ _interceptorDataBuilder = new InterceptorDataBuilderImpl(
+ nativeData, helpers, commonElements, compiler.resolution);
_resolutionEnqueuerListener = new ResolutionEnqueuerListener(
- this,
+ kernelTask,
compiler.options,
compiler.elementEnvironment,
commonElements,
@@ -565,6 +565,7 @@ class JavaScriptBackend {
customElementsResolutionAnalysis,
lookupMapLibraryAccess,
mirrorsAnalysis,
+ typeVariableAnalysis,
_nativeResolutionEnqueuer);
}
@@ -586,6 +587,12 @@ class JavaScriptBackend {
return _interceptorData;
}
+ InterceptorDataBuilder get interceptorDataBuilder {
+ assert(invariant(NO_LOCATION_SPANNABLE, _interceptorData == null,
+ message: "InterceptorData has already been computed."));
+ return _interceptorDataBuilder;
+ }
+
OneShotInterceptorData get oneShotInterceptorData {
assert(invariant(NO_LOCATION_SPANNABLE, _oneShotInterceptorData != null,
message: "OneShotInterceptorData has not been prepared yet."));

Powered by Google App Engine
This is Rietveld 408576698