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

Unified Diff: pkg/compiler/lib/src/universe/use.dart

Issue 2366363002: Move remaining functionality from ClassWorld to ClosedWorld (Closed)
Patch Set: 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/universe/use.dart
diff --git a/pkg/compiler/lib/src/universe/use.dart b/pkg/compiler/lib/src/universe/use.dart
index a1756ed17e9602def2fbecc6d715b3ec8a859fd8..543e2bd612d9bf6c16cf040bddb1dd587be9b8d5 100644
--- a/pkg/compiler/lib/src/universe/use.dart
+++ b/pkg/compiler/lib/src/universe/use.dart
@@ -21,7 +21,7 @@ import '../common.dart';
import '../dart_types.dart';
import '../elements/elements.dart';
import '../util/util.dart' show Hashing;
-import '../world.dart' show ClassWorld;
+import '../world.dart' show World;
import 'call_structure.dart' show CallStructure;
import 'selector.dart' show Selector;
import 'universe.dart' show ReceiverConstraint;
@@ -37,8 +37,8 @@ class DynamicUse {
DynamicUse(this.selector, this.mask);
- bool appliesUnnamed(Element element, ClassWorld world) {
- return selector.appliesUnnamed(element, world.backend) &&
+ bool appliesUnnamed(Element element, World world) {
+ return selector.appliesUnnamed(element) &&
(mask == null || mask.canHit(element, selector, world));
}

Powered by Google App Engine
This is Rietveld 408576698