Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 50551dba8f20663be82a149bbb59ec6d80757381..201cbe129d36b62585389737aa964449d6a48213 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -7103,7 +7103,7 @@ Handle<Map> Map::CopyInstallDescriptors( |
#else |
SLOW_DCHECK(result->layout_descriptor()->IsConsistentWithMap(*result)); |
#endif |
- result->set_visitor_id(StaticVisitorBase::GetVisitorId(*result)); |
+ result->set_visitor_id(Heap::GetStaticVisitorIdForMap(*result)); |
} |
Handle<Name> name = handle(descriptors->GetKey(new_descriptor)); |
@@ -7240,7 +7240,7 @@ Handle<Map> Map::Create(Isolate* isolate, int inobject_properties) { |
copy->SetInObjectProperties(inobject_properties); |
copy->set_unused_property_fields(inobject_properties); |
copy->set_instance_size(new_instance_size); |
- copy->set_visitor_id(StaticVisitorBase::GetVisitorId(*copy)); |
+ copy->set_visitor_id(Heap::GetStaticVisitorIdForMap(*copy)); |
return copy; |
} |
@@ -10009,7 +10009,7 @@ static void ShrinkInstanceSize(Map* map, void* data) { |
map->set_instance_size(map->instance_size() - slack * kPointerSize); |
// Visitor id might depend on the instance size, recalculate it. |
- map->set_visitor_id(StaticVisitorBase::GetVisitorId(map)); |
+ map->set_visitor_id(Heap::GetStaticVisitorIdForMap(map)); |
} |