Index: pkg/compiler/lib/src/js_backend/resolution_listener.dart |
diff --git a/pkg/compiler/lib/src/js_backend/resolution_listener.dart b/pkg/compiler/lib/src/js_backend/resolution_listener.dart |
index 4129afa43cb16cf880dd0bb5d9722b71b2d625c7..e1085c04f5ba8b245aee3ac59a67f26211886c3d 100644 |
--- a/pkg/compiler/lib/src/js_backend/resolution_listener.dart |
+++ b/pkg/compiler/lib/src/js_backend/resolution_listener.dart |
@@ -62,7 +62,6 @@ class ResolutionEnqueuerListener extends EnqueuerListener { |
bool _isLoadLibraryFunctionResolved = false; |
ResolutionEnqueuerListener( |
- this._kernelTask, |
this._options, |
this._elementEnvironment, |
this._commonElements, |
@@ -79,7 +78,8 @@ class ResolutionEnqueuerListener extends EnqueuerListener { |
this._lookupMapResolutionAnalysis, |
this._mirrorsAnalysis, |
this._typeVariableResolutionAnalysis, |
- this._nativeEnqueuer); |
+ this._nativeEnqueuer, |
+ [this._kernelTask]); |
void _registerBackendImpact( |
WorldImpactBuilder builder, BackendImpact impact) { |
@@ -214,7 +214,7 @@ class ResolutionEnqueuerListener extends EnqueuerListener { |
if (!enqueuer.queueIsEmpty) return false; |
if (_options.useKernel) { |
- _kernelTask.buildKernelIr(); |
+ _kernelTask?.buildKernelIr(); |
Emily Fortuna
2017/03/28 18:32:36
if the option for useKernel is true, and kernelTas
Johnni Winther
2017/03/29 09:07:07
Not for testing. Here we might want to use kernel
|
} |
_mirrorsAnalysis.onQueueEmpty(enqueuer, recentClasses); |