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

#include <snapshot-source-sink.h>

Collaboration diagram for v8::internal::SnapshotByteSource:

Public Member Functions

 SnapshotByteSource (const char *data, int length)
 
 SnapshotByteSource (base::Vector< const uint8_t > payload)
 
 ~SnapshotByteSource ()=default
 
 SnapshotByteSource (const SnapshotByteSource &)=delete
 
SnapshotByteSourceoperator= (const SnapshotByteSource &)=delete
 
bool HasMore ()
 
uint8_t Get ()
 
uint8_t Peek () const
 
void Advance (int by)
 
void CopyRaw (void *to, int number_of_bytes)
 
void CopySlots (Address *dest, int number_of_slots)
 
uint32_t GetUint30 ()
 
uint32_t GetUint32 ()
 
int GetBlob (const uint8_t **data)
 
int position () const
 
void set_position (int position)
 
const uint8_t * data () const
 
int length () const
 

Private Attributes

const uint8_t * data_
 
int length_
 
int position_
 

Detailed Description

Source to read snapshot and builtins files from.

Note: Memory ownership remains with callee.

Definition at line 25 of file snapshot-source-sink.h.

Constructor & Destructor Documentation

◆ SnapshotByteSource() [1/3]

v8::internal::SnapshotByteSource::SnapshotByteSource ( const char * data,
int length )
inline

Definition at line 27 of file snapshot-source-sink.h.

◆ SnapshotByteSource() [2/3]

v8::internal::SnapshotByteSource::SnapshotByteSource ( base::Vector< const uint8_t > payload)
inlineexplicit

Definition at line 32 of file snapshot-source-sink.h.

◆ ~SnapshotByteSource()

v8::internal::SnapshotByteSource::~SnapshotByteSource ( )
default

◆ SnapshotByteSource() [3/3]

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

Member Function Documentation

◆ Advance()

void v8::internal::SnapshotByteSource::Advance ( int by)
inline

Definition at line 51 of file snapshot-source-sink.h.

Here is the caller graph for this function:

◆ CopyRaw()

void v8::internal::SnapshotByteSource::CopyRaw ( void * to,
int number_of_bytes )
inline

Definition at line 53 of file snapshot-source-sink.h.

Here is the caller graph for this function:

◆ CopySlots()

void v8::internal::SnapshotByteSource::CopySlots ( Address * dest,
int number_of_slots )
inline

Definition at line 59 of file snapshot-source-sink.h.

Here is the call graph for this function:

◆ data()

const uint8_t * v8::internal::SnapshotByteSource::data ( ) const
inline

Definition at line 114 of file snapshot-source-sink.h.

Here is the caller graph for this function:

◆ Get()

uint8_t v8::internal::SnapshotByteSource::Get ( )
inline

Definition at line 41 of file snapshot-source-sink.h.

Here is the caller graph for this function:

◆ GetBlob()

int v8::internal::SnapshotByteSource::GetBlob ( const uint8_t ** data)

Definition at line 47 of file snapshot-source-sink.cc.

Here is the call graph for this function:

◆ GetUint30()

uint32_t v8::internal::SnapshotByteSource::GetUint30 ( )
inline

Definition at line 85 of file snapshot-source-sink.h.

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

◆ GetUint32()

uint32_t v8::internal::SnapshotByteSource::GetUint32 ( )
inline

Definition at line 102 of file snapshot-source-sink.h.

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

◆ HasMore()

bool v8::internal::SnapshotByteSource::HasMore ( )
inline

Definition at line 39 of file snapshot-source-sink.h.

◆ length()

int v8::internal::SnapshotByteSource::length ( ) const
inline

Definition at line 115 of file snapshot-source-sink.h.

Here is the caller graph for this function:

◆ operator=()

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

◆ Peek()

uint8_t v8::internal::SnapshotByteSource::Peek ( ) const
inline

Definition at line 46 of file snapshot-source-sink.h.

◆ position()

int v8::internal::SnapshotByteSource::position ( ) const
inline

Definition at line 111 of file snapshot-source-sink.h.

Here is the caller graph for this function:

◆ set_position()

void v8::internal::SnapshotByteSource::set_position ( int position)
inline

Definition at line 112 of file snapshot-source-sink.h.

Here is the call graph for this function:

Member Data Documentation

◆ data_

const uint8_t* v8::internal::SnapshotByteSource::data_
private

Definition at line 118 of file snapshot-source-sink.h.

◆ length_

int v8::internal::SnapshotByteSource::length_
private

Definition at line 119 of file snapshot-source-sink.h.

◆ position_

int v8::internal::SnapshotByteSource::position_
private

Definition at line 120 of file snapshot-source-sink.h.


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