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

Unified Diff: vm/raw_object.h

Issue 8898034: - Implement the old sweeper. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 9 years 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
« vm/pages.cc ('K') | « vm/pages.cc ('k') | vm/raw_object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/raw_object.h
===================================================================
--- vm/raw_object.h (revision 2404)
+++ vm/raw_object.h (working copy)
@@ -163,7 +163,7 @@
void ClearMarkBit() {
ASSERT(IsMarked());
uword header_bits = reinterpret_cast<uword>(ptr()->class_);
- ptr()->class_ = reinterpret_cast<RawClass*>(header_bits ^ kMarked);
+ ptr()->class_ = reinterpret_cast<RawClass*>(header_bits ^ kMarkBit);
}
void Validate() const;
@@ -188,6 +188,7 @@
kMarkingMask = 3,
kNotMarked = 1, // Tagged pointer.
kMarked = 3, // Tagged pointer and forwarding bit set.
+ kMarkBit = 2,
};
RawObject* ptr() const {
« vm/pages.cc ('K') | « vm/pages.cc ('k') | vm/raw_object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698