Index: test/cctest/test-heap.cc |
diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc |
index 878d36be33c78f71cab54a22904d20fdd2467499..815dd2913ae9d7e3d79531d327190c24acdcf926 100644 |
--- a/test/cctest/test-heap.cc |
+++ b/test/cctest/test-heap.cc |
@@ -6041,7 +6041,9 @@ TEST(SlotsBufferObjectSlotsRemoval) { |
buffer->Add(HeapObject::RawField(*array, FixedArray::kHeaderSize)); |
DCHECK(reinterpret_cast<void*>(buffer->Get(0)) == |
HeapObject::RawField(*array, FixedArray::kHeaderSize)); |
- SlotsBuffer::RemoveObjectSlots(CcTest::i_isolate()->heap(), buffer, *array); |
+ SlotsBuffer::RemoveObjectSlots(CcTest::i_isolate()->heap(), buffer, |
+ array->address(), |
+ array->address() + array->Size()); |
DCHECK(reinterpret_cast<void*>(buffer->Get(0)) == |
HeapObject::RawField(heap->empty_fixed_array(), |
FixedArrayBase::kLengthOffset)); |
@@ -6054,7 +6056,9 @@ TEST(SlotsBufferObjectSlotsRemoval) { |
reinterpret_cast<Object**>(SlotsBuffer::EMBEDDED_OBJECT_SLOT)); |
DCHECK(reinterpret_cast<void*>(buffer->Get(2)) == |
HeapObject::RawField(*array, FixedArray::kHeaderSize)); |
- SlotsBuffer::RemoveObjectSlots(CcTest::i_isolate()->heap(), buffer, *array); |
+ SlotsBuffer::RemoveObjectSlots(CcTest::i_isolate()->heap(), buffer, |
+ array->address(), |
+ array->address() + array->Size()); |
DCHECK(reinterpret_cast<void*>(buffer->Get(1)) == |
HeapObject::RawField(heap->empty_fixed_array(), |
FixedArrayBase::kLengthOffset)); |