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

Unified Diff: vm/object.h

Issue 9072011: - Add a size field to the header. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: '' Created 8 years, 12 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 | « vm/intrinsifier_ia32.cc ('k') | vm/object.cc » ('j') | vm/stub_code_x64.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/object.h
===================================================================
--- vm/object.h (revision 2918)
+++ vm/object.h (working copy)
@@ -152,9 +152,12 @@
RawObject* raw() const { return raw_; }
void operator=(RawObject* value) { SetRaw(value); }
- void set_tags(intptr_t tags) {
+ void set_tags(intptr_t value) {
+ // TODO(asiva): Remove the capability of setting tags in general. The mask
+ // here only allows for canonical and from_snapshot flags to be set.
ASSERT(!IsNull());
- raw()->ptr()->tags_ = tags;
+ uword tags = raw()->ptr()->tags_ & ~0x0000000c;
+ raw()->ptr()->tags_ = tags | (value & 0x0000000c);
}
void SetCreatedFromSnapshot() const {
ASSERT(!IsNull());
@@ -369,6 +372,7 @@
static RawClass* context_scope_class_; // Class of ContextScope vm object.
static RawClass* api_error_class_; // Class of ApiError.
+ friend void RawObject::Validate() const;
friend class Class;
friend class SnapshotReader;
« no previous file with comments | « vm/intrinsifier_ia32.cc ('k') | vm/object.cc » ('j') | vm/stub_code_x64.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698