Index: src/objects-visiting.cc |
diff --git a/src/objects-visiting.cc b/src/objects-visiting.cc |
index 293c9bf8ded4bf3cc0a5f438df59e2073ae46fff..c35e02cc9cc39d57f0bda616f2260573d8f4318b 100644 |
--- a/src/objects-visiting.cc |
+++ b/src/objects-visiting.cc |
@@ -101,7 +101,6 @@ StaticVisitorBase::VisitorId StaticVisitorBase::GetVisitorId( |
case JS_VALUE_TYPE: |
case JS_ARRAY_TYPE: |
case JS_REGEXP_TYPE: |
- case JS_FUNCTION_TYPE: |
case JS_GLOBAL_PROXY_TYPE: |
case JS_GLOBAL_OBJECT_TYPE: |
case JS_BUILTINS_OBJECT_TYPE: |
@@ -109,6 +108,9 @@ StaticVisitorBase::VisitorId StaticVisitorBase::GetVisitorId( |
kVisitJSObjectGeneric, |
instance_size); |
+ case JS_FUNCTION_TYPE: |
+ return kVisitJSFunction; |
+ |
case HEAP_NUMBER_TYPE: |
case PIXEL_ARRAY_TYPE: |
case EXTERNAL_BYTE_ARRAY_TYPE: |