v8  8.4.371 (node 14.15.5)
V8 is Google's open source JavaScript engine
Isolate::CreateParams Struct Reference

#include <v8.h>

Collaboration diagram for Isolate::CreateParams:

Public Member Functions

 CreateParams ()
 

Data Fields

JitCodeEventHandler code_event_handler
 
ResourceConstraints constraints
 
StartupDatasnapshot_blob
 
CounterLookupCallback counter_lookup_callback
 
CreateHistogramCallback create_histogram_callback
 
AddHistogramSampleCallback add_histogram_sample_callback
 
ArrayBuffer::Allocatorarray_buffer_allocator
 
std::shared_ptr< ArrayBuffer::Allocatorarray_buffer_allocator_shared
 
const intptr_t * external_references
 
bool allow_atomics_wait
 
bool only_terminate_in_safe_scope
 
int embedder_wrapper_type_index
 
int embedder_wrapper_object_index
 

Detailed Description

Initial configuration parameters for a new Isolate.

Definition at line 8134 of file v8.h.

Constructor & Destructor Documentation

◆ CreateParams()

Field Documentation

◆ add_histogram_sample_callback

AddHistogramSampleCallback add_histogram_sample_callback

Definition at line 8179 of file v8.h.

Referenced by Isolate::CreateParams::CreateParams().

◆ allow_atomics_wait

bool allow_atomics_wait

Whether calling Atomics.wait (a function that may block) is allowed in this isolate. This can also be configured via SetAllowAtomicsWait.

Definition at line 8205 of file v8.h.

Referenced by Isolate::CreateParams::CreateParams().

◆ array_buffer_allocator

ArrayBuffer::Allocator* 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.

Definition at line 8190 of file v8.h.

Referenced by Isolate::CreateParams::CreateParams().

◆ array_buffer_allocator_shared

std::shared_ptr<ArrayBuffer::Allocator> array_buffer_allocator_shared

Definition at line 8191 of file v8.h.

Referenced by Isolate::CreateParams::CreateParams().

◆ code_event_handler

JitCodeEventHandler 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.

Definition at line 8153 of file v8.h.

Referenced by Isolate::CreateParams::CreateParams().

◆ constraints

ResourceConstraints constraints

ResourceConstraints to use for the new Isolate.

Definition at line 8158 of file v8.h.

◆ counter_lookup_callback

CounterLookupCallback counter_lookup_callback

Enables the host application to provide a mechanism for recording statistics counters.

Definition at line 8170 of file v8.h.

Referenced by Isolate::CreateParams::CreateParams().

◆ create_histogram_callback

CreateHistogramCallback 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.

Definition at line 8178 of file v8.h.

Referenced by Isolate::CreateParams::CreateParams().

◆ embedder_wrapper_object_index

int embedder_wrapper_object_index

Definition at line 8218 of file v8.h.

Referenced by Isolate::CreateParams::CreateParams().

◆ embedder_wrapper_type_index

int embedder_wrapper_type_index

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 8217 of file v8.h.

Referenced by Isolate::CreateParams::CreateParams().

◆ external_references

const intptr_t* external_references

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 8199 of file v8.h.

Referenced by Isolate::CreateParams::CreateParams().

◆ only_terminate_in_safe_scope

bool only_terminate_in_safe_scope

Termination is postponed when there is no active SafeForTerminationScope.

Definition at line 8210 of file v8.h.

Referenced by Isolate::CreateParams::CreateParams().

◆ snapshot_blob

StartupData* snapshot_blob

Explicitly specify a startup snapshot blob. The embedder owns the blob.

Definition at line 8163 of file v8.h.

Referenced by Isolate::CreateParams::CreateParams().


The documentation for this struct was generated from the following file: