| 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);
|
|
|