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

Unified Diff: pkg/compiler/lib/src/types/masks.dart

Issue 2363773005: Move closed world reasoning methods 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/types/masks.dart
diff --git a/pkg/compiler/lib/src/types/masks.dart b/pkg/compiler/lib/src/types/masks.dart
index f551d491c6d898761adb08ba3247a74bb6130eb4..b498b80f726288bc1a47a64f49c119486e60c61c 100644
--- a/pkg/compiler/lib/src/types/masks.dart
+++ b/pkg/compiler/lib/src/types/masks.dart
@@ -18,7 +18,7 @@ import '../universe/universe.dart'
UniverseSelectorConstraints,
SelectorConstraintsStrategy;
import '../util/util.dart';
-import '../world.dart' show ClassWorld;
+import '../world.dart' show ClassWorld, ClosedWorld;
import 'abstract_value_domain.dart' show AbstractValue;
part 'container_type_mask.dart';
@@ -31,14 +31,13 @@ part 'union_type_mask.dart';
part 'value_type_mask.dart';
class CommonMasks {
- final ClassWorld classWorld;
// TODO(sigmund): once we split out the backend common elements, depend
// directly on those instead.
final Compiler compiler;
- CommonMasks(Compiler compiler)
- : this.classWorld = compiler.openWorld,
- compiler = compiler;
+ CommonMasks(this.compiler);
+
+ ClassWorld get classWorld => compiler.closedWorld;
TypeMask _dynamicType;
TypeMask _nonNullType;

Powered by Google App Engine
This is Rietveld 408576698