![]() |
v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
|
#include <wasm-engine.h>
Classes | |
struct | Key |
Public Member Functions | |
std::shared_ptr< NativeModule > | MaybeGetNativeModule (ModuleOrigin origin, base::Vector< const uint8_t > wire_bytes, const CompileTimeImports &compile_imports) |
bool | GetStreamingCompilationOwnership (size_t prefix_hash, const CompileTimeImports &compile_imports) |
void | StreamingCompilationFailed (size_t prefix_hash, const CompileTimeImports &compile_imports) |
std::shared_ptr< NativeModule > | Update (std::shared_ptr< NativeModule > native_module, bool error) |
void | Erase (NativeModule *native_module) |
bool | empty () const |
Static Public Member Functions | |
static size_t | PrefixHash (base::Vector< const uint8_t > wire_bytes) |
Private Attributes | |
std::map< Key, std::optional< std::weak_ptr< NativeModule > > > | map_ |
base::Mutex | mutex_ |
base::ConditionVariable | cache_cv_ |
Definition at line 73 of file wasm-engine.h.
|
inline |
void v8::internal::wasm::NativeModuleCache::Erase | ( | NativeModule * | native_module | ) |
Definition at line 399 of file wasm-engine.cc.
bool v8::internal::wasm::NativeModuleCache::GetStreamingCompilationOwnership | ( | size_t | prefix_hash, |
const CompileTimeImports & | compile_imports ) |
Definition at line 335 of file wasm-engine.cc.
std::shared_ptr< NativeModule > v8::internal::wasm::NativeModuleCache::MaybeGetNativeModule | ( | ModuleOrigin | origin, |
base::Vector< const uint8_t > | wire_bytes, | ||
const CompileTimeImports & | compile_imports ) |
Definition at line 295 of file wasm-engine.cc.
|
static |
Definition at line 412 of file wasm-engine.cc.
void v8::internal::wasm::NativeModuleCache::StreamingCompilationFailed | ( | size_t | prefix_hash, |
const CompileTimeImports & | compile_imports ) |
Definition at line 351 of file wasm-engine.cc.
std::shared_ptr< NativeModule > v8::internal::wasm::NativeModuleCache::Update | ( | std::shared_ptr< NativeModule > | native_module, |
bool | error ) |
Definition at line 360 of file wasm-engine.cc.
|
private |
Definition at line 157 of file wasm-engine.h.
|
private |
Definition at line 150 of file wasm-engine.h.
|
private |
Definition at line 152 of file wasm-engine.h.