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

Unified Diff: runtime/vm/raw_object.h

Issue 10574006: Ensure the ByteArray subtypes are known to implement List. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/raw_object.h
diff --git a/runtime/vm/raw_object.h b/runtime/vm/raw_object.h
index 2f561dbf96f764f035e1ac7acf37eeb977ca77d5..c4195b15ee4d9151a7f17bee7f478599fc345869 100644
--- a/runtime/vm/raw_object.h
+++ b/runtime/vm/raw_object.h
@@ -1482,7 +1482,7 @@ inline bool RawObject::IsBuiltinListClassId(intptr_t index) {
ASSERT(kImmutableArray == kArray + 1 &&
kGrowableObjectArray == kArray + 2 &&
kByteArray == kArray + 3);
- return (index >= kArray && index < kByteArray);
+ return (index >= kArray && index < kByteArray) || IsByteArrayClassId(index);
}
inline bool RawObject::IsByteArrayClassId(intptr_t index) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698