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

#include <index.h>

Collaboration diagram for v8::internal::compiler::turboshaft::ConstOrV< T, C >:

Public Types

using type = T
 
using constant_type = C
 

Public Member Functions

 ConstOrV (constant_type value)
 
template<typename U >
requires (std::is_constructible_v<V<T>, V<U>>)
 ConstOrV (V< U > index)
 
bool is_constant () const
 
constant_type constant_value () const
 
V< typevalue () const
 
template<typename U >
requires (std::is_same_v<U, OpIndex>)
 ConstOrV (U index)
 

Private Attributes

std::optional< constant_typeconstant_value_
 
V< typevalue_
 

Detailed Description

template<typename T, typename C = typename v_traits<T>::constexpr_type>
class v8::internal::compiler::turboshaft::ConstOrV< T, C >

Definition at line 724 of file index.h.

Member Typedef Documentation

◆ constant_type

template<typename T , typename C = typename v_traits<T>::constexpr_type>
using v8::internal::compiler::turboshaft::ConstOrV< T, C >::constant_type = C

Definition at line 727 of file index.h.

◆ type

template<typename T , typename C = typename v_traits<T>::constexpr_type>
using v8::internal::compiler::turboshaft::ConstOrV< T, C >::type = T

Definition at line 726 of file index.h.

Constructor & Destructor Documentation

◆ ConstOrV() [1/3]

template<typename T , typename C = typename v_traits<T>::constexpr_type>
v8::internal::compiler::turboshaft::ConstOrV< T, C >::ConstOrV ( constant_type value)
inline

Definition at line 729 of file index.h.

◆ ConstOrV() [2/3]

template<typename T , typename C = typename v_traits<T>::constexpr_type>
template<typename U >
requires (std::is_constructible_v<V<T>, V<U>>)
v8::internal::compiler::turboshaft::ConstOrV< T, C >::ConstOrV ( V< U > index)
inline

Definition at line 735 of file index.h.

◆ ConstOrV() [3/3]

template<typename T , typename C = typename v_traits<T>::constexpr_type>
template<typename U >
requires (std::is_same_v<U, OpIndex>)
v8::internal::compiler::turboshaft::ConstOrV< T, C >::ConstOrV ( U index)
inline

Definition at line 755 of file index.h.

Member Function Documentation

◆ constant_value()

template<typename T , typename C = typename v_traits<T>::constexpr_type>
constant_type v8::internal::compiler::turboshaft::ConstOrV< T, C >::constant_value ( ) const
inline

Definition at line 740 of file index.h.

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

◆ is_constant()

template<typename T , typename C = typename v_traits<T>::constexpr_type>
bool v8::internal::compiler::turboshaft::ConstOrV< T, C >::is_constant ( ) const
inline

Definition at line 739 of file index.h.

Here is the caller graph for this function:

◆ value()

template<typename T , typename C = typename v_traits<T>::constexpr_type>
V< type > v8::internal::compiler::turboshaft::ConstOrV< T, C >::value ( ) const
inline

Definition at line 744 of file index.h.

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

Member Data Documentation

◆ constant_value_

template<typename T , typename C = typename v_traits<T>::constexpr_type>
std::optional<constant_type> v8::internal::compiler::turboshaft::ConstOrV< T, C >::constant_value_
private

Definition at line 760 of file index.h.

◆ value_

template<typename T , typename C = typename v_traits<T>::constexpr_type>
V<type> v8::internal::compiler::turboshaft::ConstOrV< T, C >::value_
private

Definition at line 761 of file index.h.


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