diff options
Diffstat (limited to 'deps/v8/src/heap/new-spaces-inl.h')
-rw-r--r-- | deps/v8/src/heap/new-spaces-inl.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/deps/v8/src/heap/new-spaces-inl.h b/deps/v8/src/heap/new-spaces-inl.h index c47c949388..72112d2426 100644 --- a/deps/v8/src/heap/new-spaces-inl.h +++ b/deps/v8/src/heap/new-spaces-inl.h @@ -96,7 +96,7 @@ AllocationResult NewSpace::AllocateRaw(int size_in_bytes, AllocationResult result; - if (alignment != kWordAligned) { + if (USE_ALLOCATION_ALIGNMENT_BOOL && alignment != kTaggedAligned) { result = AllocateFastAligned(size_in_bytes, nullptr, alignment, origin); } else { result = AllocateFastUnaligned(size_in_bytes, origin); @@ -111,11 +111,11 @@ AllocationResult NewSpace::AllocateRaw(int size_in_bytes, AllocationResult NewSpace::AllocateFastUnaligned(int size_in_bytes, AllocationOrigin origin) { - if (!allocation_info_.CanIncrementTop(size_in_bytes)) { + if (!allocation_info_->CanIncrementTop(size_in_bytes)) { return AllocationResult::Retry(NEW_SPACE); } HeapObject obj = - HeapObject::FromAddress(allocation_info_.IncrementTop(size_in_bytes)); + HeapObject::FromAddress(allocation_info_->IncrementTop(size_in_bytes)); DCHECK_SEMISPACE_ALLOCATION_INFO(allocation_info_, to_space_); MSAN_ALLOCATED_UNINITIALIZED_MEMORY(obj.address(), size_in_bytes); @@ -130,15 +130,15 @@ AllocationResult NewSpace::AllocateFastUnaligned(int size_in_bytes, AllocationResult NewSpace::AllocateFastAligned( int size_in_bytes, int* result_aligned_size_in_bytes, AllocationAlignment alignment, AllocationOrigin origin) { - Address top = allocation_info_.top(); + Address top = allocation_info_->top(); int filler_size = Heap::GetFillToAlign(top, alignment); int aligned_size_in_bytes = size_in_bytes + filler_size; - if (!allocation_info_.CanIncrementTop(aligned_size_in_bytes)) { + if (!allocation_info_->CanIncrementTop(aligned_size_in_bytes)) { return AllocationResult::Retry(NEW_SPACE); } HeapObject obj = HeapObject::FromAddress( - allocation_info_.IncrementTop(aligned_size_in_bytes)); + allocation_info_->IncrementTop(aligned_size_in_bytes)); if (result_aligned_size_in_bytes) *result_aligned_size_in_bytes = aligned_size_in_bytes; DCHECK_SEMISPACE_ALLOCATION_INFO(allocation_info_, to_space_); |