Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
dart::ShiftInt64OpInstr Class Reference

#include <il.h>

Inheritance diagram for dart::ShiftInt64OpInstr:
dart::ShiftIntegerOpInstr dart::BinaryIntegerOpInstr dart::TemplateDefinition< 2, NoThrow, Pure >

Public Member Functions

 ShiftInt64OpInstr (Token::Kind op_kind, Value *left, Value *right, intptr_t deopt_id, Range *right_range=nullptr)
 
virtual SpeculativeMode SpeculativeModeOfInput (intptr_t index) const
 
virtual bool ComputeCanDeoptimize () const
 
virtual bool MayThrow () const
 
virtual Representation representation () const
 
virtual Representation RequiredInputRepresentation (intptr_t idx) const
 
- Public Member Functions inherited from dart::ShiftIntegerOpInstr
 ShiftIntegerOpInstr (Token::Kind op_kind, Value *left, Value *right, intptr_t deopt_id, Range *right_range=nullptr)
 
Rangeshift_range () const
 
void set_shift_range (Range *shift_range)
 
virtual void InferRange (RangeAnalysis *analysis, Range *range)
 
DECLARE_INSTRUCTION_SERIALIZABLE_FIELDS(ShiftIntegerOpInstr, BinaryIntegerOpInstr, FIELD_LIST) protected bool IsShiftCountInRange (int64_t max=kShiftCountLimit) const
 
- Public Member Functions inherited from dart::BinaryIntegerOpInstr
 BinaryIntegerOpInstr (Token::Kind op_kind, Value *left, Value *right, intptr_t deopt_id)
 
Token::Kind op_kind () const
 
Valueleft () const
 
Valueright () const
 
bool can_overflow () const
 
void set_can_overflow (bool overflow)
 
bool is_truncating () const
 
void mark_truncating ()
 
bool RightIsNonZero () const
 
bool RightIsPowerOfTwoConstant () const
 
virtual DefinitionCanonicalize (FlowGraph *flow_graph)
 
virtual bool AttributesEqual (const Instruction &other) const
 
virtual intptr_t DeoptimizationTarget () const
 
- Public Member Functions inherited from dart::TemplateDefinition< 2, NoThrow, Pure >
 TemplateDefinition (intptr_t deopt_id=DeoptId::kNone)
 
 TemplateDefinition (const InstructionSource &source, intptr_t deopt_id=DeoptId::kNone)
 
virtual intptr_t InputCount () const
 
virtual ValueInputAt (intptr_t i) const
 

Additional Inherited Members

- Public Types inherited from dart::TemplateDefinition< 2, NoThrow, Pure >
using BaseClass = typename Pure< Definition, PureDefinition >::Base
 
- Static Public Member Functions inherited from dart::BinaryIntegerOpInstr
static BinaryIntegerOpInstrMake (Representation representation, Token::Kind op_kind, Value *left, Value *right, intptr_t deopt_id, SpeculativeMode speculative_mode=kGuardInputs)
 
static BinaryIntegerOpInstrMake (Representation representation, Token::Kind op_kind, Value *left, Value *right, intptr_t deopt_id, bool can_overflow, bool is_truncating, Range *range, SpeculativeMode speculative_mode=kGuardInputs)
 
- Protected Attributes inherited from dart::TemplateDefinition< 2, NoThrow, Pure >
EmbeddedArray< Value *, Ninputs_
 

Detailed Description

Definition at line 9636 of file il.h.

Constructor & Destructor Documentation

◆ ShiftInt64OpInstr()

dart::ShiftInt64OpInstr::ShiftInt64OpInstr ( Token::Kind  op_kind,
Value left,
Value right,
intptr_t  deopt_id,
Range right_range = nullptr 
)
inline

Definition at line 9638 of file il.h.

9643 : ShiftIntegerOpInstr(op_kind, left, right, deopt_id, right_range) {}
Value * right() const
Definition il.h:9350
Token::Kind op_kind() const
Definition il.h:9348
Value * left() const
Definition il.h:9349
ShiftIntegerOpInstr(Token::Kind op_kind, Value *left, Value *right, intptr_t deopt_id, Range *right_range=nullptr)
Definition il.h:9594

Member Function Documentation

◆ ComputeCanDeoptimize()

virtual bool dart::ShiftInt64OpInstr::ComputeCanDeoptimize ( ) const
inlinevirtual

Definition at line 9648 of file il.h.

9648{ return false; }

◆ MayThrow()

virtual bool dart::ShiftInt64OpInstr::MayThrow ( ) const
inlinevirtual

Reimplemented from dart::TemplateDefinition< 2, NoThrow, Pure >.

Definition at line 9649 of file il.h.

9649{ return !IsShiftCountInRange(); }
DECLARE_INSTRUCTION_SERIALIZABLE_FIELDS(ShiftIntegerOpInstr, BinaryIntegerOpInstr, FIELD_LIST) protected bool IsShiftCountInRange(int64_t max=kShiftCountLimit) const
Definition il.cc:2103

◆ representation()

virtual Representation dart::ShiftInt64OpInstr::representation ( ) const
inlinevirtual

Definition at line 9651 of file il.h.

9651{ return kUnboxedInt64; }

◆ RequiredInputRepresentation()

virtual Representation dart::ShiftInt64OpInstr::RequiredInputRepresentation ( intptr_t  idx) const
inlinevirtual

Definition at line 9653 of file il.h.

9653 {
9654 ASSERT((idx == 0) || (idx == 1));
9655 return kUnboxedInt64;
9656 }
#define ASSERT(E)

◆ SpeculativeModeOfInput()

virtual SpeculativeMode dart::ShiftInt64OpInstr::SpeculativeModeOfInput ( intptr_t  index) const
inlinevirtual

Definition at line 9645 of file il.h.

9645 {
9646 return kNotSpeculative;
9647 }

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