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

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

Issue 1413613010: Normalize type masks to use the least upper instantiated subclass/type. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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/function_set.dart
diff --git a/pkg/compiler/lib/src/universe/function_set.dart b/pkg/compiler/lib/src/universe/function_set.dart
index 72a1813e91bc2fd22f13b005e1e6fb6901329c06..2f01f800c34f1958c784ff6dd7d89bfa7d82fb21 100644
--- a/pkg/compiler/lib/src/universe/function_set.dart
+++ b/pkg/compiler/lib/src/universe/function_set.dart
@@ -298,8 +298,10 @@ class FullFunctionSetQuery implements FunctionSetQuery {
.map((cls) {
if (classWorld.backend.isNullImplementation(cls)) {
return const TypeMask.empty();
- } else {
+ } else if (classWorld.isInstantiated(cls.declaration)) {
return new TypeMask.nonNullSubclass(cls.declaration, classWorld);
+ } else {
Johnni Winther 2015/11/03 13:20:02 Add TODO to avoid this.
Johnni Winther 2015/11/06 13:43:23 Done.
+ return const TypeMask.empty();
}
}),
classWorld);

Powered by Google App Engine
This is Rietveld 408576698