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

#include <wasm-value.h>

Collaboration diagram for v8::internal::wasm::WasmValue:

Public Member Functions

 WasmValue ()
 
 WasmValue (const uint8_t *raw_bytes, CanonicalValueType type)
 
 WasmValue (DirectHandle< Object > ref, CanonicalValueType type)
 
DirectHandle< Objectto_ref () const
 
CanonicalValueType type () const
 
const WasmModulemodule () const
 
bool operator== (const WasmValue &other) const
 
void CopyTo (uint8_t *to) const
 
WasmValue Packed (ValueType packed_type) const
 
template<typename T >
T to () const
 
template<typename T >
T to_unchecked () const
 
std::string to_string () const
 
bool zero_byte_representation ()
 

Static Public Member Functions

static WasmValue ForUintPtr (uintptr_t value)
 

Private Attributes

CanonicalValueType type_
 
uint8_t bit_pattern_ [16]
 
const WasmModulemodule_ = nullptr
 

Detailed Description

Definition at line 47 of file wasm-value.h.

Constructor & Destructor Documentation

◆ WasmValue() [1/3]

v8::internal::wasm::WasmValue::WasmValue ( )
inline

Definition at line 49 of file wasm-value.h.

Here is the caller graph for this function:

◆ WasmValue() [2/3]

v8::internal::wasm::WasmValue::WasmValue ( const uint8_t * raw_bytes,
CanonicalValueType type )
inline

Definition at line 70 of file wasm-value.h.

Here is the call graph for this function:

◆ WasmValue() [3/3]

v8::internal::wasm::WasmValue::WasmValue ( DirectHandle< Object > ref,
CanonicalValueType type )
inline

Definition at line 76 of file wasm-value.h.

Here is the call graph for this function:

Member Function Documentation

◆ CopyTo()

void v8::internal::wasm::WasmValue::CopyTo ( uint8_t * to) const
inline

Definition at line 103 of file wasm-value.h.

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

◆ ForUintPtr()

static WasmValue v8::internal::wasm::WasmValue::ForUintPtr ( uintptr_t value)
inlinestatic

Definition at line 130 of file wasm-value.h.

◆ module()

const WasmModule * v8::internal::wasm::WasmValue::module ( ) const
inline

Definition at line 93 of file wasm-value.h.

◆ operator==()

bool v8::internal::wasm::WasmValue::operator== ( const WasmValue & other) const
inline

Definition at line 96 of file wasm-value.h.

Here is the call graph for this function:

◆ Packed()

WasmValue v8::internal::wasm::WasmValue::Packed ( ValueType packed_type) const
inline

Definition at line 112 of file wasm-value.h.

Here is the call graph for this function:

◆ to()

template<typename T >
T v8::internal::wasm::WasmValue::to ( ) const
inline

◆ to_ref()

DirectHandle< Object > v8::internal::wasm::WasmValue::to_ref ( ) const
inline

Definition at line 85 of file wasm-value.h.

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

◆ to_string()

std::string v8::internal::wasm::WasmValue::to_string ( ) const
inline

Definition at line 136 of file wasm-value.h.

Here is the call graph for this function:

◆ to_unchecked()

template<typename T >
T v8::internal::wasm::WasmValue::to_unchecked ( ) const
inline

◆ type()

CanonicalValueType v8::internal::wasm::WasmValue::type ( ) const
inline

Definition at line 91 of file wasm-value.h.

Here is the caller graph for this function:

◆ zero_byte_representation()

bool v8::internal::wasm::WasmValue::zero_byte_representation ( )
inline

Definition at line 171 of file wasm-value.h.

Here is the call graph for this function:

Member Data Documentation

◆ bit_pattern_

uint8_t v8::internal::wasm::WasmValue::bit_pattern_[16]
private

Definition at line 180 of file wasm-value.h.

◆ module_

const WasmModule* v8::internal::wasm::WasmValue::module_ = nullptr
private

Definition at line 181 of file wasm-value.h.

◆ type_

CanonicalValueType v8::internal::wasm::WasmValue::type_
private

Definition at line 179 of file wasm-value.h.


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