Index: src/heap/objects-visiting-inl.h |
diff --git a/src/heap/objects-visiting-inl.h b/src/heap/objects-visiting-inl.h |
index 252b2fe5e2fb7b898bc6e21f86981465764b9930..f3502568d6dde6107133f3e47633a02efdca44e6 100644 |
--- a/src/heap/objects-visiting-inl.h |
+++ b/src/heap/objects-visiting-inl.h |
@@ -84,7 +84,10 @@ void StaticNewSpaceVisitor<StaticVisitor>::Initialize() { |
table_.Register(kVisitFreeSpace, &VisitFreeSpace); |
- table_.Register(kVisitJSWeakCollection, &JSObjectVisitor::Visit); |
+ table_.Register( |
+ kVisitJSWeakCollection, |
+ &FlexibleBodyVisitor<StaticVisitor, JSWeakCollection::BodyDescriptor, |
+ int>::Visit); |
table_.Register(kVisitJSRegExp, &JSObjectVisitor::Visit); |