V8 API Reference, 7.2.502.16 (for Deno 0.2.4)
v8::Isolate::CreateParams Struct Reference

#include <v8.h>

Public Attributes

FunctionEntryHook entry_hook
 
JitCodeEventHandler code_event_handler
 
ResourceConstraints constraints
 
StartupData * snapshot_blob
 
CounterLookupCallback counter_lookup_callback
 
CreateHistogramCallback create_histogram_callback
 
AddHistogramSampleCallback add_histogram_sample_callback
 
ArrayBuffer::Allocatorarray_buffer_allocator
 
const intptr_t * external_references
 
bool allow_atomics_wait
 
bool only_terminate_in_safe_scope
 

Detailed Description

Initial configuration parameters for a new Isolate.

Definition at line 7122 of file v8.h.

Member Data Documentation

◆ allow_atomics_wait

bool v8::Isolate::CreateParams::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 7196 of file v8.h.

◆ array_buffer_allocator

ArrayBuffer::Allocator* v8::Isolate::CreateParams::array_buffer_allocator

The ArrayBuffer::Allocator to use for allocating and freeing the backing store of ArrayBuffers.

Definition at line 7182 of file v8.h.

◆ code_event_handler

JitCodeEventHandler v8::Isolate::CreateParams::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 7150 of file v8.h.

◆ constraints

ResourceConstraints v8::Isolate::CreateParams::constraints

ResourceConstraints to use for the new Isolate.

Definition at line 7155 of file v8.h.

◆ counter_lookup_callback

CounterLookupCallback v8::Isolate::CreateParams::counter_lookup_callback

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

Definition at line 7167 of file v8.h.

◆ create_histogram_callback

CreateHistogramCallback v8::Isolate::CreateParams::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 7175 of file v8.h.

◆ entry_hook

FunctionEntryHook v8::Isolate::CreateParams::entry_hook

The optional entry_hook allows the host application to provide the address of a function that's invoked on entry to every V8-generated function. Note that entry_hook is invoked at the very start of each generated function. An entry_hook can only be provided in no-snapshot builds; in snapshot builds it must be nullptr. TODO(v8:8503): Remove entry_hook.

Definition at line 7144 of file v8.h.

◆ external_references

const intptr_t* v8::Isolate::CreateParams::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 7190 of file v8.h.

◆ only_terminate_in_safe_scope

bool v8::Isolate::CreateParams::only_terminate_in_safe_scope

Termination is postponed when there is no active SafeForTerminationScope.

Definition at line 7201 of file v8.h.

◆ snapshot_blob

StartupData* v8::Isolate::CreateParams::snapshot_blob

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

Definition at line 7160 of file v8.h.


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