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.")); |