diff options
Diffstat (limited to 'deps/v8/src/heap/heap-allocator-inl.h')
-rw-r--r-- | deps/v8/src/heap/heap-allocator-inl.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/deps/v8/src/heap/heap-allocator-inl.h b/deps/v8/src/heap/heap-allocator-inl.h index 043f4c629b..6f5569ef96 100644 --- a/deps/v8/src/heap/heap-allocator-inl.h +++ b/deps/v8/src/heap/heap-allocator-inl.h @@ -30,9 +30,7 @@ OldLargeObjectSpace* HeapAllocator::lo_space() const { return static_cast<OldLargeObjectSpace*>(spaces_[LO_SPACE]); } -PagedSpace* HeapAllocator::map_space() const { - return static_cast<PagedSpace*>(spaces_[MAP_SPACE]); -} +PagedSpace* HeapAllocator::space_for_maps() const { return space_for_maps_; } NewSpace* HeapAllocator::new_space() const { return static_cast<NewSpace*>(spaces_[NEW_SPACE]); @@ -111,7 +109,7 @@ V8_WARN_UNUSED_RESULT V8_INLINE AllocationResult HeapAllocator::AllocateRaw( break; case AllocationType::kMap: DCHECK_EQ(alignment, AllocationAlignment::kTaggedAligned); - allocation = map_space()->AllocateRawUnaligned(size_in_bytes); + allocation = space_for_maps()->AllocateRawUnaligned(size_in_bytes); break; case AllocationType::kReadOnly: DCHECK(read_only_space()->writable()); |