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

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

Issue 2314703002: Split World usage into open, inference, and closed world. (Closed)
Patch Set: Updated cf. comments 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
« no previous file with comments | « pkg/compiler/lib/src/types/union_type_mask.dart ('k') | pkg/compiler/lib/src/world.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/universe/function_set.dart
diff --git a/pkg/compiler/lib/src/universe/function_set.dart b/pkg/compiler/lib/src/universe/function_set.dart
index afa09515f6b6713b9ec69e955dc3a84bafe6daae..a51c19986d5e33e6368597fce0c0103bb582455d 100644
--- a/pkg/compiler/lib/src/universe/function_set.dart
+++ b/pkg/compiler/lib/src/universe/function_set.dart
@@ -21,7 +21,7 @@ class FunctionSet {
final Map<String, FunctionSetNode> nodes = new Map<String, FunctionSetNode>();
FunctionSet(this.compiler);
- ClassWorld get classWorld => compiler.world;
+ ClassWorld get classWorld => compiler.closedWorld;
FunctionSetNode newNode(String name) => new FunctionSetNode(name);
@@ -71,8 +71,10 @@ class FunctionSet {
Selector selector, ReceiverConstraint constraint, ClassWorld classWorld) {
return constraint != null
? new SelectorMask(selector, constraint)
- : new SelectorMask(selector,
- new TypeMask.subclass(classWorld.objectClass, classWorld));
+ : new SelectorMask(
+ selector,
+ new TypeMask.subclass(
+ classWorld.coreClasses.objectClass, classWorld));
}
/// Returns the set of functions that can be the target of a call to
@@ -276,7 +278,7 @@ class FullFunctionSetQuery implements FunctionSetQuery {
@override
TypeMask computeMask(ClassWorld classWorld) {
- assert(classWorld.hasAnyStrictSubclass(classWorld.objectClass));
+ assert(classWorld.hasAnyStrictSubclass(classWorld.coreClasses.objectClass));
if (_mask != null) return _mask;
return _mask = new TypeMask.unionOf(
functions.expand((element) {
« no previous file with comments | « pkg/compiler/lib/src/types/union_type_mask.dart ('k') | pkg/compiler/lib/src/world.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698