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

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

Issue 14636002: Make TypeMask an interface and start hiding implementation details of FlatTypeMask. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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/ssa/types.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/ssa/types.dart (revision 22167)
+++ sdk/lib/_internal/compiler/implementation/ssa/types.dart (working copy)
@@ -18,7 +18,7 @@
return isNullable ? HType.NULL : HType.CONFLICTING;
}
- Element element = mask.base.element;
+ Element element = mask.topClass();
JavaScriptBackend backend = compiler.backend;
if (element == compiler.intClass || element == backend.jsIntClass) {
kasperl 2013/04/30 14:03:24 Move these predicates into TypeMask, so you can as
ngeoffray 2013/05/01 12:56:16 Done.
return isNullable ? HType.INTEGER_OR_NULL : HType.INTEGER;

Powered by Google App Engine
This is Rietveld 408576698