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

#include <snapshot.h>

Inheritance diagram for v8::internal::Snapshot:
Collaboration diagram for v8::internal::Snapshot:

Public Types

enum  SerializerFlag { kAllowUnknownExternalReferencesForTesting = 1 << 0 , kAllowActiveIsolateForTesting = 1 << 1 , kReconstructReadOnlyAndSharedObjectCachesForTesting = 1 << 2 }
 
using SerializerFlags = base::Flags<SerializerFlag>
 

Static Public Member Functions

static V8_EXPORT_PRIVATE void ClearReconstructableDataForSerialization (Isolate *isolate, bool clear_recompilable_data)
 
static v8::StartupData Create (Isolate *isolate, std::vector< Tagged< Context > > *contexts, const std::vector< SerializeEmbedderFieldsCallback > &embedder_fields_serializers, const SafepointScope &safepoint_scope, const DisallowGarbageCollection &no_gc, SerializerFlags flags=kDefaultSerializerFlags)
 
static bool Initialize (Isolate *isolate)
 
static MaybeDirectHandle< ContextNewContextFromSnapshot (Isolate *isolate, DirectHandle< JSGlobalProxy > global_proxy, size_t context_index, DeserializeEmbedderFieldsCallback embedder_fields_deserializer)
 
static V8_EXPORT_PRIVATE void SerializeDeserializeAndVerifyForTesting (Isolate *isolate, DirectHandle< Context > default_context)
 
static bool HasContextSnapshot (Isolate *isolate, size_t index)
 
static bool EmbedsScript (Isolate *isolate)
 
static V8_EXPORT_PRIVATE uint32_t GetExpectedChecksum (const v8::StartupData *data)
 
static V8_EXPORT_PRIVATE uint32_t CalculateChecksum (const v8::StartupData *data)
 
static V8_EXPORT_PRIVATE bool VerifyChecksum (const v8::StartupData *data)
 
static bool ExtractRehashability (const v8::StartupData *data)
 
static V8_EXPORT_PRIVATE uint32_t ExtractReadOnlySnapshotChecksum (const v8::StartupData *data)
 
static bool VersionIsValid (const v8::StartupData *data)
 
static const v8::StartupDataDefaultSnapshotBlob ()
 
static bool ShouldVerifyChecksum (const v8::StartupData *data)
 

Static Public Attributes

static V8_EXPORT_PRIVATE constexpr SerializerFlags kDefaultSerializerFlags
 

Detailed Description

Definition at line 25 of file snapshot.h.

Member Typedef Documentation

◆ SerializerFlags

Member Enumeration Documentation

◆ SerializerFlag

Enumerator
kAllowUnknownExternalReferencesForTesting 
kAllowActiveIsolateForTesting 
kReconstructReadOnlyAndSharedObjectCachesForTesting 

Definition at line 29 of file snapshot.h.

Member Function Documentation

◆ CalculateChecksum()

uint32_t v8::internal::Snapshot::CalculateChecksum ( const v8::StartupData * data)
static

Definition at line 643 of file snapshot.cc.

Here is the call graph for this function:

◆ ClearReconstructableDataForSerialization()

void v8::internal::Snapshot::ClearReconstructableDataForSerialization ( Isolate * isolate,
bool clear_recompilable_data )
static

Definition at line 221 of file snapshot.cc.

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

◆ Create()

v8::StartupData v8::internal::Snapshot::Create ( Isolate * isolate,
std::vector< Tagged< Context > > * contexts,
const std::vector< SerializeEmbedderFieldsCallback > & embedder_fields_serializers,
const SafepointScope & safepoint_scope,
const DisallowGarbageCollection & no_gc,
SerializerFlags flags = kDefaultSerializerFlags )
static

Definition at line 409 of file snapshot.cc.

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

◆ DefaultSnapshotBlob()

const v8::StartupData * v8::internal::Snapshot::DefaultSnapshotBlob ( )
static

Definition at line 24 of file snapshot-empty.cc.

Here is the caller graph for this function:

◆ EmbedsScript()

static bool v8::internal::Snapshot::EmbedsScript ( Isolate * isolate)
static

◆ ExtractReadOnlySnapshotChecksum()

uint32_t v8::internal::Snapshot::ExtractReadOnlySnapshotChecksum ( const v8::StartupData * data)
static

Definition at line 677 of file snapshot.cc.

Here is the caller graph for this function:

◆ ExtractRehashability()

bool v8::internal::Snapshot::ExtractRehashability ( const v8::StartupData * data)
static

Definition at line 669 of file snapshot.cc.

Here is the caller graph for this function:

◆ GetExpectedChecksum()

uint32_t v8::internal::Snapshot::GetExpectedChecksum ( const v8::StartupData * data)
static

Definition at line 640 of file snapshot.cc.

Here is the caller graph for this function:

◆ HasContextSnapshot()

bool v8::internal::Snapshot::HasContextSnapshot ( Isolate * isolate,
size_t index )
static

Definition at line 154 of file snapshot.cc.

◆ Initialize()

bool v8::internal::Snapshot::Initialize ( Isolate * isolate)
static

Definition at line 176 of file snapshot.cc.

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

◆ NewContextFromSnapshot()

MaybeDirectHandle< Context > v8::internal::Snapshot::NewContextFromSnapshot ( Isolate * isolate,
DirectHandle< JSGlobalProxy > global_proxy,
size_t context_index,
DeserializeEmbedderFieldsCallback embedder_fields_deserializer )
static

Definition at line 203 of file snapshot.cc.

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

◆ SerializeDeserializeAndVerifyForTesting()

void v8::internal::Snapshot::SerializeDeserializeAndVerifyForTesting ( Isolate * isolate,
DirectHandle< Context > default_context )
static

Definition at line 346 of file snapshot.cc.

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

◆ ShouldVerifyChecksum()

bool v8::internal::Snapshot::ShouldVerifyChecksum ( const v8::StartupData * data)
static

Definition at line 25 of file snapshot-empty.cc.

Here is the caller graph for this function:

◆ VerifyChecksum()

bool v8::internal::Snapshot::VerifyChecksum ( const v8::StartupData * data)
static

Definition at line 647 of file snapshot.cc.

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

◆ VersionIsValid()

bool v8::internal::Snapshot::VersionIsValid ( const v8::StartupData * data)
static

Definition at line 164 of file snapshot.cc.

Here is the call graph for this function:

Member Data Documentation

◆ kDefaultSerializerFlags

V8_EXPORT_PRIVATE constexpr SerializerFlags v8::internal::Snapshot::kDefaultSerializerFlags
staticconstexpr
Initial value:
=
{}

Definition at line 57 of file snapshot.h.


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