Index: src/objects-body-descriptors-inl.h |
diff --git a/src/objects-body-descriptors-inl.h b/src/objects-body-descriptors-inl.h |
index 8fe507ea3c07533e7667ea95c1c0193200379b9b..2c07f23e906b8e474f91ae4b97971b745c877849 100644 |
--- a/src/objects-body-descriptors-inl.h |
+++ b/src/objects-body-descriptors-inl.h |
@@ -234,9 +234,8 @@ class BytecodeArray::BodyDescriptor final : public BodyDescriptorBase { |
IteratePointer<StaticVisitor>(heap, obj, kConstantPoolOffset); |
} |
- static inline int SizeOf(Map* map, HeapObject* object) { |
- return SizeFor( |
- reinterpret_cast<FixedArray*>(object)->synchronized_length()); |
+ static inline int SizeOf(Map* map, HeapObject* obj) { |
+ return reinterpret_cast<BytecodeArray*>(obj)->BytecodeArraySize(); |
} |
}; |