| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index f96fd83849cff3090814484757f26b352932bc87..e13ced71fa02ce6fcbd3128f52ac32afb7b3e495 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -9452,12 +9452,14 @@ bool Map::EquivalentToForNormalization(Map* other,
|
|
|
|
|
| void ConstantPoolArray::ConstantPoolIterateBody(ObjectVisitor* v) {
|
| - int first_ptr_offset = OffsetOfElementAt(first_ptr_index());
|
| - int last_ptr_offset =
|
| - OffsetOfElementAt(first_ptr_index() + count_of_ptr_entries());
|
| - v->VisitPointers(
|
| - HeapObject::RawField(this, first_ptr_offset),
|
| - HeapObject::RawField(this, last_ptr_offset));
|
| + if (count_of_ptr_entries() > 0) {
|
| + int first_ptr_offset = OffsetOfElementAt(first_ptr_index());
|
| + int last_ptr_offset =
|
| + OffsetOfElementAt(first_ptr_index() + count_of_ptr_entries());
|
| + v->VisitPointers(
|
| + HeapObject::RawField(this, first_ptr_offset),
|
| + HeapObject::RawField(this, last_ptr_offset));
|
| + }
|
| }
|
|
|
|
|
|
|