Index: pkg/compiler/lib/src/js_backend/lookup_map_analysis.dart |
diff --git a/pkg/compiler/lib/src/js_backend/lookup_map_analysis.dart b/pkg/compiler/lib/src/js_backend/lookup_map_analysis.dart |
index d729e561fa7049fb07d27db4c80701d2dd0b8fe0..c6e204d7766aabe037e4e49d6ae75efcc9a8b88e 100644 |
--- a/pkg/compiler/lib/src/js_backend/lookup_map_analysis.dart |
+++ b/pkg/compiler/lib/src/js_backend/lookup_map_analysis.dart |
@@ -128,9 +128,10 @@ class LookupMapAnalysis { |
LookupMapAnalysis(this.backend, this.reporter); |
- void onQueueEmpty(Enqueuer enqueuer) { |
- if (enqueuer.isResolutionQueue) return; |
- enqueuer.applyImpact(null, impactBuilder.flush()); |
+ /// Compute the [WorldImpact] for the constants registered since last flush. |
+ WorldImpact flush({bool forResolution}) { |
+ if (forResolution) return const WorldImpact(); |
+ return impactBuilder.flush(); |
} |
/// Whether this analysis and optimization is enabled. |