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

Unified Diff: sdk/lib/_internal/compiler/implementation/types/concrete_types_inferrer.dart

Issue 14997006: Introduce a UnionTypeMask, currently limited to 4 types. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 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: sdk/lib/_internal/compiler/implementation/types/concrete_types_inferrer.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/types/concrete_types_inferrer.dart (revision 23010)
+++ sdk/lib/_internal/compiler/implementation/types/concrete_types_inferrer.dart (working copy)
@@ -851,6 +851,8 @@
if (concreteType == null) return null;
TypeMask typeMask = new TypeMask.nonNullEmpty();
for (BaseType baseType in concreteType.baseTypes) {
+ TypeMask other = baseTypeToTypeMask(baseType);
+ if (other == null) return null;
typeMask = typeMask.union(baseTypeToTypeMask(baseType), compiler);
}
return typeMask;

Powered by Google App Engine
This is Rietveld 408576698