Index: src/heap/objects-visiting.h |
diff --git a/src/heap/objects-visiting.h b/src/heap/objects-visiting.h |
index c52f066bbbef43ee2993fbf6aee141078d1b4be7..a41cfe69c0dcab0e654e2a5eafb072a33f1f0ebe 100644 |
--- a/src/heap/objects-visiting.h |
+++ b/src/heap/objects-visiting.h |
@@ -29,6 +29,7 @@ class StaticVisitorBase : public AllStatic { |
V(SeqTwoByteString) \ |
V(ShortcutCandidate) \ |
V(ByteArray) \ |
+ V(BytecodeArray) \ |
V(FreeSpace) \ |
V(FixedArray) \ |
V(FixedDoubleArray) \ |
@@ -320,6 +321,10 @@ class StaticNewSpaceVisitor : public StaticVisitorBase { |
return reinterpret_cast<ByteArray*>(object)->ByteArraySize(); |
} |
+ INLINE(static int VisitBytecodeArray(Map* map, HeapObject* object)) { |
+ return reinterpret_cast<BytecodeArray*>(object)->BytecodeArraySize(); |
+ } |
+ |
INLINE(static int VisitFixedDoubleArray(Map* map, HeapObject* object)) { |
int length = reinterpret_cast<FixedDoubleArray*>(object)->length(); |
return FixedDoubleArray::SizeFor(length); |