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

Unified Diff: runtime/vm/snapshot.h

Issue 349293002: Omits size bits when writing RawObject tags to a snapshot. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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 | « runtime/vm/raw_object_snapshot.cc ('k') | runtime/vm/snapshot.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/snapshot.h
===================================================================
--- runtime/vm/snapshot.h (revision 37600)
+++ runtime/vm/snapshot.h (working copy)
@@ -196,6 +196,11 @@
return result;
}
+ intptr_t ReadTags() {
+ const intptr_t tags = static_cast<intptr_t>(Read<int8_t>()) & 0xff;
+ ASSERT(SerializedHeaderTag::decode(tags) != kObjectId);
+ return tags;
+ }
const uint8_t* CurrentBufferAddress() const {
return stream_.AddressOfCurrentPosition();
@@ -440,6 +445,12 @@
WriteIntptrValue(value);
}
+ void WriteTags(intptr_t tags) {
+ ASSERT(SerializedHeaderTag::decode(tags) != kObjectId);
+ const intptr_t flags = tags & 0xff;
+ Write<int8_t>(static_cast<int8_t>(flags));
+ }
+
// Write out a buffer of bytes.
void WriteBytes(const uint8_t* addr, intptr_t len) {
stream_.WriteBytes(addr, len);
« no previous file with comments | « runtime/vm/raw_object_snapshot.cc ('k') | runtime/vm/snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698