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

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

Issue 2314703002: Split World usage into open, inference, and closed world. (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/constants.dart
diff --git a/pkg/compiler/lib/src/types/constants.dart b/pkg/compiler/lib/src/types/constants.dart
index b4689ce2de7e71d1c48ab3bc9d418daf641dc206..8c3f6b72a69a0426691bc106d9dacf1332accbb8 100644
--- a/pkg/compiler/lib/src/types/constants.dart
+++ b/pkg/compiler/lib/src/types/constants.dart
@@ -24,7 +24,8 @@ class ConstantValueTypeMasks extends ConstantValueVisitor<TypeMask, Compiler> {
if (compiler.backend.isInterceptorClass(constant.type.element)) {
return compiler.commonMasks.nonNullType;
}
- return new TypeMask.nonNullExact(constant.type.element, compiler.world);
+ return new TypeMask.nonNullExact(
+ constant.type.element, compiler.closedWorld);
}
@override

Powered by Google App Engine
This is Rietveld 408576698