Commit 67b99f7e authored by ishell's avatar ishell Committed by Commit bot

Fix BytecodeArray::BodyDescriptor::SizeOf().

Review URL: https://codereview.chromium.org/1453043003

Cr-Commit-Position: refs/heads/master@{#32027}
parent 2acc2bc2
......@@ -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();
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment