Index: src/heap/objects-visiting-inl.h |
diff --git a/src/heap/objects-visiting-inl.h b/src/heap/objects-visiting-inl.h |
index a29ba4b08cc9bc9c6d4401a01f7259946beb6f13..d71c879a739ec93eba1f5443b97f463f3064514d 100644 |
--- a/src/heap/objects-visiting-inl.h |
+++ b/src/heap/objects-visiting-inl.h |
@@ -115,7 +115,7 @@ int StaticNewSpaceVisitor<StaticVisitor>::VisitBytecodeArray( |
VisitPointers( |
map->GetHeap(), object, |
HeapObject::RawField(object, BytecodeArray::kConstantPoolOffset), |
- HeapObject::RawField(object, BytecodeArray::kHeaderSize)); |
+ HeapObject::RawField(object, BytecodeArray::kFrameSizeOffset)); |
return reinterpret_cast<BytecodeArray*>(object)->BytecodeArraySize(); |
} |
@@ -531,7 +531,7 @@ void StaticMarkingVisitor<StaticVisitor>::VisitBytecodeArray( |
StaticVisitor::VisitPointers( |
map->GetHeap(), object, |
HeapObject::RawField(object, BytecodeArray::kConstantPoolOffset), |
- HeapObject::RawField(object, BytecodeArray::kHeaderSize)); |
+ HeapObject::RawField(object, BytecodeArray::kFrameSizeOffset)); |
} |