Index: src/heap/objects-visiting-inl.h |
diff --git a/src/heap/objects-visiting-inl.h b/src/heap/objects-visiting-inl.h |
index b714335132c168449d155871410f79680bd6cd6f..03396537fb4c7a4e7f1b5cdb7a5c2808b4ddae39 100644 |
--- a/src/heap/objects-visiting-inl.h |
+++ b/src/heap/objects-visiting-inl.h |
@@ -90,6 +90,11 @@ void StaticNewSpaceVisitor<StaticVisitor>::Initialize() { |
table_.template RegisterSpecializations<JSObjectVisitor, kVisitJSObject, |
kVisitJSObjectGeneric>(); |
+ |
+ // Not using specialized Api object visitor for newspace. |
+ table_.template RegisterSpecializations<JSObjectVisitor, kVisitJSApiObject, |
+ kVisitJSApiObjectGeneric>(); |
+ |
table_.template RegisterSpecializations<StructVisitor, kVisitStruct, |
kVisitStructGeneric>(); |
} |
@@ -200,6 +205,9 @@ void StaticMarkingVisitor<StaticVisitor>::Initialize() { |
table_.template RegisterSpecializations<JSObjectVisitor, kVisitJSObject, |
kVisitJSObjectGeneric>(); |
+ table_.template RegisterSpecializations<JSApiObjectVisitor, kVisitJSApiObject, |
+ kVisitJSApiObjectGeneric>(); |
+ |
table_.template RegisterSpecializations<StructObjectVisitor, kVisitStruct, |
kVisitStructGeneric>(); |
} |