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

Unified Diff: tests/compiler/dart2js/type_combination_test.dart

Issue 2494093002: Refactor enqueuers (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/mirror_tree_shaking_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/type_combination_test.dart
diff --git a/tests/compiler/dart2js/type_combination_test.dart b/tests/compiler/dart2js/type_combination_test.dart
index f15d471f1ad76899cb623db3812f7004967cf294..5ca7197b47512d44ebed9051fe190e3e7c75aa4f 100644
--- a/tests/compiler/dart2js/type_combination_test.dart
+++ b/tests/compiler/dart2js/type_combination_test.dart
@@ -740,19 +740,18 @@ void main() {
helpers.interceptorsLibrary.forEachLocalMember((element) {
if (element.isClass) {
element.ensureResolved(compiler.resolution);
- backend.registerInstantiatedType(element.rawType,
- compiler.enqueuer.resolution, compiler.globalDependencies);
+ compiler.enqueuer.resolution.registerInstantiatedType(element.rawType);
}
});
ClassElement patternImplClass = compiler.mainApp.find('PatternImpl');
patternImplClass.ensureResolved(compiler.resolution);
- backend.registerInstantiatedType(compiler.coreTypes.mapType(),
- compiler.enqueuer.resolution, compiler.globalDependencies);
- backend.registerInstantiatedType(compiler.coreTypes.functionType,
- compiler.enqueuer.resolution, compiler.globalDependencies);
- backend.registerInstantiatedType(patternImplClass.rawType,
- compiler.enqueuer.resolution, compiler.globalDependencies);
+ compiler.enqueuer.resolution
+ .registerInstantiatedType(compiler.coreTypes.mapType());
+ compiler.enqueuer.resolution
+ .registerInstantiatedType(compiler.coreTypes.functionType);
+ compiler.enqueuer.resolution
+ .registerInstantiatedType(patternImplClass.rawType);
compiler.openWorld.closeWorld();
// Grab hold of a supertype for String so we can produce potential
« no previous file with comments | « tests/compiler/dart2js/mirror_tree_shaking_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698