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

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

Issue 15724021: Move array and string related HType from const to a field in the backend. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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/flat_type_mask.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/types/flat_type_mask.dart (revision 23841)
+++ sdk/lib/_internal/compiler/implementation/types/flat_type_mask.dart (working copy)
@@ -130,18 +130,9 @@
}
bool satisfies(ClassElement cls, Compiler compiler) {
- if (isEmpty) {
- return false;
- } else if (base.element == cls) {
- return true;
- } else if (isExact) {
- return false;
- } else if (isSubclass) {
- return isSubclassOf(base, cls.computeType(compiler).asRaw(), compiler);
- } else {
- assert(isSubtype);
- return isSubtypeOf(base, cls.computeType(compiler).asRaw(), compiler);
- }
+ if (isEmpty) return false;
+ return base.element == cls
+ || isSubtypeOf(base, cls.computeType(compiler).asRaw(), compiler);
}
/**

Powered by Google App Engine
This is Rietveld 408576698