v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::PointerToIndexHashMap< Type > Class Template Reference

#include <address-map.h>

Inheritance diagram for v8::internal::PointerToIndexHashMap< Type >:
Collaboration diagram for v8::internal::PointerToIndexHashMap< Type >:

Public Types

using Entry = base::TemplateHashMapEntry<uintptr_t, uint32_t>
 
- Public Types inherited from v8::base::TemplateHashMapImpl< uintptr_t, uint32_t, base::KeyEqualityMatcher< intptr_t >, base::DefaultAllocationPolicy >
using Entry
 

Public Member Functions

void Set (Type value, uint32_t index)
 
Maybe< uint32_t > Get (Type value) const
 
- Public Member Functions inherited from v8::base::TemplateHashMapImpl< uintptr_t, uint32_t, base::KeyEqualityMatcher< intptr_t >, base::DefaultAllocationPolicy >
 TemplateHashMapImpl (uint32_t capacity=kDefaultHashMapCapacity, base::KeyEqualityMatcher< intptr_t > match=base::KeyEqualityMatcher< intptr_t >(), base::DefaultAllocationPolicy allocator=base::DefaultAllocationPolicy())
 
 TemplateHashMapImpl (const TemplateHashMapImpl &)=delete
 
 TemplateHashMapImpl (const TemplateHashMapImpl *original, base::DefaultAllocationPolicy allocator=base::DefaultAllocationPolicy())
 
 TemplateHashMapImpl (TemplateHashMapImpl &&other) V8_NOEXCEPT=default
 
TemplateHashMapImploperator= (const TemplateHashMapImpl &)=delete
 
TemplateHashMapImploperator= (TemplateHashMapImpl &&other) V8_NOEXCEPT=default
 
 ~TemplateHashMapImpl ()
 
EntryLookup (const uintptr_t &key, uint32_t hash) const
 
EntryLookupOrInsert (const uintptr_t &key, uint32_t hash)
 
EntryLookupOrInsert (const uintptr_t &key, uint32_t hash, const Func &value_func)
 
EntryLookupOrInsert (const LookupKey &lookup_key, uint32_t hash, const KeyFunc &key_func, const ValueFunc &value_func)
 
EntryInsertNew (const uintptr_t &key, uint32_t hash)
 
uint32_t Remove (const uintptr_t &key, uint32_t hash)
 
void Clear ()
 
void Invalidate ()
 
uint32_t occupancy () const
 
uint32_t capacity () const
 
EntryStart () const
 
EntryNext (Entry *entry) const
 
base::DefaultAllocationPolicy allocator () const
 

Private Member Functions

uintptr_t Key (Address value)
 
uintptr_t Key (Tagged< HeapObject > value)
 

Static Private Member Functions

static uintptr_t Key (Type value)
 
static uint32_t Hash (uintptr_t key)
 

Additional Inherited Members

- Static Public Attributes inherited from v8::base::TemplateHashMapImpl< uintptr_t, uint32_t, base::KeyEqualityMatcher< intptr_t >, base::DefaultAllocationPolicy >
static const uint32_t kDefaultHashMapCapacity
 
- Protected Member Functions inherited from v8::base::TemplateHashMapImpl< uintptr_t, uint32_t, base::KeyEqualityMatcher< intptr_t >, base::DefaultAllocationPolicy >
void Initialize (uint32_t capacity)
 

Detailed Description

template<typename Type>
class v8::internal::PointerToIndexHashMap< Type >

Definition at line 17 of file address-map.h.

Member Typedef Documentation

◆ Entry

template<typename Type >
using v8::internal::PointerToIndexHashMap< Type >::Entry = base::TemplateHashMapEntry<uintptr_t, uint32_t>

Definition at line 22 of file address-map.h.

Member Function Documentation

◆ Get()

template<typename Type >
Maybe< uint32_t > v8::internal::PointerToIndexHashMap< Type >::Get ( Type value) const
inline

Definition at line 29 of file address-map.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Hash()

template<typename Type >
static uint32_t v8::internal::PointerToIndexHashMap< Type >::Hash ( uintptr_t key)
inlinestaticprivate

Definition at line 39 of file address-map.h.

Here is the caller graph for this function:

◆ Key() [1/3]

uintptr_t v8::internal::PointerToIndexHashMap< Address >::Key ( Address value)
inlineprivate

Definition at line 43 of file address-map.h.

◆ Key() [2/3]

uintptr_t v8::internal::PointerToIndexHashMap< Tagged< HeapObject > >::Key ( Tagged< HeapObject > value)
inlineprivate

Definition at line 48 of file address-map.h.

◆ Key() [3/3]

template<typename Type >
static uintptr_t v8::internal::PointerToIndexHashMap< Type >::Key ( Type value)
inlinestaticprivate
Here is the caller graph for this function:

◆ Set()

template<typename Type >
void v8::internal::PointerToIndexHashMap< Type >::Set ( Type value,
uint32_t index )
inline

Definition at line 24 of file address-map.h.

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: