Flutter Engine
The Flutter Engine
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
dart::MoveArgumentInstr Class Reference

#include <il.h>

Inheritance diagram for dart::MoveArgumentInstr:
dart::TemplateDefinition< 1, NoThrow > dart::Instruction dart::ZoneAllocated

Public Member Functions

 MoveArgumentInstr (Value *value, Representation representation, Location location)
 
bool is_register_move () const
 
intptr_t sp_relative_index () const
 
Location location () const
 
Locationlocation_slot ()
 
Valuevalue () const
 
virtual bool ComputeCanDeoptimize () const
 
virtual bool HasUnknownSideEffects () const
 
virtual TokenPosition token_pos () const
 
virtual Representation representation () const
 
virtual Representation RequiredInputRepresentation (intptr_t index) const
 
 DECLARE_INSTRUCTION_SERIALIZABLE_FIELDS (MoveArgumentInstr, TemplateDefinition, FIELD_LIST) DECLARE_EXTRA_SERIALIZATION private
 
 DISALLOW_COPY_AND_ASSIGN (MoveArgumentInstr)
 
- Public Member Functions inherited from dart::TemplateDefinition< 1, NoThrow >
 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
 
virtual bool MayThrow () const
 
- Public Member Functions inherited from dart::Instruction
 Instruction (const InstructionSource &source, intptr_t deopt_id=DeoptId::kNone)
 
 Instruction (intptr_t deopt_id=DeoptId::kNone)
 
virtual ~Instruction ()
 
virtual Tag tag () const =0
 
virtual intptr_t statistics_tag () const
 
intptr_t deopt_id () const
 
virtual TokenPosition token_pos () const
 
InstructionSource source () const
 
virtual intptr_t InputCount () const =0
 
virtual ValueInputAt (intptr_t i) const =0
 
void SetInputAt (intptr_t i, Value *value)
 
InputsIterable inputs ()
 
void UnuseAllInputs ()
 
virtual intptr_t ArgumentCount () const
 
ValueArgumentValueAt (intptr_t index) const
 
DefinitionArgumentAt (intptr_t index) const
 
virtual void SetMoveArguments (MoveArgumentsArray *move_arguments)
 
virtual MoveArgumentsArrayGetMoveArguments () const
 
virtual void ReplaceInputsWithMoveArguments (MoveArgumentsArray *move_arguments)
 
bool HasMoveArguments () const
 
void RepairArgumentUsesInEnvironment () const
 
virtual bool ComputeCanDeoptimize () const =0
 
virtual bool ComputeCanDeoptimizeAfterCall () const
 
bool CanDeoptimize () const
 
virtual void Accept (InstructionVisitor *visitor)=0
 
Instructionprevious () const
 
void set_previous (Instruction *instr)
 
Instructionnext () const
 
void set_next (Instruction *instr)
 
void LinkTo (Instruction *next)
 
InstructionRemoveFromGraph (bool return_previous=true)
 
virtual intptr_t SuccessorCount () const
 
virtual BlockEntryInstrSuccessorAt (intptr_t index) const
 
SuccessorsIterable successors () const
 
void Goto (JoinEntryInstr *entry)
 
virtual const char * DebugName () const =0
 
void CheckField (const Field &field) const
 
const char * ToCString () const
 
 DECLARE_INSTRUCTION_TYPE_CHECK (BlockEntryWithInitialDefs, BlockEntryWithInitialDefs) template< typename T > T *Cast()
 
template<typename T >
const TCast () const
 
LocationSummarylocs ()
 
bool HasLocs () const
 
virtual LocationSummaryMakeLocationSummary (Zone *zone, bool is_optimizing) const =0
 
void InitializeLocationSummary (Zone *zone, bool optimizing)
 
virtual void EmitNativeCode (FlowGraphCompiler *compiler)
 
Environmentenv () const
 
void SetEnvironment (Environment *deopt_env)
 
void RemoveEnvironment ()
 
void ReplaceInEnvironment (Definition *current, Definition *replacement)
 
virtual intptr_t NumberOfInputsConsumedBeforeCall () const
 
intptr_t GetPassSpecificId (CompilerPass::Id pass) const
 
void SetPassSpecificId (CompilerPass::Id pass, intptr_t id)
 
bool HasPassSpecificId (CompilerPass::Id pass) const
 
bool HasUnmatchedInputRepresentations () const
 
virtual Representation RequiredInputRepresentation (intptr_t idx) const
 
SpeculativeMode SpeculativeModeOfInputs () const
 
virtual SpeculativeMode SpeculativeModeOfInput (intptr_t index) const
 
virtual Representation representation () const
 
bool WasEliminated () const
 
virtual intptr_t DeoptimizationTarget () const
 
virtual InstructionCanonicalize (FlowGraph *flow_graph)
 
void InsertBefore (Instruction *next)
 
void InsertAfter (Instruction *prev)
 
InstructionAppendInstruction (Instruction *tail)
 
virtual bool AllowsCSE () const
 
virtual bool HasUnknownSideEffects () const =0
 
virtual bool CanCallDart () const
 
virtual bool CanTriggerGC () const
 
virtual BlockEntryInstrGetBlock ()
 
virtual intptr_t inlining_id () const
 
virtual void set_inlining_id (intptr_t value)
 
virtual bool has_inlining_id () const
 
virtual uword Hash () const
 
bool Equals (const Instruction &other) const
 
virtual bool AttributesEqual (const Instruction &other) const
 
void InheritDeoptTarget (Zone *zone, Instruction *other)
 
bool NeedsEnvironment () const
 
virtual bool CanBecomeDeoptimizationTarget () const
 
void InheritDeoptTargetAfter (FlowGraph *flow_graph, Definition *call, Definition *result)
 
virtual bool MayThrow () const =0
 
virtual bool MayHaveVisibleEffect () const
 
virtual bool CanEliminate (const BlockEntryInstr *block) const
 
bool CanEliminate ()
 
bool IsDominatedBy (Instruction *dom)
 
void ClearEnv ()
 
void Unsupported (FlowGraphCompiler *compiler)
 
virtual bool UseSharedSlowPathStub (bool is_optimizing) const
 
Location::Kind RegisterKindForResult () const
 
- Public Member Functions inherited from dart::ZoneAllocated
 ZoneAllocated ()
 
void * operator new (size_t size)
 
void * operator new (size_t size, Zone *zone)
 
void operator delete (void *pointer)
 

Static Public Member Functions

static bool IsRegisterMove (Location loc)
 
- Static Public Member Functions inherited from dart::Instruction
static const ICDataGetICData (const ZoneGrowableArray< const ICData * > &ic_data_array, intptr_t deopt_id, bool is_static_call)
 
static LocationSummaryMakeCallSummary (Zone *zone, const Instruction *instr, LocationSummary *locs=nullptr)
 
static bool SlowPathSharingSupported (bool is_optimizing)
 

Public Attributes

Location location_
 

Additional Inherited Members

- Public Types inherited from dart::TemplateDefinition< 1, NoThrow >
using BaseClass = typename NoCSE< Definition, PureDefinition >::Base
 
- Public Types inherited from dart::Instruction
enum  Tag { FOR_EACH_INSTRUCTION =(DECLARE_TAG) kNumInstructions }
 
enum  SpeculativeMode { kGuardInputs , kNotSpeculative }
 
using InputsIterable = InstructionIndexedPropertyIterable< InputsTrait >
 
using SuccessorsIterable = InstructionIndexedPropertyIterable< SuccessorsTrait >
 
- Static Public Attributes inherited from dart::Instruction
static const intptr_t kInstructionAttrs [kNumInstructions]
 
- Protected Member Functions inherited from dart::Instruction
intptr_t GetDeoptId () const
 
virtual void CopyDeoptIdFrom (const Instruction &instr)
 
void WriteExtraWithoutInputs (FlowGraphSerializer *s)
 
void ReadExtraWithoutInputs (FlowGraphDeserializer *d)
 
- Protected Attributes inherited from dart::TemplateDefinition< 1, NoThrow >
EmbeddedArray< Value *, Ninputs_
 

Detailed Description

Definition at line 3347 of file il.h.

Constructor & Destructor Documentation

◆ MoveArgumentInstr()

dart::MoveArgumentInstr::MoveArgumentInstr ( Value value,
Representation  representation,
Location  location 
)
inlineexplicit

Definition at line 3349 of file il.h.

3352 : representation_(representation),
3353 is_register_move_(IsRegisterMove(location)),
3355 ASSERT(IsSupportedLocation(location));
3356 SetInputAt(0, value);
3357 }
void SetInputAt(intptr_t i, Value *value)
Definition: il.h:1014
static bool IsRegisterMove(Location loc)
Definition: il.h:3424
virtual Representation representation() const
Definition: il.h:3387
Value * value() const
Definition: il.h:3377
Location location() const
Definition: il.h:3374
Location location_
Definition: il.h:3430
#define ASSERT(E)

Member Function Documentation

◆ ComputeCanDeoptimize()

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

Implements dart::Instruction.

Definition at line 3379 of file il.h.

3379{ return false; }

◆ DECLARE_INSTRUCTION_SERIALIZABLE_FIELDS()

dart::MoveArgumentInstr::DECLARE_INSTRUCTION_SERIALIZABLE_FIELDS ( MoveArgumentInstr  ,
TemplateDefinition  ,
FIELD_LIST   
)
inline

Definition at line 3400 of file il.h.

3407 :
3408 static bool IsSupportedLocation(Location loc, bool can_be_fpu_value = true) {
3409#if defined(TARGET_ARCH_IS_32_BIT)
3410 if (loc.IsPairLocation()) {
3411 auto pair_loc = loc.AsPairLocation();
3412 return IsSupportedLocation(pair_loc->At(0), /*can_be_fpu_value=*/false) &&
3413 IsSupportedLocation(pair_loc->At(1), /*can_be_fpu_value=*/false);
3414 }
3415#endif
3416 if (loc.IsStackSlot() || (can_be_fpu_value && loc.IsDoubleStackSlot())) {
3417 return loc.base_reg() == SPREG;
3418 } else if (loc.IsRegister() || (can_be_fpu_value && loc.IsFpuRegister())) {
3419 return true;
3420 }
3421 return false;
3422 }
const Register SPREG

◆ DISALLOW_COPY_AND_ASSIGN()

dart::MoveArgumentInstr::DISALLOW_COPY_AND_ASSIGN ( MoveArgumentInstr  )

◆ HasUnknownSideEffects()

virtual bool dart::MoveArgumentInstr::HasUnknownSideEffects ( ) const
inlinevirtual

Implements dart::Instruction.

Definition at line 3381 of file il.h.

3381{ return false; }

◆ is_register_move()

bool dart::MoveArgumentInstr::is_register_move ( ) const
inline

Definition at line 3361 of file il.h.

3361{ return is_register_move_; }

◆ IsRegisterMove()

static bool dart::MoveArgumentInstr::IsRegisterMove ( Location  loc)
inlinestatic

Definition at line 3424 of file il.h.

3424 {
3425 return loc.IsMachineRegister() ||
3426 (loc.IsPairLocation() &&
3427 loc.AsPairLocation()->At(0).IsMachineRegister());
3428 }

◆ location()

Location dart::MoveArgumentInstr::location ( ) const
inline

Definition at line 3374 of file il.h.

3374{ return location_; }

◆ location_slot()

Location * dart::MoveArgumentInstr::location_slot ( )
inline

Definition at line 3375 of file il.h.

3375{ return &location_; }

◆ representation()

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

Reimplemented from dart::Instruction.

Definition at line 3387 of file il.h.

3387{ return representation_; }

◆ RequiredInputRepresentation()

virtual Representation dart::MoveArgumentInstr::RequiredInputRepresentation ( intptr_t  index) const
inlinevirtual

Reimplemented from dart::Instruction.

Definition at line 3389 of file il.h.

3389 {
3390 ASSERT(index == 0);
3391 return representation();
3392 }

◆ sp_relative_index()

intptr_t dart::MoveArgumentInstr::sp_relative_index ( ) const
inline

Definition at line 3365 of file il.h.

3365 {
3367 Location loc = location();
3368 if (loc.IsPairLocation()) {
3369 loc = loc.AsPairLocation()->At(0);
3370 }
3371 return loc.stack_index();
3372 }
bool is_register_move() const
Definition: il.h:3361

◆ token_pos()

virtual TokenPosition dart::MoveArgumentInstr::token_pos ( ) const
inlinevirtual

Reimplemented from dart::Instruction.

Definition at line 3383 of file il.h.

3383 {
3384 return TokenPosition::kMoveArgument;
3385 }

◆ value()

Value * dart::MoveArgumentInstr::value ( ) const
inline

Definition at line 3377 of file il.h.

3377{ return InputAt(0); }
virtual Value * InputAt(intptr_t i) const
Definition: il.h:2756

Member Data Documentation

◆ location_

Location dart::MoveArgumentInstr::location_

Definition at line 3430 of file il.h.


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