Index: src/objects-visiting.cc |
diff --git a/src/objects-visiting.cc b/src/objects-visiting.cc |
index ae56dad59b15e6ed61ef5a433a4796b2a0231dd7..84ab57f53c45248a907d270a22b07847263eb6a8 100644 |
--- a/src/objects-visiting.cc |
+++ b/src/objects-visiting.cc |
@@ -88,6 +88,9 @@ StaticVisitorBase::VisitorId StaticVisitorBase::GetVisitorId( |
case JS_GLOBAL_PROPERTY_CELL_TYPE: |
return kVisitPropertyCell; |
+ case JS_WEAK_MAP_TYPE: |
+ return kVisitJSWeakMap; |
+ |
case JS_REGEXP_TYPE: |
return kVisitJSRegExp; |
@@ -115,7 +118,6 @@ StaticVisitorBase::VisitorId StaticVisitorBase::GetVisitorId( |
case JS_GLOBAL_OBJECT_TYPE: |
case JS_BUILTINS_OBJECT_TYPE: |
case JS_MESSAGE_OBJECT_TYPE: |
- case JS_WEAK_MAP_TYPE: |
return GetVisitorIdForSize(kVisitJSObject, |
kVisitJSObjectGeneric, |
instance_size); |