Index: src/spaces.h |
=================================================================== |
--- src/spaces.h (revision 11201) |
+++ src/spaces.h (working copy) |
@@ -637,8 +637,10 @@ |
friend class MemoryAllocator; |
}; |
+ |
STATIC_CHECK(sizeof(MemoryChunk) <= MemoryChunk::kHeaderSize); |
+ |
// ----------------------------------------------------------------------------- |
// A page is a memory chunk of a size 1MB. Large object pages may be larger. |
// |
@@ -950,7 +952,8 @@ |
void TearDown(); |
- Page* AllocatePage(PagedSpace* owner, Executability executable); |
+ Page* AllocatePage( |
+ intptr_t size, PagedSpace* owner, Executability executable); |
LargePage* AllocateLargePage(intptr_t object_size, |
Executability executable, |
Michael Starzinger
2012/04/02 08:25:05
I know you didn't touch that line, but something i
|
@@ -1625,6 +1628,8 @@ |
// Maximum capacity of this space. |
intptr_t max_capacity_; |
+ intptr_t SizeOfFirstPage(); |
+ |
// Accounting information for this space. |
AllocationStats accounting_stats_; |