5#ifndef V8_HEAP_BASE_CACHED_UNORDERED_MAP_H_
6#define V8_HEAP_BASE_CACHED_UNORDERED_MAP_H_
8#include <unordered_map>
10#include "absl/container/flat_hash_map.h"
16template <
typename _Key,
typename _Value,
typename _Hash = v8::base::hash<_Key>>
18 using MapT = absl::flat_hash_map<_Key, _Value, _Hash>;
21 using Key =
typename MapT::key_type;
22 using Mapped =
typename MapT::mapped_type;
33 if (it ==
map_.end()) {
57 typename MapT::iterator
begin() {
return map_.begin(); }
58 typename MapT::iterator
end() {
return map_.end(); }
59 typename MapT::const_iterator
begin()
const {
return map_.begin(); }
60 typename MapT::const_iterator
end()
const {
return map_.begin(); }
MapT::const_iterator end() const
typename MapT::key_type Key
Mapped & operator[](const Key &key)
MapT::const_iterator begin() const
bool contains(const Key &key) const
MapT::iterator find(const Key &key)
typename MapT::mapped_type Mapped
absl::flat_hash_map< _Key, _Value, _Hash > MapT
MapT::size_type erase(const Key &key)
ZoneVector< RpoNumber > & result
#define DCHECK_NOT_NULL(val)
#define DCHECK(condition)
std::unique_ptr< ValueMirror > key