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

Unified Diff: tests/compiler/dart2js/kernel/closed_world_test.dart

Issue 2531303002: Decouple WorkItem from Compiler (Closed)
Patch Set: Updated cf. comments. Created 4 years, 1 month 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
« no previous file with comments | « tests/compiler/dart2js/exit_code_test.dart ('k') | tests/compiler/dart2js/patch_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « tests/compiler/dart2js/exit_code_test.dart ('k') | tests/compiler/dart2js/patch_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698