| Index: src/heap/heap.cc
|
| diff --git a/src/heap/heap.cc b/src/heap/heap.cc
|
| index d88117819f2bf547cd8909143770988ba8b40114..671d4626924e24d45b0caced1c5f0c004de487bc 100644
|
| --- a/src/heap/heap.cc
|
| +++ b/src/heap/heap.cc
|
| @@ -2037,7 +2037,7 @@ AllocationResult Heap::AllocateMap(InstanceType instance_type,
|
| }
|
| // Must be called only after |instance_type|, |instance_size| and
|
| // |layout_descriptor| are set.
|
| - map->set_visitor_id(StaticVisitorBase::GetVisitorId(map));
|
| + map->set_visitor_id(Heap::GetStaticVisitorIdForMap(map));
|
| map->set_bit_field(0);
|
| map->set_bit_field2(1 << Map::kIsExtensible);
|
| int bit_field3 = Map::EnumLengthBits::encode(kInvalidEnumCacheSentinel) |
|
| @@ -6104,5 +6104,11 @@ bool Heap::GetObjectTypeName(size_t index, const char** object_type,
|
| return false;
|
| }
|
|
|
| +
|
| +// static
|
| +int Heap::GetStaticVisitorIdForMap(Map* map) {
|
| + return StaticVisitorBase::GetVisitorId(map);
|
| +}
|
| +
|
| } // namespace internal
|
| } // namespace v8
|
|
|