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

#include <snapshot-data.h>

Inheritance diagram for v8::internal::SerializedData:
Collaboration diagram for v8::internal::SerializedData:

Public Types

using ChunkSizeBits = base::BitField<uint32_t, 0, 31>
 
using IsLastChunkBits = base::BitField<bool, 31, 1>
 

Public Member Functions

 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
 

Static Public Attributes

static constexpr uint32_t kMagicNumberOffset = 0
 
static constexpr uint32_t kMagicNumber
 

Protected Member Functions

void SetHeaderValue (uint32_t offset, uint32_t value)
 
uint32_t GetHeaderValue (uint32_t offset) const
 
void AllocateData (uint32_t size)
 
void SetMagicNumber ()
 

Protected Attributes

uint8_t * data_
 
uint32_t size_
 
bool owns_data_
 

Detailed Description

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

Member Typedef Documentation

◆ ChunkSizeBits

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

◆ IsLastChunkBits

Constructor & Destructor Documentation

◆ SerializedData() [1/4]

v8::internal::SerializedData::SerializedData ( uint8_t * data,
int size )
inline

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

◆ SerializedData() [2/4]

v8::internal::SerializedData::SerializedData ( )
inline

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

◆ SerializedData() [3/4]

v8::internal::SerializedData::SerializedData ( SerializedData && other)
inline

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

◆ SerializedData() [4/4]

v8::internal::SerializedData::SerializedData ( const SerializedData & )
delete

◆ ~SerializedData()

virtual v8::internal::SerializedData::~SerializedData ( )
inlinevirtual

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

Here is the call graph for this function:

Member Function Documentation

◆ AllocateData()

void v8::internal::SerializedData::AllocateData ( uint32_t size)
protected

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

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

◆ GetHeaderValue()

uint32_t v8::internal::SerializedData::GetHeaderValue ( uint32_t offset) const
inlineprotected

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

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

◆ GetMagicNumber()

uint32_t v8::internal::SerializedData::GetMagicNumber ( ) const
inline

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

Here is the call graph for this function:

◆ operator=()

SerializedData & v8::internal::SerializedData::operator= ( const SerializedData & )
delete

◆ SetHeaderValue()

void v8::internal::SerializedData::SetHeaderValue ( uint32_t offset,
uint32_t value )
inlineprotected

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

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

◆ SetMagicNumber()

void v8::internal::SerializedData::SetMagicNumber ( )
inlineprotected

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

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

Member Data Documentation

◆ data_

uint8_t* v8::internal::SerializedData::data_
protected

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

◆ kMagicNumber

uint32_t v8::internal::SerializedData::kMagicNumber
staticconstexpr
Initial value:

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

◆ kMagicNumberOffset

uint32_t v8::internal::SerializedData::kMagicNumberOffset = 0
staticconstexpr

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

◆ owns_data_

bool v8::internal::SerializedData::owns_data_
protected

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

◆ size_

uint32_t v8::internal::SerializedData::size_
protected

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


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