Index: src/heap/objects-visiting.cc |
diff --git a/src/heap/objects-visiting.cc b/src/heap/objects-visiting.cc |
index 0b857dc4235a739301d2f0257f80a36faea46d9d..02da1721b59b36386c8def114df0a9cecfa39807 100644 |
--- a/src/heap/objects-visiting.cc |
+++ b/src/heap/objects-visiting.cc |
@@ -111,7 +111,6 @@ StaticVisitorBase::VisitorId StaticVisitorBase::GetVisitorId( |
case JS_ARRAY_TYPE: |
case JS_GLOBAL_PROXY_TYPE: |
case JS_GLOBAL_OBJECT_TYPE: |
- case JS_SPECIAL_API_OBJECT_TYPE: |
case JS_MESSAGE_OBJECT_TYPE: |
case JS_TYPED_ARRAY_TYPE: |
case JS_DATA_VIEW_TYPE: |
@@ -123,6 +122,10 @@ StaticVisitorBase::VisitorId StaticVisitorBase::GetVisitorId( |
case JS_BOUND_FUNCTION_TYPE: |
return GetVisitorIdForSize(kVisitJSObject, kVisitJSObjectGeneric, |
instance_size, has_unboxed_fields); |
+ case JS_API_OBJECT_TYPE: |
+ case JS_SPECIAL_API_OBJECT_TYPE: |
+ return GetVisitorIdForSize(kVisitJSApiObject, kVisitJSApiObjectGeneric, |
+ instance_size, has_unboxed_fields); |
case JS_FUNCTION_TYPE: |
return kVisitJSFunction; |