5 #include "src/compiler/refs-map.h" 12 base::TemplateHashMapImpl<Address, ObjectData*, AddressMatcher,
13 ZoneAllocationPolicy>;
15 RefsMap::RefsMap(
uint32_t capacity, AddressMatcher match, Zone* zone)
16 : UnderlyingMap(capacity, match, ZoneAllocationPolicy(zone)) {}
18 RefsMap::RefsMap(
const RefsMap* other, Zone* zone)
19 : UnderlyingMap(other, ZoneAllocationPolicy(zone)) {}
21 RefsMap::Entry* RefsMap::Lookup(
const Address& key)
const {
22 return UnderlyingMap::Lookup(key, Hash(key));
25 RefsMap::Entry* RefsMap::LookupOrInsert(
const Address& key, Zone* zone) {
26 return UnderlyingMap::LookupOrInsert(key, RefsMap::Hash(key),
27 []() {
return nullptr; },
28 ZoneAllocationPolicy(zone));