![]() |
v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
|
#include <stub-cache.h>
Classes | |
| struct | Entry |
Public Types | |
| enum | Table { kPrimary , kSecondary } |
Public Member Functions | |
| void | Initialize () |
| void | Set (Tagged< Name > name, Tagged< Map > map, Tagged< MaybeObject > handler) |
| Tagged< MaybeObject > | Get (Tagged< Name > name, Tagged< Map > map) |
| void | Clear () |
| SCTableReference | key_reference (StubCache::Table table) |
| SCTableReference | map_reference (StubCache::Table table) |
| SCTableReference | value_reference (StubCache::Table table) |
| StubCache::Entry * | first_entry (StubCache::Table table) |
| Isolate * | isolate () |
| StubCache (Isolate *isolate) | |
| StubCache (const StubCache &)=delete | |
| StubCache & | operator= (const StubCache &)=delete |
Static Public Member Functions | |
| static int | PrimaryOffsetForTesting (Tagged< Name > name, Tagged< Map > map) |
| static int | SecondaryOffsetForTesting (Tagged< Name > name, Tagged< Map > map) |
Static Public Attributes | |
| static const int | kCacheIndexShift = Name::HashBits::kShift |
| static const int | kPrimaryTableBits = 11 |
| static const int | kPrimaryTableSize = (1 << kPrimaryTableBits) |
| static const int | kSecondaryTableBits = 9 |
| static const int | kSecondaryTableSize = (1 << kSecondaryTableBits) |
Static Private Member Functions | |
| static int | PrimaryOffset (Tagged< Name > name, Tagged< Map > map) |
| static int | SecondaryOffset (Tagged< Name > name, Tagged< Map > map) |
| static Entry * | entry (Entry *table, int offset) |
Private Attributes | |
| Entry | primary_ [kPrimaryTableSize] |
| Entry | secondary_ [kSecondaryTableSize] |
| Isolate * | isolate_ |
Friends | |
| class | Isolate |
| class | SCTableReference |
Definition at line 32 of file stub-cache.h.
| Enumerator | |
|---|---|
| kPrimary | |
| kSecondary | |
Definition at line 52 of file stub-cache.h.
|
explicit |
|
delete |
| void v8::internal::StubCache::Clear | ( | ) |
Definition at line 136 of file stub-cache.cc.
|
inline |
Definition at line 69 of file stub-cache.h.
| void v8::internal::StubCache::Initialize | ( | ) |
Definition at line 23 of file stub-cache.cc.
|
inline |
|
inline |
|
inline |
Definition at line 59 of file stub-cache.h.
Definition at line 32 of file stub-cache.cc.
|
staticprivate |
Definition at line 50 of file stub-cache.cc.
| void v8::internal::StubCache::Set | ( | Tagged< Name > | name, |
| Tagged< Map > | map, | ||
| Tagged< MaybeObject > | handler ) |
Definition at line 89 of file stub-cache.cc.
|
inline |
Definition at line 64 of file stub-cache.h.
|
friend |
Definition at line 138 of file stub-cache.h.
|
friend |
Definition at line 139 of file stub-cache.h.
|
private |
Definition at line 136 of file stub-cache.h.
|
static |
Definition at line 86 of file stub-cache.h.
|
static |
Definition at line 88 of file stub-cache.h.
|
static |
Definition at line 89 of file stub-cache.h.
|
static |
Definition at line 90 of file stub-cache.h.
|
static |
Definition at line 91 of file stub-cache.h.
|
private |
Definition at line 134 of file stub-cache.h.
|
private |
Definition at line 135 of file stub-cache.h.