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

#include <preparse-data.h>

Inheritance diagram for v8::internal::PreparseDataBuilder::ByteData:
Collaboration diagram for v8::internal::PreparseDataBuilder::ByteData:

Public Member Functions

 ByteData ()
 
void Start (std::vector< uint8_t > *buffer)
 
void Finalize (Zone *zone)
 
Handle< PreparseDataCopyToHeap (Isolate *isolate, int children_length)
 
Handle< PreparseDataCopyToLocalHeap (LocalIsolate *isolate, int children_length)
 
ZonePreparseDataCopyToZone (Zone *zone, int children_length)
 
void Reserve (size_t bytes)
 
void Add (uint8_t byte)
 
int length () const
 
void WriteVarint32 (uint32_t data)
 
void WriteUint8 (uint8_t data)
 
void WriteQuarter (uint8_t data)
 
- Public Member Functions inherited from v8::internal::ZoneObject
void * operator new (size_t, Zone *)=delete
 
void * operator new (size_t size, void *ptr)
 
void operator delete (void *, size_t)
 
void operator delete (void *pointer, Zone *zone)=delete
 

Private Attributes

union { 
 
   struct { 
 
      std::vector< uint8_t > *   byte_data_ 
 
      int   index_ 
 
   }  
 
   base::Vector< uint8_t >   zone_byte_data_ 
 
};  
 
uint8_t free_quarters_in_last_byte_
 

Additional Inherited Members

- Static Public Attributes inherited from v8::internal::PreparseByteDataConstants
static constexpr size_t kUint32Size = 4
 
static constexpr size_t kVarint32MinSize = 1
 
static constexpr size_t kVarint32MaxSize = 5
 
static constexpr size_t kUint8Size = 1
 
static constexpr size_t kPlaceholderSize = 0
 
static const size_t kSkippableFunctionMinDataSize
 
static const size_t kSkippableFunctionMaxDataSize
 

Detailed Description

Definition at line 134 of file preparse-data.h.

Constructor & Destructor Documentation

◆ ByteData()

v8::internal::PreparseDataBuilder::ByteData::ByteData ( )
inline

Definition at line 137 of file preparse-data.h.

Member Function Documentation

◆ Add()

void v8::internal::PreparseDataBuilder::ByteData::Add ( uint8_t byte)

Definition at line 157 of file preparse-data.cc.

◆ CopyToHeap()

Handle< PreparseData > v8::internal::PreparseDataBuilder::ByteData::CopyToHeap ( Isolate * isolate,
int children_length )

Definition at line 431 of file preparse-data.cc.

Here is the caller graph for this function:

◆ CopyToLocalHeap()

Handle< PreparseData > v8::internal::PreparseDataBuilder::ByteData::CopyToLocalHeap ( LocalIsolate * isolate,
int children_length )

Definition at line 441 of file preparse-data.cc.

Here is the caller graph for this function:

◆ CopyToZone()

ZonePreparseData * v8::internal::PreparseDataBuilder::ByteData::CopyToZone ( Zone * zone,
int children_length )
inline

Definition at line 234 of file preparse-data-impl.h.

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

◆ Finalize()

void v8::internal::PreparseDataBuilder::ByteData::Finalize ( Zone * zone)

Definition at line 135 of file preparse-data.cc.

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

◆ length()

int v8::internal::PreparseDataBuilder::ByteData::length ( ) const

Definition at line 155 of file preparse-data.cc.

Here is the caller graph for this function:

◆ Reserve()

void v8::internal::PreparseDataBuilder::ByteData::Reserve ( size_t bytes)

Definition at line 146 of file preparse-data.cc.

Here is the caller graph for this function:

◆ Start()

void v8::internal::PreparseDataBuilder::ByteData::Start ( std::vector< uint8_t > * buffer)

Definition at line 125 of file preparse-data.cc.

Here is the caller graph for this function:

◆ WriteQuarter()

void v8::internal::PreparseDataBuilder::ByteData::WriteQuarter ( uint8_t data)

Definition at line 212 of file preparse-data.cc.

Here is the caller graph for this function:

◆ WriteUint8()

void v8::internal::PreparseDataBuilder::ByteData::WriteUint8 ( uint8_t data)

Definition at line 202 of file preparse-data.cc.

Here is the caller graph for this function:

◆ WriteVarint32()

void v8::internal::PreparseDataBuilder::ByteData::WriteVarint32 ( uint32_t data)

Definition at line 183 of file preparse-data.cc.

Here is the caller graph for this function:

Member Data Documentation

◆ [union]

◆ byte_data_

std::vector<uint8_t>* v8::internal::PreparseDataBuilder::ByteData::byte_data_

Definition at line 166 of file preparse-data.h.

◆ free_quarters_in_last_byte_

uint8_t v8::internal::PreparseDataBuilder::ByteData::free_quarters_in_last_byte_
private

Definition at line 173 of file preparse-data.h.

◆ index_

int v8::internal::PreparseDataBuilder::ByteData::index_

Definition at line 167 of file preparse-data.h.

◆ zone_byte_data_

base::Vector<uint8_t> v8::internal::PreparseDataBuilder::ByteData::zone_byte_data_

Definition at line 171 of file preparse-data.h.


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