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

#include <operations.h>

Inheritance diagram for v8::internal::compiler::turboshaft::ShiftOp:
Collaboration diagram for v8::internal::compiler::turboshaft::ShiftOp:

Public Types

enum class  Kind : uint8_t {
  kShiftRightArithmeticShiftOutZeros , kShiftRightArithmetic , kShiftRightLogical , kShiftLeft ,
  kRotateRight , kRotateLeft
}
 
- Public Types inherited from v8::internal::compiler::turboshaft::FixedArityOperationT< 2, ShiftOp >
using Base
 
- Public Types inherited from v8::internal::compiler::turboshaft::OperationT< ShiftOp >
using Base
 

Public Member Functions

base::Vector< const RegisterRepresentationoutputs_rep () const
 
base::Vector< const MaybeRegisterRepresentationinputs_rep (ZoneVector< MaybeRegisterRepresentation > &storage) const
 
template<typename WordT = Word>
requires (IsWord<WordT>())
V< WordTleft () const
 
V< Word32right () const
 
bool IsRightShift () const
 
 ShiftOp (V< Word > left, V< Word32 > right, Kind kind, WordRepresentation rep)
 
auto options () const
 
- Public Member Functions inherited from v8::internal::compiler::turboshaft::FixedArityOperationT< 2, ShiftOp >
 FixedArityOperationT (Args... args)
 
V8_INLINE auto ExplodeImpl (Fn fn, Mapper &mapper, std::index_sequence< InputI... >, std::index_sequence< OptionI... >) const
 
V8_INLINE auto Explode (Fn fn, Mapper &mapper) const
 
- Public Member Functions inherited from v8::internal::compiler::turboshaft::OperationT< ShiftOp >
bool IsRequiredWhenUnused () const
 
ShiftOpderived_this ()
 
const ShiftOpderived_this () const
 
base::Vector< OpIndexinputs ()
 
base::Vector< const OpIndexinputs () const
 
V8_INLINE OpIndexinput (size_t i)
 
V8_INLINE V< Anyinput (size_t i) const
 
V8_INLINE V< Tinput (size_t i) const
 
size_t StorageSlotCount () const
 
 OperationT (size_t input_count)
 
 OperationT (ShadowyOpIndexVectorWrapper inputs)
 
bool EqualsForGVN (const Base &other) const
 
bool operator== (const Base &other) const
 
size_t HashWithOptions (const Args &... args) const
 
size_t hash_value (HashingStrategy strategy=HashingStrategy::kDefault) const
 
void PrintInputs (std::ostream &os, const std::string &op_index_prefix) const
 
void PrintOptions (std::ostream &os) const
 
void Validate (const Graph &graph) const
 
- Public Member Functions inherited from v8::internal::compiler::turboshaft::Operation
base::Vector< const OpIndexinputs () const
 
V8_INLINE OpIndex input (size_t i) const
 
size_t StorageSlotCount () const
 
base::Vector< const RegisterRepresentationoutputs_rep () const
 
base::Vector< const MaybeRegisterRepresentationinputs_rep (ZoneVector< MaybeRegisterRepresentation > &storage) const
 
template<class Op >
bool Is () const
 
template<class Op >
underlying_operation_t< Op > & Cast ()
 
template<class Op >
const underlying_operation_t< Op > & Cast () const
 
template<class Op >
const underlying_operation_t< Op > * TryCast () const
 
template<class Op >
underlying_operation_t< Op > * TryCast ()
 
OpEffects Effects () const
 
bool IsBlockTerminator () const
 
bool IsRequiredWhenUnused () const
 
bool IsProtectedLoad () const
 
std::string ToString () const
 
void PrintInputs (std::ostream &os, const std::string &op_index_prefix) const
 
void PrintOptions (std::ostream &os) const
 
bool IsOnlyUserOf (const Operation &value, const Graph &graph) const
 
void Print () const
 

Static Public Member Functions

static bool IsRightShift (Kind kind)
 
static bool AllowsWord64ToWord32Truncation (Kind kind)
 
- Static Public Member Functions inherited from v8::internal::compiler::turboshaft::FixedArityOperationT< 2, ShiftOp >
static ShiftOpNew (Graph *graph, Args... args)
 
- Static Public Member Functions inherited from v8::internal::compiler::turboshaft::OperationT< ShiftOp >
static constexpr OpEffects Effects ()
 
static constexpr bool IsBlockTerminator ()
 
static constexpr std::optional< OpEffectsEffectsIfStatic ()
 
static size_t StorageSlotCount (size_t input_count)
 
static ShiftOpNew (Graph *graph, size_t input_count, Args... args)
 
static ShiftOpNew (Graph *graph, ShadowyOpIndexVectorWrapper inputs, Args... args)
 
- Static Public Member Functions inherited from v8::internal::compiler::turboshaft::Operation
static size_t StorageSlotCount (Opcode opcode, size_t input_count)
 

Public Attributes

Kind kind
 
WordRepresentation rep
 
- Public Attributes inherited from v8::internal::compiler::turboshaft::Operation
const Opcode opcode
 
SaturatedUint8 saturated_use_count
 
const uint16_t input_count
 

Static Public Attributes

static constexpr OpEffects effects = OpEffects()
 
- Static Public Attributes inherited from v8::internal::compiler::turboshaft::FixedArityOperationT< 2, ShiftOp >
static constexpr uint16_t input_count
 
- Static Public Attributes inherited from v8::internal::compiler::turboshaft::OperationT< ShiftOp >
static const Opcode opcode
 

Additional Inherited Members

- Protected Member Functions inherited from v8::internal::compiler::turboshaft::Operation
 Operation (Opcode opcode, size_t input_count)
 
template<class OpmaskT >
 V8_CLANG_NO_SANITIZE ("memory") bool IsOpmask() const
 
 Operation (const Operation &)=delete
 
Operationoperator= (const Operation &)=delete
 

Detailed Description

Definition at line 2008 of file operations.h.

Member Enumeration Documentation

◆ Kind

enum class v8::internal::compiler::turboshaft::ShiftOp::Kind : uint8_t
strong
Enumerator
kShiftRightArithmeticShiftOutZeros 
kShiftRightArithmetic 
kShiftRightLogical 
kShiftLeft 
kRotateRight 
kRotateLeft 

Definition at line 2009 of file operations.h.

Constructor & Destructor Documentation

◆ ShiftOp()

v8::internal::compiler::turboshaft::ShiftOp::ShiftOp ( V< Word > left,
V< Word32 > right,
Kind kind,
WordRepresentation rep )
inline

Definition at line 2069 of file operations.h.

Member Function Documentation

◆ AllowsWord64ToWord32Truncation()

static bool v8::internal::compiler::turboshaft::ShiftOp::AllowsWord64ToWord32Truncation ( Kind kind)
inlinestatic

Definition at line 2056 of file operations.h.

◆ inputs_rep()

base::Vector< const MaybeRegisterRepresentation > v8::internal::compiler::turboshaft::ShiftOp::inputs_rep ( ZoneVector< MaybeRegisterRepresentation > & storage) const
inline

Definition at line 2025 of file operations.h.

Here is the call graph for this function:

◆ IsRightShift() [1/2]

bool v8::internal::compiler::turboshaft::ShiftOp::IsRightShift ( ) const
inline

Definition at line 2040 of file operations.h.

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

◆ IsRightShift() [2/2]

static bool v8::internal::compiler::turboshaft::ShiftOp::IsRightShift ( Kind kind)
inlinestatic

Definition at line 2042 of file operations.h.

◆ left()

template<typename WordT = Word>
requires (IsWord<WordT>())
V< WordT > v8::internal::compiler::turboshaft::ShiftOp::left ( ) const
inline

Definition at line 2034 of file operations.h.

Here is the caller graph for this function:

◆ options()

auto v8::internal::compiler::turboshaft::ShiftOp::options ( ) const
inline

Definition at line 2072 of file operations.h.

◆ outputs_rep()

base::Vector< const RegisterRepresentation > v8::internal::compiler::turboshaft::ShiftOp::outputs_rep ( ) const
inline

Definition at line 2021 of file operations.h.

◆ right()

V< Word32 > v8::internal::compiler::turboshaft::ShiftOp::right ( ) const
inline

Definition at line 2038 of file operations.h.

Here is the caller graph for this function:

Member Data Documentation

◆ effects

OpEffects v8::internal::compiler::turboshaft::ShiftOp::effects = OpEffects()
staticconstexpr

Definition at line 2020 of file operations.h.

◆ kind

Kind v8::internal::compiler::turboshaft::ShiftOp::kind

Definition at line 2017 of file operations.h.

◆ rep

WordRepresentation v8::internal::compiler::turboshaft::ShiftOp::rep

Definition at line 2018 of file operations.h.


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