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

#include <value-type.h>

Inheritance diagram for v8::internal::wasm::CanonicalValueType:
Collaboration diagram for v8::internal::wasm::CanonicalValueType:

Public Member Functions

constexpr CanonicalValueType AsExact (Exactness exact=Exactness::kExact) const
 
CanonicalValueType AsExactIfProposalEnabled (Exactness exact=Exactness::kExact) const
 
constexpr CanonicalTypeIndex ref_index () const
 
constexpr bool operator== (CanonicalValueType other) const
 
constexpr bool IsFunctionType () const
 
constexpr HeapType::Representation heap_representation () const
 
constexpr HeapType::Representation heap_representation_non_shared () const
 
constexpr bool is_reference_to (HeapType::Representation repr) const
 
- Public Member Functions inherited from v8::internal::wasm::ValueTypeBase
constexpr ValueTypeBase ()
 
void Populate (bool shared, RefTypeKind kind)
 
constexpr TypeKind type_kind () const
 
constexpr bool has_index () const
 
constexpr bool is_sentinel () const
 
constexpr bool is_numeric () const
 
constexpr bool is_abstract_ref () const
 
constexpr bool is_ref () const
 
constexpr bool is_generic () const
 
constexpr Nullability nullability () const
 
constexpr bool is_nullable () const
 
constexpr bool is_non_nullable () const
 
constexpr Exactness exactness () const
 
constexpr bool is_exact () const
 
constexpr bool is_shared () const
 
constexpr RefTypeKind ref_type_kind () const
 
constexpr StandardType standard_type () const
 
constexpr NumericKind numeric_kind () const
 
constexpr GenericKind generic_kind () const
 
constexpr bool is_bottom () const
 
constexpr bool is_top () const
 
constexpr bool is_void () const
 
constexpr bool is_string_view () const
 
constexpr bool is_packed () const
 
constexpr bool is_reference_to (GenericKind type) const
 
constexpr bool is_defaultable () const
 
constexpr bool is_uninhabited () const
 
constexpr bool use_wasm_null () const
 
constexpr int value_kind_size_log2 () const
 
constexpr int value_kind_size () const
 
constexpr int value_kind_full_size () const
 
constexpr MachineType machine_type () const
 
constexpr MachineRepresentation machine_representation () const
 
ValueTypeCode value_type_code () const
 
constexpr bool encoding_needs_heap_type () const
 
constexpr bool encoding_needs_shared () const
 
constexpr bool encoding_needs_exact () const
 
V8_EXPORT_PRIVATE ValueTypeCode value_type_code_numeric () const
 
V8_EXPORT_PRIVATE ValueTypeCode value_type_code_generic () const
 
constexpr char short_name () const
 
V8_EXPORT_PRIVATE std::string generic_heaptype_name () const
 
V8_EXPORT_PRIVATE std::string name () const
 
constexpr bool is_valid () const
 
constexpr uint32_t raw_bit_field () const
 
size_t hash_value () const
 
constexpr bool is_reference () const
 
constexpr bool is_object_reference () const
 
constexpr ValueKind kind () const
 
constexpr uint32_t raw_heap_representation (bool distinguish_shared) const
 

Static Public Member Functions

static constexpr CanonicalValueType Primitive (NumericKind kind)
 
static constexpr CanonicalValueType Ref (CanonicalTypeIndex index, bool shared, RefTypeKind kind)
 
static constexpr CanonicalValueType RefNull (CanonicalTypeIndex index, bool shared, RefTypeKind kind)
 
static constexpr CanonicalValueType RefMaybeNull (CanonicalValueType type, Nullability nullable)
 
static constexpr CanonicalValueType FromRawBitField (uint32_t bits)
 
- Static Public Member Functions inherited from v8::internal::wasm::ValueTypeBase
static constexpr ValueTypeBase Primitive (ValueKind kind)
 

Additional Inherited Members

- Static Public Attributes inherited from v8::internal::wasm::ValueTypeBase
static const int kNumIndexBits = value_type_impl::PayloadField::kSize
 
static const int kLastUsedBit = value_type_impl::PayloadField::kLastUsedBit
 
static const uint32_t kIsRefBit = value_type_impl::IsRefField::kMask
 
static const uint32_t kIsNullableBit
 
static const uint32_t kHasIndexBit
 
static const uint32_t kRefKindBits = value_type_impl::RefTypeKindField::kMask
 
static const uint32_t kRefKindShift
 
static const uint32_t kIndexBits = value_type_impl::PayloadField::kMask
 
static const uint32_t kIndexShift = value_type_impl::PayloadField::kShift
 
- Protected Member Functions inherited from v8::internal::wasm::ValueTypeBase
constexpr ValueTypeBase (uint32_t bit_field)
 
constexpr ValueTypeBase (NumericKind kind)
 
constexpr ValueTypeBase (GenericKind kind, Nullability nullable, bool is_shared)
 
constexpr ValueTypeBase (TypeIndex index, Nullability nullable, Exactness exact, bool shared, RefTypeKind ref_type_kind)
 
constexpr TypeIndex raw_index () const
 
- Protected Attributes inherited from v8::internal::wasm::ValueTypeBase
uint32_t bit_field_
 

Detailed Description

Definition at line 1013 of file value-type.h.

Member Function Documentation

◆ AsExact()

CanonicalValueType v8::internal::wasm::CanonicalValueType::AsExact ( Exactness exact = Exactness::kExact) const
inlineconstexpr

Definition at line 1041 of file value-type.h.

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

◆ AsExactIfProposalEnabled()

CanonicalValueType v8::internal::wasm::CanonicalValueType::AsExactIfProposalEnabled ( Exactness exact = Exactness::kExact) const
inline

Definition at line 1050 of file value-type.h.

Here is the call graph for this function:

◆ FromRawBitField()

static constexpr CanonicalValueType v8::internal::wasm::CanonicalValueType::FromRawBitField ( uint32_t bits)
inlinestaticconstexpr

Definition at line 1037 of file value-type.h.

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

◆ heap_representation()

HeapType::Representation v8::internal::wasm::CanonicalValueType::heap_representation ( ) const
inlineconstexpr

Definition at line 1069 of file value-type.h.

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

◆ heap_representation_non_shared()

HeapType::Representation v8::internal::wasm::CanonicalValueType::heap_representation_non_shared ( ) const
inlineconstexpr

Definition at line 1074 of file value-type.h.

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

◆ is_reference_to()

bool v8::internal::wasm::CanonicalValueType::is_reference_to ( HeapType::Representation repr) const
inlineconstexpr

Definition at line 1080 of file value-type.h.

Here is the call graph for this function:

◆ IsFunctionType()

bool v8::internal::wasm::CanonicalValueType::IsFunctionType ( ) const
inlineconstexpr

Definition at line 1064 of file value-type.h.

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

◆ operator==()

bool v8::internal::wasm::CanonicalValueType::operator== ( CanonicalValueType other) const
inlineconstexpr

Definition at line 1060 of file value-type.h.

◆ Primitive()

static constexpr CanonicalValueType v8::internal::wasm::CanonicalValueType::Primitive ( NumericKind kind)
inlinestaticconstexpr

Definition at line 1015 of file value-type.h.

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

◆ Ref()

static constexpr CanonicalValueType v8::internal::wasm::CanonicalValueType::Ref ( CanonicalTypeIndex index,
bool shared,
RefTypeKind kind )
inlinestaticconstexpr

Definition at line 1018 of file value-type.h.

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

◆ ref_index()

CanonicalTypeIndex v8::internal::wasm::CanonicalValueType::ref_index ( ) const
inlineconstexpr

Definition at line 1056 of file value-type.h.

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

◆ RefMaybeNull()

static constexpr CanonicalValueType v8::internal::wasm::CanonicalValueType::RefMaybeNull ( CanonicalValueType type,
Nullability nullable )
inlinestaticconstexpr

Definition at line 1030 of file value-type.h.

Here is the call graph for this function:

◆ RefNull()

static constexpr CanonicalValueType v8::internal::wasm::CanonicalValueType::RefNull ( CanonicalTypeIndex index,
bool shared,
RefTypeKind kind )
inlinestaticconstexpr

Definition at line 1023 of file value-type.h.

Here is the call graph for this function:

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