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

#include <local-decl-encoder.h>

Collaboration diagram for v8::internal::wasm::LocalDeclEncoder:

Public Member Functions

 LocalDeclEncoder (Zone *zone, const FunctionSig *s=nullptr)
 
void Prepend (Zone *zone, const uint8_t **start, const uint8_t **end) const
 
size_t Emit (uint8_t *buffer) const
 
uint32_t AddLocals (uint32_t count, ValueType type)
 
size_t Size () const
 
bool has_sig () const
 
const FunctionSigget_sig () const
 
void set_sig (const FunctionSig *s)
 

Private Attributes

const FunctionSigsig
 
ZoneVector< std::pair< uint32_t, ValueType > > local_decls
 
size_t total
 

Detailed Description

Definition at line 22 of file local-decl-encoder.h.

Constructor & Destructor Documentation

◆ LocalDeclEncoder()

v8::internal::wasm::LocalDeclEncoder::LocalDeclEncoder ( Zone * zone,
const FunctionSig * s = nullptr )
inlineexplicit

Definition at line 24 of file local-decl-encoder.h.

Member Function Documentation

◆ AddLocals()

uint32_t v8::internal::wasm::LocalDeclEncoder::AddLocals ( uint32_t count,
ValueType type )

Definition at line 56 of file local-decl-encoder.cc.

Here is the caller graph for this function:

◆ Emit()

size_t v8::internal::wasm::LocalDeclEncoder::Emit ( uint8_t * buffer) const

Definition at line 31 of file local-decl-encoder.cc.

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

◆ get_sig()

const FunctionSig * v8::internal::wasm::LocalDeclEncoder::get_sig ( ) const
inline

Definition at line 40 of file local-decl-encoder.h.

◆ has_sig()

bool v8::internal::wasm::LocalDeclEncoder::has_sig ( ) const
inline

Definition at line 39 of file local-decl-encoder.h.

Here is the caller graph for this function:

◆ Prepend()

void v8::internal::wasm::LocalDeclEncoder::Prepend ( Zone * zone,
const uint8_t ** start,
const uint8_t ** end ) const

Definition at line 17 of file local-decl-encoder.cc.

Here is the call graph for this function:

◆ set_sig()

void v8::internal::wasm::LocalDeclEncoder::set_sig ( const FunctionSig * s)
inline

Definition at line 41 of file local-decl-encoder.h.

Here is the caller graph for this function:

◆ Size()

size_t v8::internal::wasm::LocalDeclEncoder::Size ( ) const

Definition at line 70 of file local-decl-encoder.cc.

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

Member Data Documentation

◆ local_decls

ZoneVector<std::pair<uint32_t, ValueType> > v8::internal::wasm::LocalDeclEncoder::local_decls
private

Definition at line 45 of file local-decl-encoder.h.

◆ sig

const FunctionSig* v8::internal::wasm::LocalDeclEncoder::sig
private

Definition at line 44 of file local-decl-encoder.h.

◆ total

size_t v8::internal::wasm::LocalDeclEncoder::total
private

Definition at line 46 of file local-decl-encoder.h.


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