Index: src/heap/spaces.h |
diff --git a/src/heap/spaces.h b/src/heap/spaces.h |
index 0bc1c175a2c019020ff17a1c1d724d3fb71decbf..0289b012bc8982b63b46e065da562699e6f47f15 100644 |
--- a/src/heap/spaces.h |
+++ b/src/heap/spaces.h |
@@ -2737,6 +2737,15 @@ class NewSpace : public Space { |
bool EnsureAllocation(int size_in_bytes, AllocationAlignment alignment); |
+ // If we are doing inline allocation in steps, this method performs the 'step' |
+ // operation. Right now incremental marking is the only consumer of inline |
+ // allocation steps. top is the memory address of the bump pointer at the last |
+ // inline allocation (i.e. it determines the numbers of bytes actually |
+ // allocated since the last step.) new_top is the address of the bump pointer |
+ // where the next byte is going to be allocated from. top and new_top may be |
+ // different when we cross a page boundary or reset the space. |
+ void InlineAllocationStep(Address top, Address new_top); |
+ |
friend class SemiSpaceIterator; |
}; |