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

Unified Diff: runtime/vm/raw_object.h

Issue 20119002: Make LibraryMirror.members an internal native and lazy. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 5 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
« runtime/lib/mirrors_impl.dart ('K') | « runtime/vm/bootstrap_natives.h ('k') | 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
===================================================================
--- runtime/vm/raw_object.h (revision 25450)
+++ runtime/vm/raw_object.h (working copy)
@@ -401,6 +401,7 @@
static bool IsTypedDataClassId(intptr_t index);
static bool IsTypedDataViewClassId(intptr_t index);
static bool IsExternalTypedDataClassId(intptr_t index);
+ static bool IsImplementationClassId(intptr_t index);
static intptr_t NumberOfTypedDataClasses();
@@ -1627,7 +1628,7 @@
// Make sure this function is updated when new builtin List types are added.
ASSERT(kImmutableArrayCid == kArrayCid + 1 &&
kTypedDataCid == kGrowableObjectArrayCid + 1);
- return ((index >= kArrayCid && index < kImmutableArrayCid) ||
+ return ((index >= kArrayCid && index <= kImmutableArrayCid) ||
(index >= kGrowableObjectArrayCid && index < kTypedDataCid) ||
IsTypedDataClassId(index) ||
IsTypedDataViewClassId(index) ||
@@ -1704,6 +1705,13 @@
}
+inline bool RawObject::IsImplementationClassId(intptr_t index) {
+ return IsBuiltinListClassId(index) ||
+ IsStringClassId(index) ||
+ IsNumberClassId(index);
+}
+
+
inline intptr_t RawObject::NumberOfTypedDataClasses() {
// Make sure this is updated when new TypedData types are added.
ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 12);
« runtime/lib/mirrors_impl.dart ('K') | « runtime/vm/bootstrap_natives.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698