![]() |
v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
|
#include <snapshot.h>
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 ¶ms) | |
| SnapshotCreatorImpl (Isolate *isolate, const v8::Isolate::CreateParams ¶ms) | |
| ~SnapshotCreatorImpl () | |
| Isolate * | isolate () 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 SnapshotCreatorImpl * | FromSnapshotCreator (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< NativeContext > | context_at (size_t i) const |
| bool | created () const |
Private Attributes | |
| const bool | owns_isolate_ |
| Isolate *const | isolate_ |
| std::unique_ptr< v8::ArrayBuffer::Allocator > | array_buffer_allocator_ |
| std::vector< SerializableContext > | contexts_ |
Definition at line 152 of file snapshot.h.
| v8::internal::SnapshotCreatorImpl::SnapshotCreatorImpl | ( | Isolate * | isolate, |
| const intptr_t * | api_external_references, | ||
| const StartupData * | existing_blob, | ||
| bool | owns_isolate ) |
|
explicit |
| v8::internal::SnapshotCreatorImpl::SnapshotCreatorImpl | ( | Isolate * | isolate, |
| const v8::Isolate::CreateParams & | params ) |
| v8::internal::SnapshotCreatorImpl::~SnapshotCreatorImpl | ( | ) |
| size_t v8::internal::SnapshotCreatorImpl::AddContext | ( | DirectHandle< NativeContext > | context, |
| SerializeEmbedderFieldsCallback | callback ) |
Definition at line 960 of file snapshot.cc.
| size_t v8::internal::SnapshotCreatorImpl::AddData | ( | DirectHandle< NativeContext > | context, |
| Address | object ) |
|
private |
Definition at line 1010 of file snapshot.cc.
| StartupData v8::internal::SnapshotCreatorImpl::CreateBlob | ( | SnapshotCreator::FunctionCodeHandling | function_code_handling, |
| Snapshot::SerializerFlags | serializer_flags = Snapshot::kDefaultSerializerFlags ) |
Definition at line 1043 of file snapshot.cc.
|
inlineprivate |
|
static |
|
private |
Definition at line 860 of file snapshot.cc.
|
inline |
| void v8::internal::SnapshotCreatorImpl::SetDefaultContext | ( | DirectHandle< NativeContext > | context, |
| SerializeEmbedderFieldsCallback | callback ) |
Definition at line 948 of file snapshot.cc.
|
private |
Definition at line 207 of file snapshot.h.
|
private |
Definition at line 208 of file snapshot.h.
|
private |
Definition at line 206 of file snapshot.h.
|
staticconstexpr |
Definition at line 187 of file snapshot.h.
|
staticconstexpr |
Definition at line 188 of file snapshot.h.
|
private |
Definition at line 205 of file snapshot.h.