Index: src/heap/spaces.h |
diff --git a/src/heap/spaces.h b/src/heap/spaces.h |
index 369c6086d2a2c7b25ab48990cfd554c77e34bc9f..3461de3ef009f18d9549a8de8f18ce831ba2f572 100644 |
--- a/src/heap/spaces.h |
+++ b/src/heap/spaces.h |
@@ -508,6 +508,13 @@ |
} |
} |
+ bool IsLeftOfProgressBar(Object** slot) { |
+ Address slot_address = reinterpret_cast<Address>(slot); |
+ DCHECK(slot_address > this->address()); |
+ return (slot_address - (this->address() + kObjectStartOffset)) < |
+ progress_bar(); |
+ } |
+ |
static void IncrementLiveBytesFromGC(Address address, int by) { |
MemoryChunk::FromAddress(address)->IncrementLiveBytes(by); |
} |