#include <v8-isolate.h>
Initial configuration parameters for a new Isolate.
- Examples
- shell.cc.
◆ CreateParams() [1/3]
v8::Isolate::CreateParams::CreateParams |
( |
| ) |
|
◆ ~CreateParams()
v8::Isolate::CreateParams::~CreateParams |
( |
| ) |
|
◆ CreateParams() [2/3]
v8::Isolate::CreateParams::CreateParams |
( |
const CreateParams & |
| ) |
|
|
default |
◆ CreateParams() [3/3]
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ add_histogram_sample_callback
◆ allow_atomics_wait
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.
◆ array_buffer_allocator
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.
- Examples
- shell.cc.
◆ array_buffer_allocator_shared
◆ code_event_handler
Allows the host application to provide the address of a function that is notified each time code is added, moved or removed.
◆ constraints
◆ counter_lookup_callback
Enables the host application to provide a mechanism for recording statistics counters.
◆ cpp_heap
CppHeap* v8::Isolate::CreateParams::cpp_heap = nullptr |
◆ create_histogram_callback
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.
◆ embedder_wrapper_object_index
int v8::Isolate::CreateParams::embedder_wrapper_object_index = -1 |
◆ embedder_wrapper_type_index
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).
◆ external_references
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.
◆ fatal_error_callback
Callbacks to invoke in case of fatal or OOM errors.
◆ oom_error_callback
◆ snapshot_blob
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.
The documentation for this struct was generated from the following file: