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

Unified Diff: pkg/compiler/lib/src/elements/elements.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/dump_info.dart ('k') | pkg/compiler/lib/src/enqueue.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/elements/elements.dart
diff --git a/pkg/compiler/lib/src/elements/elements.dart b/pkg/compiler/lib/src/elements/elements.dart
index 1df89f88f544ec912a55c7566b5c0984110e0874..e26d783b81f7282c405b9440ab3e0cd301668e54 100644
--- a/pkg/compiler/lib/src/elements/elements.dart
+++ b/pkg/compiler/lib/src/elements/elements.dart
@@ -801,9 +801,9 @@ class Elements {
ClassElement cls = constructor.enclosingClass;
return cls.library == compiler.commonElements.typedDataLibrary &&
compiler.backend.isNative(cls) &&
- compiler.world
+ compiler.closedWorld
.isSubtypeOf(cls, compiler.commonElements.typedDataClass) &&
- compiler.world.isSubtypeOf(cls, compiler.coreClasses.listClass) &&
+ compiler.closedWorld.isSubtypeOf(cls, compiler.coreClasses.listClass) &&
constructor.name == '';
}
« no previous file with comments | « pkg/compiler/lib/src/dump_info.dart ('k') | pkg/compiler/lib/src/enqueue.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698