| Index: src/heap.cc
|
| diff --git a/src/heap.cc b/src/heap.cc
|
| index e785629fa480423a04505eda1de855d2582696d2..de7f67a898262a040077bf6448d00b5c8e5d9933 100644
|
| --- a/src/heap.cc
|
| +++ b/src/heap.cc
|
| @@ -5347,10 +5347,10 @@ MaybeObject* Heap::AllocateConstantPoolArray(int number_of_int64_entries,
|
|
|
| ConstantPoolArray* constant_pool =
|
| reinterpret_cast<ConstantPoolArray*>(object);
|
| - constant_pool->SetEntryCounts(number_of_int64_entries,
|
| - number_of_code_ptr_entries,
|
| - number_of_heap_ptr_entries,
|
| - number_of_int32_entries);
|
| + constant_pool->Init(number_of_int64_entries,
|
| + number_of_code_ptr_entries,
|
| + number_of_heap_ptr_entries,
|
| + number_of_int32_entries);
|
| if (number_of_code_ptr_entries > 0) {
|
| int offset =
|
| constant_pool->OffsetOfElementAt(constant_pool->first_code_ptr_index());
|
| @@ -5379,7 +5379,7 @@ MaybeObject* Heap::AllocateEmptyConstantPoolArray() {
|
| if (!maybe_result->ToObject(&result)) return maybe_result;
|
| }
|
| HeapObject::cast(result)->set_map_no_write_barrier(constant_pool_array_map());
|
| - ConstantPoolArray::cast(result)->SetEntryCounts(0, 0, 0, 0);
|
| + ConstantPoolArray::cast(result)->Init(0, 0, 0, 0);
|
| return result;
|
| }
|
|
|
|
|