| Index: runtime/vm/raw_object.h
|
| ===================================================================
|
| --- runtime/vm/raw_object.h (revision 38259)
|
| +++ runtime/vm/raw_object.h (working copy)
|
| @@ -150,6 +150,8 @@
|
| CLASS_LIST_TYPED_DATA(DEFINE_OBJECT_KIND)
|
| #undef DEFINE_OBJECT_KIND
|
|
|
| + kByteBufferCid,
|
| +
|
| // The following entries do not describe a predefined class, but instead
|
| // are class indexes for pre-allocated instance (Null, dynamic and Void).
|
| kNullCid,
|
| @@ -451,6 +453,7 @@
|
|
|
| friend class Api;
|
| friend class Array;
|
| + friend class ByteBuffer;
|
| friend class Code;
|
| friend class FreeListElement;
|
| friend class GCMarker;
|
| @@ -1898,7 +1901,7 @@
|
| kExternalTypedDataInt8ArrayCid + 12) &&
|
| (kExternalTypedDataFloat64x2ArrayCid ==
|
| kExternalTypedDataInt8ArrayCid + 13) &&
|
| - (kNullCid == kExternalTypedDataInt8ArrayCid + 14));
|
| + (kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14));
|
| return (index >= kExternalTypedDataInt8ArrayCid &&
|
| index <= kExternalTypedDataFloat64x2ArrayCid);
|
| }
|
| @@ -1938,7 +1941,8 @@
|
| COMPILE_ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14);
|
| COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid ==
|
| kTypedDataInt8ArrayViewCid + 15);
|
| - COMPILE_ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14);
|
| + COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14);
|
| + COMPILE_ASSERT(kNullCid == kByteBufferCid + 1);
|
| return (kNullCid - kTypedDataInt8ArrayCid);
|
| }
|
|
|
|
|