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

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

Issue 2378063002: Remove Enqueuer argument from Backend.registerStaticUse (Closed)
Patch Set: Updated cf. comments. Created 4 years, 3 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/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.
« no previous file with comments | « pkg/compiler/lib/src/js_backend/enqueuer.dart ('k') | pkg/compiler/lib/src/js_backend/type_variable_handler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698