v8  6.2.414(node9.11.2)
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

FunctionEntryHook entry_hook
JitCodeEventHandler code_event_handler
ResourceConstraints constraints
CounterLookupCallback counter_lookup_callback
CreateHistogramCallback create_histogram_callback
AddHistogramSampleCallback add_histogram_sample_callback
const intptr_t * external_references
bool allow_atomics_wait

Detailed Description

Initial configuration parameters for a new Isolate.

Definition at line 6769 of file v8.h.

Constructor & Destructor Documentation

Field Documentation

AddHistogramSampleCallback add_histogram_sample_callback

Definition at line 6821 of file v8.h.

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

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

ArrayBuffer::Allocator* array_buffer_allocator

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

Definition at line 6827 of file v8.h.

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

ResourceConstraints constraints

ResourceConstraints to use for the new Isolate.

Definition at line 6800 of file v8.h.

CounterLookupCallback counter_lookup_callback

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

Definition at line 6812 of file v8.h.

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

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

Definition at line 6789 of file v8.h.

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

StartupData* snapshot_blob

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

Definition at line 6805 of file v8.h.

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