![]() |
v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
|
#include <off-heap-hash-table.h>
Public Member Functions | |
int | capacity () const |
int | number_of_elements () const |
int | number_of_deleted_elements () const |
OffHeapObjectSlot | slot (InternalIndex index, int offset=0) const |
template<typename... Args> | |
void | AddAt (PtrComprCageBase cage_base, InternalIndex entry, Args &&... args) |
template<typename... Args> | |
void | OverwriteDeletedAt (PtrComprCageBase cage_base, InternalIndex entry, Args &&... args) |
void | ElementsRemoved (int count) |
size_t | GetSizeExcludingHeader () const |
template<typename IsolateT , typename FindKey > | |
InternalIndex | FindEntry (IsolateT *isolate, FindKey key, uint32_t hash) const |
InternalIndex | FindInsertionEntry (PtrComprCageBase cage_base, uint32_t hash) const |
template<typename IsolateT , typename FindKey > | |
InternalIndex | FindEntryOrInsertionEntry (IsolateT *isolate, FindKey key, uint32_t hash) const |
bool | ShouldResizeToAdd (int number_of_additional_elements, int *new_capacity) |
void | RehashInto (PtrComprCageBase cage_base, Derived *new_table) |
void | IterateElements (Root root, RootVisitor *visitor) |
Static Public Member Functions | |
static constexpr Tagged< Smi > | empty_element () |
static constexpr Tagged< Smi > | deleted_element () |
static bool | IsKey (Tagged< Object > k) |
Protected Member Functions | |
OffHeapHashTableBase (int capacity) | |
bool | HasSufficientCapacityToAdd (int number_of_additional_elements) const |
Static Protected Member Functions | |
static InternalIndex | FirstProbe (uint32_t hash, uint32_t size) |
static InternalIndex | NextProbe (InternalIndex last, uint32_t number, uint32_t size) |
static bool | HasSufficientCapacityToAdd (int capacity, int number_of_elements, int number_of_deleted_elements, int number_of_additional_elements) |
static int | ComputeCapacity (int at_least_space_for) |
static int | ComputeCapacityWithShrink (int current_capacity, int at_least_space_for) |
static size_t | GetSizeExcludingHeader (int capacity) |
template<typename Container , size_t OffsetOfElementsInContainer> | |
static void * | Allocate (int capacity) |
static void | Free (void *container) |
Protected Attributes | |
int | number_of_elements_ |
int | number_of_deleted_elements_ |
const int | capacity_ |
Tagged_t | elements_ [1] |
Definition at line 68 of file off-heap-hash-table.h.
|
explicitprotected |
|
inline |
|
inlinestaticprotected |
|
inline |
|
inlinestaticprotected |
|
inlinestaticprotected |
Definition at line 99 of file off-heap-hash-table-inl.h.
|
inlinestaticconstexpr |
Definition at line 71 of file off-heap-hash-table.h.
|
inline |
Definition at line 114 of file off-heap-hash-table.h.
|
inlinestaticconstexpr |
Definition at line 70 of file off-heap-hash-table.h.
|
inline |
Definition at line 125 of file off-heap-hash-table-inl.h.
|
inline |
Definition at line 159 of file off-heap-hash-table-inl.h.
|
inline |
Definition at line 142 of file off-heap-hash-table-inl.h.
|
inlinestaticprotected |
Definition at line 146 of file off-heap-hash-table.h.
|
inlinestaticprotected |
Definition at line 207 of file off-heap-hash-table-inl.h.
|
inline |
Definition at line 120 of file off-heap-hash-table.h.
|
inlinestaticprotected |
Definition at line 167 of file off-heap-hash-table.h.
|
inlinestaticprotected |
Definition at line 72 of file off-heap-hash-table-inl.h.
|
inlineprotected |
Definition at line 155 of file off-heap-hash-table.h.
|
inlinestatic |
|
inline |
Definition at line 116 of file off-heap-hash-table-inl.h.
|
inlinestaticprotected |
Definition at line 150 of file off-heap-hash-table.h.
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 26 of file off-heap-hash-table-inl.h.
|
inline |
Definition at line 47 of file off-heap-hash-table-inl.h.
|
inline |
|
protected |
Definition at line 184 of file off-heap-hash-table.h.
|
protected |
Definition at line 185 of file off-heap-hash-table.h.
|
protected |
Definition at line 183 of file off-heap-hash-table.h.
|
protected |
Definition at line 182 of file off-heap-hash-table.h.