Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index a55556de4466adf820ff3b2753b91f5c37b7258f..481cdc69e935a038881b8bec60d1c59124ea2434 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -9460,7 +9460,7 @@ void ConstantPoolArray::ConstantPoolIterateBody(ObjectVisitor* v) { |
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()); |
+ OffsetOfElementAt(first_ptr_index() + count_of_ptr_entries() - 1); |
v->VisitPointers( |
HeapObject::RawField(this, first_ptr_offset), |
HeapObject::RawField(this, last_ptr_offset)); |