diff options
Diffstat (limited to 'deps/v8/src/heap/local-heap-inl.h')
-rw-r--r-- | deps/v8/src/heap/local-heap-inl.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/deps/v8/src/heap/local-heap-inl.h b/deps/v8/src/heap/local-heap-inl.h index 770e1cb8e9..89f35ec21f 100644 --- a/deps/v8/src/heap/local-heap-inl.h +++ b/deps/v8/src/heap/local-heap-inl.h @@ -20,13 +20,13 @@ AllocationResult LocalHeap::AllocateRaw(int size_in_bytes, AllocationType type, DCHECK(AllowHandleAllocation::IsAllowed()); DCHECK(AllowHeapAllocation::IsAllowed()); DCHECK(AllowGarbageCollection::IsAllowed()); - DCHECK_IMPLIES(type == AllocationType::kCode, - alignment == AllocationAlignment::kCodeAligned); + DCHECK_IMPLIES(type == AllocationType::kCode || type == AllocationType::kMap, + alignment == AllocationAlignment::kWordAligned); Heap::HeapState state = heap()->gc_state(); DCHECK(state == Heap::TEAR_DOWN || state == Heap::NOT_IN_GC); #endif - bool large_object = size_in_bytes > kMaxRegularHeapObjectSize; + bool large_object = size_in_bytes > Heap::MaxRegularHeapObjectSize(type); CHECK_EQ(type, AllocationType::kOld); if (large_object) |