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

Unified Diff: src/store-buffer.h

Issue 7189066: Simple non-incremental compaction by evacuation. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
Patch Set: Created 9 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
Index: src/store-buffer.h
diff --git a/src/store-buffer.h b/src/store-buffer.h
index ece54f3f7cd5de7568ecc090c4b7d038dd54028c..21d084a22f8b0d057ff6ea0e385069cb0b661a1a 100644
--- a/src/store-buffer.h
+++ b/src/store-buffer.h
@@ -76,10 +76,17 @@ class StoreBuffer {
// callback set up with the StoreBufferRebuildScope object.
inline void EnterDirectlyIntoStoreBuffer(Address addr);
+
+ enum IterationMode {
+ SKIP_SLOTS_IN_EVACUATION_CANDIDATES,
+ VISIT_ALL_SLOTS
+ };
+
// Iterates over all pointers that go from old space to new space. It will
// delete the store buffer as it starts so the callback should reenter
// surviving old-to-new pointers into the store buffer to rebuild it.
- void IteratePointersToNewSpace(ObjectSlotCallback callback);
+ void IteratePointersToNewSpace(ObjectSlotCallback callback,
+ IterationMode mode);
static const int kStoreBufferOverflowBit = 1 << 16;
static const int kStoreBufferSize = kStoreBufferOverflowBit;
@@ -184,6 +191,10 @@ class StoreBuffer {
RegionCallback region_callback,
ObjectSlotCallback slot_callback);
+ template<StoreBuffer::IterationMode mode>
+ void IteratePointersInStoreBuffer(ObjectSlotCallback slot_callback);
+
+
#ifdef DEBUG
void VerifyPointers(PagedSpace* space, RegionCallback region_callback);
void VerifyPointers(LargeObjectSpace* space);

Powered by Google App Engine
This is Rietveld 408576698