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

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

Issue 2778243002: Add createKernelResolutionEnqueuerListener to kernel/closed_world_test (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « pkg/compiler/lib/src/js_backend/backend.dart ('k') | tests/compiler/dart2js/kernel/closed_world_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « pkg/compiler/lib/src/js_backend/backend.dart ('k') | tests/compiler/dart2js/kernel/closed_world_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698