v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::SnapshotCreatorImpl Class Referencefinal

#include <snapshot.h>

Collaboration diagram for v8::internal::SnapshotCreatorImpl:

Classes

struct  SerializableContext
 

Public Member Functions

 SnapshotCreatorImpl (Isolate *isolate, const intptr_t *api_external_references, const StartupData *existing_blob, bool owns_isolate)
 
 SnapshotCreatorImpl (const v8::Isolate::CreateParams &params)
 
 SnapshotCreatorImpl (Isolate *isolate, const v8::Isolate::CreateParams &params)
 
 ~SnapshotCreatorImpl ()
 
Isolateisolate () const
 
void SetDefaultContext (DirectHandle< NativeContext > context, SerializeEmbedderFieldsCallback callback)
 
size_t AddContext (DirectHandle< NativeContext > context, SerializeEmbedderFieldsCallback callback)
 
size_t AddData (DirectHandle< NativeContext > context, Address object)
 
size_t AddData (Address object)
 
StartupData CreateBlob (SnapshotCreator::FunctionCodeHandling function_code_handling, Snapshot::SerializerFlags serializer_flags=Snapshot::kDefaultSerializerFlags)
 

Static Public Member Functions

static SnapshotCreatorImplFromSnapshotCreator (v8::SnapshotCreator *snapshot_creator)
 

Static Public Attributes

static constexpr size_t kDefaultContextIndex = 0
 
static constexpr size_t kFirstAddtlContextIndex = kDefaultContextIndex + 1
 

Private Member Functions

void InitInternal (const StartupData *)
 
DirectHandle< NativeContextcontext_at (size_t i) const
 
bool created () const
 

Private Attributes

const bool owns_isolate_
 
Isolate *const isolate_
 
std::unique_ptr< v8::ArrayBuffer::Allocatorarray_buffer_allocator_
 
std::vector< SerializableContextcontexts_
 

Detailed Description

Definition at line 152 of file snapshot.h.

Constructor & Destructor Documentation

◆ SnapshotCreatorImpl() [1/3]

v8::internal::SnapshotCreatorImpl::SnapshotCreatorImpl ( Isolate * isolate,
const intptr_t * api_external_references,
const StartupData * existing_blob,
bool owns_isolate )

Definition at line 881 of file snapshot.cc.

Here is the call graph for this function:

◆ SnapshotCreatorImpl() [2/3]

v8::internal::SnapshotCreatorImpl::SnapshotCreatorImpl ( const v8::Isolate::CreateParams & params)
explicit

Definition at line 895 of file snapshot.cc.

Here is the call graph for this function:

◆ SnapshotCreatorImpl() [3/3]

v8::internal::SnapshotCreatorImpl::SnapshotCreatorImpl ( Isolate * isolate,
const v8::Isolate::CreateParams & params )

Definition at line 914 of file snapshot.cc.

Here is the call graph for this function:

◆ ~SnapshotCreatorImpl()

v8::internal::SnapshotCreatorImpl::~SnapshotCreatorImpl ( )

Definition at line 933 of file snapshot.cc.

Here is the call graph for this function:

Member Function Documentation

◆ AddContext()

size_t v8::internal::SnapshotCreatorImpl::AddContext ( DirectHandle< NativeContext > context,
SerializeEmbedderFieldsCallback callback )

Definition at line 960 of file snapshot.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddData() [1/2]

size_t v8::internal::SnapshotCreatorImpl::AddData ( Address object)

Definition at line 992 of file snapshot.cc.

Here is the call graph for this function:

◆ AddData() [2/2]

size_t v8::internal::SnapshotCreatorImpl::AddData ( DirectHandle< NativeContext > context,
Address object )

Definition at line 972 of file snapshot.cc.

Here is the call graph for this function:

◆ context_at()

DirectHandle< NativeContext > v8::internal::SnapshotCreatorImpl::context_at ( size_t i) const
private

Definition at line 1010 of file snapshot.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateBlob()

StartupData v8::internal::SnapshotCreatorImpl::CreateBlob ( SnapshotCreator::FunctionCodeHandling function_code_handling,
Snapshot::SerializerFlags serializer_flags = Snapshot::kDefaultSerializerFlags )

Definition at line 1043 of file snapshot.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ created()

bool v8::internal::SnapshotCreatorImpl::created ( ) const
inlineprivate

Definition at line 203 of file snapshot.h.

Here is the caller graph for this function:

◆ FromSnapshotCreator()

SnapshotCreatorImpl * v8::internal::SnapshotCreatorImpl::FromSnapshotCreator ( v8::SnapshotCreator * snapshot_creator)
static

Definition at line 1162 of file snapshot.cc.

Here is the caller graph for this function:

◆ InitInternal()

void v8::internal::SnapshotCreatorImpl::InitInternal ( const StartupData * blob)
private

Definition at line 860 of file snapshot.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isolate()

Isolate * v8::internal::SnapshotCreatorImpl::isolate ( ) const
inline

Definition at line 169 of file snapshot.h.

Here is the caller graph for this function:

◆ SetDefaultContext()

void v8::internal::SnapshotCreatorImpl::SetDefaultContext ( DirectHandle< NativeContext > context,
SerializeEmbedderFieldsCallback callback )

Definition at line 948 of file snapshot.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ array_buffer_allocator_

std::unique_ptr<v8::ArrayBuffer::Allocator> v8::internal::SnapshotCreatorImpl::array_buffer_allocator_
private

Definition at line 207 of file snapshot.h.

◆ contexts_

std::vector<SerializableContext> v8::internal::SnapshotCreatorImpl::contexts_
private

Definition at line 208 of file snapshot.h.

◆ isolate_

Isolate* const v8::internal::SnapshotCreatorImpl::isolate_
private

Definition at line 206 of file snapshot.h.

◆ kDefaultContextIndex

size_t v8::internal::SnapshotCreatorImpl::kDefaultContextIndex = 0
staticconstexpr

Definition at line 187 of file snapshot.h.

◆ kFirstAddtlContextIndex

size_t v8::internal::SnapshotCreatorImpl::kFirstAddtlContextIndex = kDefaultContextIndex + 1
staticconstexpr

Definition at line 188 of file snapshot.h.

◆ owns_isolate_

const bool v8::internal::SnapshotCreatorImpl::owns_isolate_
private

Definition at line 205 of file snapshot.h.


The documentation for this class was generated from the following files: