5#ifndef V8_COMPILER_NODE_CACHE_H_
6#define V8_COMPILER_NODE_CACHE_H_
30template <
typename Key,
typename Hash = base::hash<Key>,
31 typename Pred = std::equal_to<Key> >
32class EXPORT_TEMPLATE_DECLARE(V8_EXPORT_PRIVATE) NodeCache final {
34 explicit NodeCache(
Zone* zone) :
map_(zone) {}
35 ~NodeCache() =
default;
36 NodeCache(
const NodeCache&) =
delete;
37 NodeCache& operator=(
const NodeCache&) =
delete;
48 for (
const auto& entry :
map_) {
49 if (entry.second) nodes->push_back(entry.second);
68#if V8_HOST_ARCH_32_BIT
std::pair< int32_t, RelocInfoMode > RelocInt32Key
std::pair< int64_t, RelocInfoMode > RelocInt64Key
NodeCache< RelocInt64Key > RelocInt64NodeCache
NodeCache< int64_t > Int64NodeCache
Int64NodeCache IntPtrNodeCache
NodeCache< int32_t > Int32NodeCache
NodeCache< RelocInt32Key > RelocInt32NodeCache
std::unique_ptr< ValueMirror > key