Index: src/objects-visiting.h |
diff --git a/src/objects-visiting.h b/src/objects-visiting.h |
index 21757377a4f3910f9b39bb8582be86e2684f1af8..13b17692ca57f907b94fa0ed774cd0e902b665dc 100644 |
--- a/src/objects-visiting.h |
+++ b/src/objects-visiting.h |
@@ -54,6 +54,7 @@ class StaticVisitorBase : public AllStatic { |
V(FreeSpace) \ |
V(FixedArray) \ |
V(FixedDoubleArray) \ |
+ V(ConstantPoolArray) \ |
V(NativeContext) \ |
V(AllocationSite) \ |
V(DataObject2) \ |
@@ -321,6 +322,13 @@ class StaticNewSpaceVisitor : public StaticVisitorBase { |
return FixedDoubleArray::SizeFor(length); |
} |
+ INLINE(static int VisitConstantPoolArray(Map* map, HeapObject* object)) { |
+ ConstantPoolArray* constantPoolArray = |
+ reinterpret_cast<ConstantPoolArray*>(object); |
+ return ConstantPoolArray::SizeFor(constantPoolArray->length(), |
+ constantPoolArray->first_int32_index()); |
+ } |
+ |
INLINE(static int VisitJSObject(Map* map, HeapObject* object)) { |
return JSObjectVisitor::Visit(map, object); |
} |