Index: src/objects-visiting.h |
diff --git a/src/objects-visiting.h b/src/objects-visiting.h |
index cc64763b5f5ff9c85e38d9ad325c32c01f0f517e..c96a8efc738e4ea49ee92263eaa1f824cf2f5041 100644 |
--- a/src/objects-visiting.h |
+++ b/src/objects-visiting.h |
@@ -121,6 +121,7 @@ class StaticVisitorBase : public AllStatic { |
kVisitPropertyCell, |
kVisitSharedFunctionInfo, |
kVisitJSFunction, |
+ kVisitJSWeakMap, |
kVisitJSRegExp, |
kVisitorIdCount, |
@@ -317,7 +318,9 @@ class StaticNewSpaceVisitor : public StaticVisitorBase { |
SharedFunctionInfo::BodyDescriptor, |
int>::Visit); |
- table_.Register(kVisitJSRegExp, &VisitJSRegExp); |
+ table_.Register(kVisitJSWeakMap, &VisitJSObject); |
+ |
+ table_.Register(kVisitJSRegExp, &VisitJSObject); |
table_.Register(kVisitSeqAsciiString, &VisitSeqAsciiString); |
@@ -356,15 +359,15 @@ class StaticNewSpaceVisitor : public StaticVisitorBase { |
return FixedDoubleArray::SizeFor(length); |
} |
+ static inline int VisitJSObject(Map* map, HeapObject* object) { |
+ return JSObjectVisitor::Visit(map, object); |
+ } |
+ |
static inline int VisitSeqAsciiString(Map* map, HeapObject* object) { |
return SeqAsciiString::cast(object)-> |
SeqAsciiStringSize(map->instance_type()); |
} |
- static inline int VisitJSRegExp(Map* map, HeapObject* object) { |
- return JSObjectVisitor::Visit(map, object); |
- } |
- |
static inline int VisitSeqTwoByteString(Map* map, HeapObject* object) { |
return SeqTwoByteString::cast(object)-> |
SeqTwoByteStringSize(map->instance_type()); |