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

#include <snapshot-data.h>

Inheritance diagram for v8::internal::SnapshotData:
Collaboration diagram for v8::internal::SnapshotData:

Public Member Functions

 SnapshotData (const Serializer *serializer)
 
 SnapshotData (const base::Vector< const uint8_t > snapshot)
 
virtual base::Vector< const uint8_t > Payload () const
 
base::Vector< const uint8_t > RawData () const
 
- Public Member Functions inherited from v8::internal::SerializedData
 SerializedData (uint8_t *data, int size)
 
 SerializedData ()
 
 SerializedData (SerializedData &&other) V8_NOEXCEPT
 
 SerializedData (const SerializedData &)=delete
 
SerializedDataoperator= (const SerializedData &)=delete
 
virtual ~SerializedData ()
 
uint32_t GetMagicNumber () const
 

Protected Member Functions

 SnapshotData ()
 
void Resize (uint32_t size)
 
- Protected Member Functions inherited from v8::internal::SerializedData
void SetHeaderValue (uint32_t offset, uint32_t value)
 
uint32_t GetHeaderValue (uint32_t offset) const
 
void AllocateData (uint32_t size)
 
void SetMagicNumber ()
 

Static Protected Attributes

static const uint32_t kPayloadLengthOffset = kMagicNumberOffset + kUInt32Size
 
static const uint32_t kHeaderSize = kPayloadLengthOffset + kUInt32Size
 

Friends

class SnapshotCompression
 

Additional Inherited Members

- Public Types inherited from v8::internal::SerializedData
using ChunkSizeBits = base::BitField<uint32_t, 0, 31>
 
using IsLastChunkBits = base::BitField<bool, 31, 1>
 
- Static Public Attributes inherited from v8::internal::SerializedData
static constexpr uint32_t kMagicNumberOffset = 0
 
static constexpr uint32_t kMagicNumber
 
- Protected Attributes inherited from v8::internal::SerializedData
uint8_t * data_
 
uint32_t size_
 
bool owns_data_
 

Detailed Description

Definition at line 70 of file snapshot-data.h.

Constructor & Destructor Documentation

◆ SnapshotData() [1/3]

v8::internal::SnapshotData::SnapshotData ( const Serializer * serializer)
explicit

Definition at line 23 of file snapshot-data.cc.

Here is the call graph for this function:

◆ SnapshotData() [2/3]

v8::internal::SnapshotData::SnapshotData ( const base::Vector< const uint8_t > snapshot)
inlineexplicit

Definition at line 76 of file snapshot-data.h.

◆ SnapshotData() [3/3]

v8::internal::SnapshotData::SnapshotData ( )
inlineprotected

Definition at line 89 of file snapshot-data.h.

Member Function Documentation

◆ Payload()

base::Vector< const uint8_t > v8::internal::SnapshotData::Payload ( ) const
virtual

Definition at line 45 of file snapshot-data.cc.

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

◆ RawData()

base::Vector< const uint8_t > v8::internal::SnapshotData::RawData ( ) const
inline

Definition at line 82 of file snapshot-data.h.

Here is the caller graph for this function:

◆ Resize()

void v8::internal::SnapshotData::Resize ( uint32_t size)
inlineprotected

Definition at line 94 of file snapshot-data.h.

Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ SnapshotCompression

friend class SnapshotCompression
friend

Definition at line 90 of file snapshot-data.h.

Member Data Documentation

◆ kHeaderSize

const uint32_t v8::internal::SnapshotData::kHeaderSize = kPayloadLengthOffset + kUInt32Size
staticprotected

Definition at line 101 of file snapshot-data.h.

◆ kPayloadLengthOffset

const uint32_t v8::internal::SnapshotData::kPayloadLengthOffset = kMagicNumberOffset + kUInt32Size
staticprotected

Definition at line 100 of file snapshot-data.h.


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