| Index: src/heap/spaces-inl.h
|
| diff --git a/src/heap/spaces-inl.h b/src/heap/spaces-inl.h
|
| index 135498f69d180b6057e4d89b4d64afc1fb7905bf..b676d5e76f07f2ddb0debd376de06bd7a9f3344d 100644
|
| --- a/src/heap/spaces-inl.h
|
| +++ b/src/heap/spaces-inl.h
|
| @@ -668,8 +668,12 @@ MUST_USE_RESULT inline AllocationResult NewSpace::AllocateRawSynchronized(
|
| return AllocateRaw(size_in_bytes, alignment);
|
| }
|
|
|
| -
|
| -LargePage* LargePage::Initialize(Heap* heap, MemoryChunk* chunk) {
|
| +LargePage* LargePage::Initialize(Heap* heap, MemoryChunk* chunk,
|
| + Executability executable, Space* owner) {
|
| + if (executable && chunk->size() > LargePage::kMaxCodePageSize) {
|
| + STATIC_ASSERT(LargePage::kMaxCodePageSize <= TypedSlotSet::kMaxOffset);
|
| + FATAL("Code page is too large.");
|
| + }
|
| heap->incremental_marking()->SetOldSpacePageFlags(chunk);
|
| return static_cast<LargePage*>(chunk);
|
| }
|
|
|