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

#include <value-type.h>

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

Public Member Functions

constexpr ValueType AsNonNull () const
 
constexpr ValueType AsNullable (Nullability nullable=kNullable) const
 
constexpr ValueType AsExact (Exactness exact=Exactness::kExact) const
 
ValueType AsExactIfProposalEnabled (Exactness exact=Exactness::kExact) const
 
constexpr ValueType AsNonShared () const
 
constexpr ValueType Unpacked () const
 
constexpr CanonicalValueType Canonicalize (CanonicalTypeIndex index) const
 
constexpr HeapType::Representation heap_representation () const
 
constexpr bool is_reference_to (HeapType::Representation repr) const
 
constexpr bool is_reference_to (GenericKind kind) const
 
constexpr bool operator== (ValueType other) const
 
constexpr HeapType heap_type () const
 
constexpr ModuleTypeIndex ref_index () 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 ValueType Primitive (NumericKind kind)
 
static constexpr ValueType Generic (GenericKind kind, Nullability nullable, bool shared)
 
static constexpr ValueType Ref (ModuleTypeIndex index, bool shared, RefTypeKind kind)
 
static constexpr ValueType Ref (HeapType type)
 
static constexpr ValueType RefNull (ModuleTypeIndex index, bool shared, RefTypeKind kind)
 
static constexpr ValueType RefNull (HeapType type)
 
static constexpr ValueType RefMaybeNull (ModuleTypeIndex index, Nullability nullable, bool shared, RefTypeKind kind)
 
static constexpr ValueType RefMaybeNull (HeapType type, Nullability nullable)
 
static constexpr ValueType FromRawBitField (uint32_t bits)
 
static constexpr ValueType Primitive (ValueKind kind)
 
static ValueType For (MachineType type)
 
- 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 878 of file value-type.h.

Member Function Documentation

◆ AsExact()

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

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

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

◆ AsExactIfProposalEnabled()

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

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

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

◆ AsNonNull()

ValueType v8::internal::wasm::ValueType::AsNonNull ( ) const
inlineconstexpr

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

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

◆ AsNonShared()

ValueType v8::internal::wasm::ValueType::AsNonShared ( ) const
inlineconstexpr

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

Here is the call graph for this function:

◆ AsNullable()

ValueType v8::internal::wasm::ValueType::AsNullable ( Nullability nullable = kNullable) const
inlineconstexpr

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

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

◆ Canonicalize()

CanonicalValueType v8::internal::wasm::ValueType::Canonicalize ( CanonicalTypeIndex index) const
constexpr

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

Here is the call graph for this function:

◆ For()

static ValueType v8::internal::wasm::ValueType::For ( MachineType type)
inlinestatic

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

Here is the call graph for this function:

◆ FromRawBitField()

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

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

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

◆ Generic()

static constexpr ValueType v8::internal::wasm::ValueType::Generic ( GenericKind kind,
Nullability nullable,
bool shared )
inlinestaticconstexpr

Definition at line 883 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::ValueType::heap_representation ( ) const
inlineconstexpr

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

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

◆ heap_type()

HeapType v8::internal::wasm::ValueType::heap_type ( ) const
inlineconstexpr

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

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

◆ is_reference_to() [1/2]

bool v8::internal::wasm::ValueType::is_reference_to ( GenericKind kind) const
inlineconstexpr

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

Here is the call graph for this function:

◆ is_reference_to() [2/2]

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

Definition at line 968 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::ValueType::operator== ( ValueType other) const
inlineconstexpr

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

◆ Primitive() [1/2]

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

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

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

◆ Primitive() [2/2]

static constexpr ValueType v8::internal::wasm::ValueType::Primitive ( ValueKind kind)
inlinestaticconstexpr

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

Here is the call graph for this function:

◆ Ref() [1/2]

static constexpr ValueType v8::internal::wasm::ValueType::Ref ( HeapType type)
inlinestaticconstexpr

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

Here is the call graph for this function:

◆ Ref() [2/2]

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

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

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

◆ ref_index()

ModuleTypeIndex v8::internal::wasm::ValueType::ref_index ( ) const
inlineconstexpr

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

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

◆ RefMaybeNull() [1/2]

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

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

Here is the call graph for this function:

◆ RefMaybeNull() [2/2]

static constexpr ValueType v8::internal::wasm::ValueType::RefMaybeNull ( ModuleTypeIndex index,
Nullability nullable,
bool shared,
RefTypeKind kind )
inlinestaticconstexpr

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

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

◆ RefNull() [1/2]

static constexpr ValueType v8::internal::wasm::ValueType::RefNull ( HeapType type)
inlinestaticconstexpr

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

Here is the call graph for this function:

◆ RefNull() [2/2]

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

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

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

◆ Unpacked()

ValueType v8::internal::wasm::ValueType::Unpacked ( ) const
inlineconstexpr

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

Here is the caller graph for this function:

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