diff options
Diffstat (limited to 'deps/v8/src/heap/scavenger-inl.h')
-rw-r--r-- | deps/v8/src/heap/scavenger-inl.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/deps/v8/src/heap/scavenger-inl.h b/deps/v8/src/heap/scavenger-inl.h index 9c605f7089..7729807a8a 100644 --- a/deps/v8/src/heap/scavenger-inl.h +++ b/deps/v8/src/heap/scavenger-inl.h @@ -135,8 +135,8 @@ CopyAndForwardResult Scavenger::SemiSpaceCopyObject( "Only FullHeapObjectSlot and HeapObjectSlot are expected here"); DCHECK(heap()->AllowedToBeMigrated(map, object, NEW_SPACE)); AllocationAlignment alignment = HeapObject::RequiredAlignment(map); - AllocationResult allocation = - allocator_.Allocate(NEW_SPACE, object_size, alignment); + AllocationResult allocation = allocator_.Allocate( + NEW_SPACE, object_size, AllocationOrigin::kGC, alignment); HeapObject target; if (allocation.To(&target)) { @@ -171,8 +171,8 @@ CopyAndForwardResult Scavenger::PromoteObject(Map map, THeapObjectSlot slot, std::is_same<THeapObjectSlot, HeapObjectSlot>::value, "Only FullHeapObjectSlot and HeapObjectSlot are expected here"); AllocationAlignment alignment = HeapObject::RequiredAlignment(map); - AllocationResult allocation = - allocator_.Allocate(OLD_SPACE, object_size, alignment); + AllocationResult allocation = allocator_.Allocate( + OLD_SPACE, object_size, AllocationOrigin::kGC, alignment); HeapObject target; if (allocation.To(&target)) { |