Index: pkg/compiler/lib/src/js_backend/backend.dart |
diff --git a/pkg/compiler/lib/src/js_backend/backend.dart b/pkg/compiler/lib/src/js_backend/backend.dart |
index 56e8e89180a74eefc363f6a85d257a814843aa66..2ceba371fa644eb30f1208c3d04ea0890590a435 100644 |
--- a/pkg/compiler/lib/src/js_backend/backend.dart |
+++ b/pkg/compiler/lib/src/js_backend/backend.dart |
@@ -2384,14 +2384,20 @@ class JavaScriptBackend extends Backend { |
} |
if (isTreeShakingDisabled) { |
- mirrorsAnalysis.enqueueReflectiveElements( |
- enqueuer, recentClasses, compiler.libraryLoader.libraries); |
+ enqueuer.applyImpact( |
+ compiler.impactStrategy, |
+ mirrorsAnalysis.computeImpactForReflectiveElements(recentClasses, |
+ enqueuer.processedClasses, compiler.libraryLoader.libraries, |
+ forResolution: enqueuer.isResolutionQueue)); |
} else if (!targetsUsed.isEmpty && enqueuer.isResolutionQueue) { |
// Add all static elements (not classes) that have been requested for |
// reflection. If there is no mirror-usage these are probably not |
// necessary, but the backend relies on them being resolved. |
- mirrorsAnalysis.enqueueReflectiveStaticFields( |
- enqueuer, _findStaticFieldTargets()); |
+ enqueuer.applyImpact( |
+ compiler.impactStrategy, |
+ mirrorsAnalysis.computeImpactForReflectiveStaticFields( |
+ _findStaticFieldTargets(), |
+ forResolution: enqueuer.isResolutionQueue)); |
} |
if (mustPreserveNames) reporter.log('Preserving names.'); |