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

Unified Diff: pkg/compiler/lib/src/js_backend/enqueuer.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/enqueuer.dart
diff --git a/pkg/compiler/lib/src/js_backend/enqueuer.dart b/pkg/compiler/lib/src/js_backend/enqueuer.dart
index e4b3027fc0fcf7393bf18f0cc32c6223b5208b12..6b7f19451f409320069ba3952e5abb65203b4282 100644
--- a/pkg/compiler/lib/src/js_backend/enqueuer.dart
+++ b/pkg/compiler/lib/src/js_backend/enqueuer.dart
@@ -134,10 +134,9 @@ class CodegenEnqueuer implements Enqueuer {
}
}
- /// Apply the [worldImpact] of processing [element] to this enqueuer.
- void applyImpact(Element element, WorldImpact worldImpact) {
+ void applyImpact(WorldImpact worldImpact, {Element impactSource}) {
_compiler.impactStrategy
- .visitImpact(element, worldImpact, impactVisitor, impactUse);
+ .visitImpact(impactSource, worldImpact, impactVisitor, impactUse);
}
void registerInstantiatedType(InterfaceType type, {bool mirrorUsage: false}) {
@@ -513,7 +512,7 @@ class CodegenEnqueuer implements Enqueuer {
assert(invariant(element, element.isDeclaration,
message: "Element ${element} is not the declaration."));
_universe.registerStaticUse(staticUse);
- backend.registerStaticUse(element, this);
+ backend.registerStaticUse(element, forResolution: false);
bool addElement = true;
switch (staticUse.kind) {
case StaticUseKind.STATIC_TEAR_OFF:

Powered by Google App Engine
This is Rietveld 408576698