![]() |
v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
|
#include <v8-isolate.h>
Public Member Functions | |
CreateParams () | |
~CreateParams () | |
Public Attributes | |
JitCodeEventHandler | code_event_handler = nullptr |
ResourceConstraints | constraints |
const StartupData * | snapshot_blob = nullptr |
CounterLookupCallback | counter_lookup_callback = nullptr |
CreateHistogramCallback | create_histogram_callback = nullptr |
AddHistogramSampleCallback | add_histogram_sample_callback = nullptr |
ArrayBuffer::Allocator * | array_buffer_allocator = nullptr |
std::shared_ptr< ArrayBuffer::Allocator > | array_buffer_allocator_shared |
const intptr_t * | external_references = nullptr |
bool | allow_atomics_wait = true |
int | embedder_wrapper_type_index = -1 |
int | embedder_wrapper_object_index = -1 |
FatalErrorCallback | fatal_error_callback = nullptr |
OOMErrorCallback | oom_error_callback = nullptr |
CppHeap * | cpp_heap = nullptr |
Initial configuration parameters for a new Isolate.
Definition at line 279 of file v8-isolate.h.
|
default |
|
default |
AddHistogramSampleCallback v8::Isolate::CreateParams::add_histogram_sample_callback = nullptr |
Definition at line 315 of file v8-isolate.h.
bool v8::Isolate::CreateParams::allow_atomics_wait = true |
Whether calling Atomics.wait (a function that may block) is allowed in this isolate. This can also be configured via SetAllowAtomicsWait.
Definition at line 341 of file v8-isolate.h.
ArrayBuffer::Allocator* v8::Isolate::CreateParams::array_buffer_allocator = nullptr |
The ArrayBuffer::Allocator to use for allocating and freeing the backing store of ArrayBuffers.
If the shared_ptr version is used, the Isolate instance and every |BackingStore| allocated using this allocator hold a std::shared_ptr to the allocator, in order to facilitate lifetime management for the allocator instance.
Definition at line 326 of file v8-isolate.h.
std::shared_ptr<ArrayBuffer::Allocator> v8::Isolate::CreateParams::array_buffer_allocator_shared |
Definition at line 327 of file v8-isolate.h.
JitCodeEventHandler v8::Isolate::CreateParams::code_event_handler = nullptr |
Allows the host application to provide the address of a function that is notified each time code is added, moved or removed.
Definition at line 289 of file v8-isolate.h.
ResourceConstraints v8::Isolate::CreateParams::constraints |
ResourceConstraints to use for the new Isolate.
Definition at line 294 of file v8-isolate.h.
CounterLookupCallback v8::Isolate::CreateParams::counter_lookup_callback = nullptr |
Enables the host application to provide a mechanism for recording statistics counters.
Definition at line 306 of file v8-isolate.h.
CppHeap* v8::Isolate::CreateParams::cpp_heap = nullptr |
CreateHistogramCallback v8::Isolate::CreateParams::create_histogram_callback = nullptr |
Enables the host application to provide a mechanism for recording histograms. The CreateHistogram function returns a histogram which will later be passed to the AddHistogramSample function.
Definition at line 314 of file v8-isolate.h.
int v8::Isolate::CreateParams::embedder_wrapper_object_index = -1 |
Definition at line 349 of file v8-isolate.h.
int v8::Isolate::CreateParams::embedder_wrapper_type_index = -1 |
The following parameters describe the offsets for addressing type info for wrapped API objects and are used by the fast C API (for details see v8-fast-api-calls.h).
Definition at line 348 of file v8-isolate.h.
const intptr_t* v8::Isolate::CreateParams::external_references = nullptr |
Specifies an optional nullptr-terminated array of raw addresses in the embedder that V8 can match against during serialization and use for deserialization. This array and its content must stay valid for the entire lifetime of the isolate.
Definition at line 335 of file v8-isolate.h.
FatalErrorCallback v8::Isolate::CreateParams::fatal_error_callback = nullptr |
Callbacks to invoke in case of fatal or OOM errors.
Definition at line 354 of file v8-isolate.h.
OOMErrorCallback v8::Isolate::CreateParams::oom_error_callback = nullptr |
Definition at line 355 of file v8-isolate.h.
const StartupData* v8::Isolate::CreateParams::snapshot_blob = nullptr |
Explicitly specify a startup snapshot blob. The embedder owns the blob. The embedder must ensure that the snapshot is from a trusted source.
Definition at line 300 of file v8-isolate.h.