v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::compiler::turboshaft::OptionalV< T > Class Template Reference

#include <index.h>

Inheritance diagram for v8::internal::compiler::turboshaft::OptionalV< T >:
Collaboration diagram for v8::internal::compiler::turboshaft::OptionalV< T >:

Public Types

using type = T
 

Public Member Functions

constexpr OptionalV ()
 
template<typename U >
requires implicitly_constructible_from<U>
 OptionalV (OptionalV< U > index)
 
template<typename U >
requires implicitly_constructible_from<U>
 OptionalV (V< U > index)
 
constexpr V< Tvalue () const
 
constexpr V< Tvalue_or_invalid () const
 
template<typename U >
requires (std::is_same_v<U, OptionalOpIndex> || std::is_same_v<U, OpIndex>)
 OptionalV (U index)
 
- Public Member Functions inherited from v8::internal::compiler::turboshaft::OptionalOpIndex
constexpr OptionalOpIndex (OpIndex other)
 
uint32_t hash () const
 
constexpr bool has_value () const
 
constexpr OpIndex value () const
 
constexpr OpIndex value_or_invalid () const
 
constexpr OpIndex (uint32_t offset)
 
constexpr OpIndex ()
 
template<typename T , typename C >
 OpIndex (const ConstOrV< T, C > &)
 
constexpr bool valid () const
 

Static Public Member Functions

static OptionalV Nullopt ()
 
template<typename U >
static OptionalV< TCast (OptionalV< U > index)
 
static OptionalV< TCast (OptionalOpIndex index)
 
- Static Public Member Functions inherited from v8::internal::compiler::turboshaft::OptionalOpIndex
static constexpr OptionalOpIndex Nullopt ()
 

Static Public Attributes

static constexpr auto rep = v_traits<type>::rep
 

Static Private Attributes

template<typename U >
static constexpr bool implicitly_constructible_from
 

Additional Inherited Members

- Protected Member Functions inherited from v8::internal::compiler::turboshaft::OpIndex
constexpr OpIndex (uint32_t offset)
 
constexpr OpIndex ()
 
template<typename T , typename C >
 OpIndex (const ConstOrV< T, C > &)
 
constexpr uint32_t id () const
 
uint32_t hash () const
 
uint32_t offset () const
 
constexpr bool valid () const
 
uint32_t DecodeTurbofanNodeId () const
 
bool IsTurbofanNodeId () const
 
constexpr bool operator== (OpIndex other) const
 
constexpr bool operator!= (OpIndex other) const
 
constexpr bool operator< (OpIndex other) const
 
constexpr bool operator> (OpIndex other) const
 
constexpr bool operator<= (OpIndex other) const
 
constexpr bool operator>= (OpIndex other) const
 
- Static Protected Member Functions inherited from v8::internal::compiler::turboshaft::OpIndex
static constexpr OpIndex FromOffset (uint32_t offset)
 
static constexpr OpIndex Invalid ()
 
static OpIndex EncodeTurbofanNodeId (uint32_t id)
 
- Protected Attributes inherited from v8::internal::compiler::turboshaft::OpIndex
uint32_t offset_
 
- Static Protected Attributes inherited from v8::internal::compiler::turboshaft::OpIndex
static constexpr uint32_t kGenerationMaskShift = 1
 
static constexpr uint32_t kGenerationMask = 1 << kGenerationMaskShift
 
static constexpr uint32_t kUnmaskGenerationMask = ~kGenerationMask
 
static constexpr uint32_t kTurbofanNodeIdFlag = 1
 

Detailed Description

template<typename T>
class v8::internal::compiler::turboshaft::OptionalV< T >

Definition at line 653 of file index.h.

Member Typedef Documentation

◆ type

template<typename T >
using v8::internal::compiler::turboshaft::OptionalV< T >::type = T

Definition at line 663 of file index.h.

Constructor & Destructor Documentation

◆ OptionalV() [1/4]

template<typename T >
v8::internal::compiler::turboshaft::OptionalV< T >::OptionalV ( )
inlineconstexpr

Definition at line 665 of file index.h.

Here is the caller graph for this function:

◆ OptionalV() [2/4]

template<typename T >
template<typename U >
requires implicitly_constructible_from<U>
v8::internal::compiler::turboshaft::OptionalV< T >::OptionalV ( OptionalV< U > index)
inline

Definition at line 669 of file index.h.

◆ OptionalV() [3/4]

template<typename T >
template<typename U >
requires implicitly_constructible_from<U>
v8::internal::compiler::turboshaft::OptionalV< T >::OptionalV ( V< U > index)
inline

Definition at line 673 of file index.h.

◆ OptionalV() [4/4]

template<typename T >
template<typename U >
requires (std::is_same_v<U, OptionalOpIndex> || std::is_same_v<U, OpIndex>)
v8::internal::compiler::turboshaft::OptionalV< T >::OptionalV ( U index)
inline

Definition at line 700 of file index.h.

Member Function Documentation

◆ Cast() [1/2]

template<typename T >
static OptionalV< T > v8::internal::compiler::turboshaft::OptionalV< T >::Cast ( OptionalOpIndex index)
inlinestatic

Definition at line 689 of file index.h.

Here is the call graph for this function:

◆ Cast() [2/2]

template<typename T >
template<typename U >
static OptionalV< T > v8::internal::compiler::turboshaft::OptionalV< T >::Cast ( OptionalV< U > index)
inlinestatic

Definition at line 686 of file index.h.

Here is the call graph for this function:

◆ Nullopt()

template<typename T >
static OptionalV v8::internal::compiler::turboshaft::OptionalV< T >::Nullopt ( )
inlinestatic

Definition at line 675 of file index.h.

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

◆ value()

template<typename T >
V< T > v8::internal::compiler::turboshaft::OptionalV< T >::value ( ) const
inlineconstexpr

Definition at line 677 of file index.h.

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

◆ value_or_invalid()

template<typename T >
V< T > v8::internal::compiler::turboshaft::OptionalV< T >::value_or_invalid ( ) const
inlineconstexpr

Definition at line 681 of file index.h.

Here is the call graph for this function:

Member Data Documentation

◆ implicitly_constructible_from

template<typename T >
template<typename U >
bool v8::internal::compiler::turboshaft::OptionalV< T >::implicitly_constructible_from
staticconstexprprivate
Initial value:
=
v_traits<T>::template implicitly_constructible_from<U>::value

Definition at line 659 of file index.h.

◆ rep

template<typename T >
auto v8::internal::compiler::turboshaft::OptionalV< T >::rep = v_traits<type>::rep
staticconstexpr

Definition at line 664 of file index.h.


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