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

Unified Diff: runtime/vm/snapshot.cc

Issue 392043003: The dart version of typeddata library has changed to be compatible with the dart2js implementation (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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
« no previous file with comments | « runtime/vm/raw_object.cc ('k') | runtime/vm/symbols.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « runtime/vm/raw_object.cc ('k') | runtime/vm/symbols.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698