![]() |
v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
|
#include <wasm-import-wrapper-cache.h>
Classes | |
struct | CacheKey |
class | CacheKeyHash |
class | ModificationScope |
Public Member Functions | |
WasmImportWrapperCache ()=default | |
~WasmImportWrapperCache ()=default | |
void | LazyInitialize (Isolate *triggering_isolate) |
void | Free (std::vector< WasmCode * > &wrappers) |
V8_EXPORT_PRIVATE WasmCode * | MaybeGet (ImportCallKind kind, CanonicalTypeIndex type_index, int expected_arity, Suspend suspend) const |
WasmCode * | Lookup (Address pc) const |
void | LogForIsolate (Isolate *isolate) |
size_t | EstimateCurrentMemoryConsumption () const |
V8_EXPORT_PRIVATE WasmCode * | FindWrapper (WasmCodePointer call_target) |
WasmCode * | CompileWasmImportCallWrapper (Isolate *isolate, ImportCallKind kind, const CanonicalSig *sig, CanonicalTypeIndex sig_index, bool source_positions, int expected_arity, Suspend suspend) |
Private Attributes | |
std::unique_ptr< WasmCodeAllocator > | code_allocator_ |
base::Mutex | mutex_ |
std::unordered_map< CacheKey, WasmCode *, CacheKeyHash > | entry_map_ |
std::map< Address, WasmCode * > | codes_ |
Definition at line 24 of file wasm-import-wrapper-cache.h.
|
default |
|
default |
WasmCode * v8::internal::wasm::WasmImportWrapperCache::CompileWasmImportCallWrapper | ( | Isolate * | isolate, |
ImportCallKind | kind, | ||
const CanonicalSig * | sig, | ||
CanonicalTypeIndex | sig_index, | ||
bool | source_positions, | ||
int | expected_arity, | ||
Suspend | suspend ) |
Definition at line 154 of file wasm-import-wrapper-cache.cc.
size_t v8::internal::wasm::WasmImportWrapperCache::EstimateCurrentMemoryConsumption | ( | ) | const |
Definition at line 260 of file wasm-import-wrapper-cache.cc.
WasmCode * v8::internal::wasm::WasmImportWrapperCache::FindWrapper | ( | WasmCodePointer | call_target | ) |
Definition at line 142 of file wasm-import-wrapper-cache.cc.
Definition at line 198 of file wasm-import-wrapper-cache.cc.
Definition at line 30 of file wasm-import-wrapper-cache.cc.
Definition at line 191 of file wasm-import-wrapper-cache.cc.
Definition at line 243 of file wasm-import-wrapper-cache.cc.
WasmCode * v8::internal::wasm::WasmImportWrapperCache::MaybeGet | ( | ImportCallKind | kind, |
CanonicalTypeIndex | type_index, | ||
int | expected_arity, | ||
Suspend | suspend ) const |
Definition at line 230 of file wasm-import-wrapper-cache.cc.
|
private |
Definition at line 96 of file wasm-import-wrapper-cache.h.
Definition at line 100 of file wasm-import-wrapper-cache.h.
|
private |
Definition at line 98 of file wasm-import-wrapper-cache.h.
|
mutableprivate |
Definition at line 97 of file wasm-import-wrapper-cache.h.