Index: src/heap/spaces.h |
diff --git a/src/heap/spaces.h b/src/heap/spaces.h |
index 5be9c3a11fdfbe4d7659786217ff74dd83304bd0..1944464a7c7e75946127e4a2390055c116e2a4cf 100644 |
--- a/src/heap/spaces.h |
+++ b/src/heap/spaces.h |
@@ -1104,6 +1104,12 @@ class MemoryAllocator { |
return CodePageAreaEndOffset() - CodePageAreaStartOffset(); |
} |
+ static int PageAreaSize(AllocationSpace space) { |
+ DCHECK_NE(LO_SPACE, space); |
+ return (space == CODE_SPACE) ? CodePageAreaSize() |
+ : Page::kMaxRegularHeapObjectSize; |
+ } |
+ |
MUST_USE_RESULT bool CommitExecutableMemory(base::VirtualMemory* vm, |
Address start, size_t commit_size, |
size_t reserved_size); |