Chromium Code Reviews| Index: runtime/vm/snapshot.cc |
| =================================================================== |
| --- runtime/vm/snapshot.cc (revision 38259) |
| +++ runtime/vm/snapshot.cc (working copy) |
| @@ -56,7 +56,8 @@ |
| static intptr_t ObjectIdFromClassId(intptr_t class_id) { |
| ASSERT((class_id > kIllegalCid) && (class_id < kNumPredefinedCids)); |
| - ASSERT(!RawObject::IsTypedDataViewClassId(class_id)); |
| + ASSERT(!(RawObject::IsTypedDataViewClassId(class_id) || |
| + (class_id == kByteBufferCid))); |
|
Cutch
2014/07/16 21:34:33
Maybe factor these "== kByteBufferCid" into a stat
siva
2014/07/17 21:36:55
Done.
|
| return (class_id + kClassIdsOffset); |
| } |
| @@ -1082,7 +1083,8 @@ |
| return; |
| } |
| - if (RawObject::IsTypedDataViewClassId(class_id)) { |
| + if (RawObject::IsTypedDataViewClassId(class_id) || |
| + (class_id == kByteBufferCid)) { |
|
Cutch
2014/07/16 21:34:33
Maybe factor these "== kByteBufferCid" into a stat
siva
2014/07/17 21:36:55
Done.
|
| WriteInstanceRef(raw, cls); |
| return; |
| } |