Index: tests/compiler/dart2js/kernel/closed_world_test.dart |
diff --git a/tests/compiler/dart2js/kernel/closed_world_test.dart b/tests/compiler/dart2js/kernel/closed_world_test.dart |
index aa21341c486b6532ef270d32d4fc57b6ac76bc4f..cf642fa828599efb4d26ebfe7e4467ca2de150e9 100644 |
--- a/tests/compiler/dart2js/kernel/closed_world_test.dart |
+++ b/tests/compiler/dart2js/kernel/closed_world_test.dart |
@@ -89,7 +89,6 @@ main(List<String> args) { |
compiler.enqueuer, |
compiler.options, |
compiler.resolution, |
- compiler.enqueuerFilter, |
const TreeShakingEnqueuerStrategy(), |
compiler.globalDependencies, |
backend, |
@@ -101,21 +100,21 @@ main(List<String> args) { |
// enqueuing twice. |
backend.typeVariableHandler = new TypeVariableHandler(compiler); |
- backend.enqueueHelpers(enqueuer); |
+ if (compiler.deferredLoadTask.isProgramSplit) { |
+ enqueuer.applyImpact(backend.computeDeferredLoadingImpact()); |
+ } |
+ enqueuer.applyImpact(backend.computeHelpersImpact()); |
+ enqueuer.applyImpact(enqueuer.nativeEnqueuer |
+ .processNativeClasses(compiler.libraryLoader.libraries)); |
enqueuer.applyImpact( |
- compiler.impactStrategy, |
- enqueuer.nativeEnqueuer |
- .processNativeClasses(compiler.libraryLoader.libraries)); |
- enqueuer.applyImpact(compiler.impactStrategy, |
- backend.computeMainImpact(enqueuer, compiler.mainFunction)); |
+ backend.computeMainImpact(compiler.mainFunction, forResolution: true)); |
enqueuer.forEach((work) { |
AstElement element = work.element; |
ResolutionImpact resolutionImpact = build(compiler, element.resolvedAst); |
WorldImpact worldImpact = compiler.backend.impactTransformer |
.transformResolutionImpact(enqueuer, resolutionImpact); |
enqueuer.registerProcessedElement(element); |
- enqueuer.applyImpact(compiler.impactStrategy, worldImpact, |
- impactSource: element); |
+ enqueuer.applyImpact(worldImpact, impactSource: element); |
}); |
ClosedWorld closedWorld = |
enqueuer.universe.openWorld.closeWorld(compiler.reporter); |