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

Unified Diff: vm/freelist.h

Issue 9008060: - Fix build. (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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/freelist.h
===================================================================
--- vm/freelist.h (revision 2936)
+++ vm/freelist.h (working copy)
@@ -22,14 +22,14 @@
public:
FreeListElement* next() const {
// Clear the FreeBit.
- ASSERT((next_ & RawObject::kFreeBit) == 1);
- return reinterpret_cast<FreeListElement*>(next_ ^ RawObject::kFreeBit);
+ ASSERT((next_ & 1) == 1);
+ return reinterpret_cast<FreeListElement*>(next_ ^ 1);
}
void set_next(FreeListElement* next) {
// Set the FreeBit.
uword addr = reinterpret_cast<uword>(next);
- ASSERT((addr & RawObject::kFreeBit) == 0);
- next_ = addr | RawObject::kFreeBit;
+ ASSERT((addr & 1) == 0);
+ next_ = addr | 1;
}
intptr_t Size() const {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698