v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::SerializeInternalFieldsCallback Struct Reference

#include <v8-snapshot.h>

Collaboration diagram for v8::SerializeInternalFieldsCallback:

Public Types

using CallbackFunction
 

Public Member Functions

 SerializeInternalFieldsCallback (CallbackFunction function=nullptr, void *data_arg=nullptr)
 

Public Attributes

CallbackFunction callback
 
void * data
 

Detailed Description

Callback and supporting data used in SnapshotCreator to implement embedder logic to serialize internal fields of v8::Objects. Internal fields that directly reference V8 objects are serialized without calling this callback. Internal fields that contain aligned pointers are serialized by this callback if it returns non-zero result. Otherwise it is serialized verbatim.

Definition at line 47 of file v8-snapshot.h.

Member Typedef Documentation

◆ CallbackFunction

Initial value:
StartupData (*)(Local<Object> holder, int index,
void* data)
OptionalOpIndex index

Definition at line 48 of file v8-snapshot.h.

Constructor & Destructor Documentation

◆ SerializeInternalFieldsCallback()

v8::SerializeInternalFieldsCallback::SerializeInternalFieldsCallback ( CallbackFunction function = nullptr,
void * data_arg = nullptr )
inline

Definition at line 50 of file v8-snapshot.h.

Member Data Documentation

◆ callback

CallbackFunction v8::SerializeInternalFieldsCallback::callback

Definition at line 53 of file v8-snapshot.h.

◆ data

void* v8::SerializeInternalFieldsCallback::data

Definition at line 54 of file v8-snapshot.h.


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