Index: src/objects-visiting.h |
=================================================================== |
--- src/objects-visiting.h (revision 8501) |
+++ src/objects-visiting.h (working copy) |
@@ -105,6 +105,7 @@ |
kVisitPropertyCell, |
kVisitSharedFunctionInfo, |
kVisitJSFunction, |
+ kVisitJSRegExp, |
kVisitorIdCount, |
kMinObjectSizeInWords = 2 |
@@ -300,6 +301,8 @@ |
SharedFunctionInfo::BodyDescriptor, |
int>::Visit); |
+ table_.Register(kVisitJSRegExp, &VisitJSRegExp); |
+ |
table_.Register(kVisitSeqAsciiString, &VisitSeqAsciiString); |
table_.Register(kVisitSeqTwoByteString, &VisitSeqTwoByteString); |
@@ -342,6 +345,10 @@ |
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()); |