From bd414037e98c0d697fd887342668b0bb46d45b8d Mon Sep 17 00:00:00 2001 From: Steve Blackburn Date: Wed, 5 Feb 2020 19:03:59 +0100 Subject: [PATCH] Fix incorrect use of ptr by TPH Bug: v8:9533 Change-Id: I8c8f6d7e2fddae13a9a01a77ac26b1f2ad338889 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2039430 Reviewed-by: Ulan Degenbaev Commit-Queue: Steve Blackburn Cr-Commit-Position: refs/heads/master@{#66147} --- src/heap/heap-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/heap/heap-inl.h b/src/heap/heap-inl.h index 0e5230f1e0..3767bb38e3 100644 --- a/src/heap/heap-inl.h +++ b/src/heap/heap-inl.h @@ -287,7 +287,7 @@ Address Heap::DeserializerAllocate(AllocationType type, int size_in_bytes) { if (V8_ENABLE_THIRD_PARTY_HEAP_BOOL) { AllocationResult allocation = tp_heap_->Allocate( size_in_bytes, type, AllocationAlignment::kWordAligned); - return allocation.ToObjectChecked().ptr(); + return allocation.ToObjectChecked().address(); } else { UNIMPLEMENTED(); // unimplemented }