Flutter Engine
The Flutter Engine
Public Types | Public Member Functions | Protected Attributes | Private Member Functions | Friends | List of all members
dart::TemplateDefinition< N, ThrowsTrait, CSETrait > Class Template Reference

#include <il.h>

Inheritance diagram for dart::TemplateDefinition< N, ThrowsTrait, CSETrait >:
dart::Instruction dart::ZoneAllocated

Public Types

using BaseClass = typename CSETrait< 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 >
 

Public Member Functions

 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)
 

Protected Attributes

EmbeddedArray< Value *, Ninputs_
 

Private Member Functions

virtual void RawSetInputAt (intptr_t i, Value *value)
 

Friends

class BranchInstr
 
class IfThenElseInstr
 

Additional Inherited Members

- 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)
 
- 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)
 

Detailed Description

template<intptr_t N, typename ThrowsTrait, template< typename Impure, typename Pure > class CSETrait = NoCSE>
class dart::TemplateDefinition< N, ThrowsTrait, CSETrait >

Definition at line 2745 of file il.h.

Member Typedef Documentation

◆ BaseClass

template<intptr_t N, typename ThrowsTrait , template< typename Impure, typename Pure > class CSETrait = NoCSE>
using dart::TemplateDefinition< N, ThrowsTrait, CSETrait >::BaseClass = typename CSETrait<Definition, PureDefinition>::Base

Definition at line 2747 of file il.h.

Constructor & Destructor Documentation

◆ TemplateDefinition() [1/2]

template<intptr_t N, typename ThrowsTrait , template< typename Impure, typename Pure > class CSETrait = NoCSE>
dart::TemplateDefinition< N, ThrowsTrait, CSETrait >::TemplateDefinition ( intptr_t  deopt_id = DeoptId::kNone)
inlineexplicit

Definition at line 2749 of file il.h.

2750 : BaseClass(deopt_id), inputs_() {}
intptr_t deopt_id() const
Definition: il.h:993
EmbeddedArray< Value *, N > inputs_
Definition: il.h:2762
typename CSETrait< Definition, PureDefinition >::Base BaseClass
Definition: il.h:2747

◆ TemplateDefinition() [2/2]

template<intptr_t N, typename ThrowsTrait , template< typename Impure, typename Pure > class CSETrait = NoCSE>
dart::TemplateDefinition< N, ThrowsTrait, CSETrait >::TemplateDefinition ( const InstructionSource source,
intptr_t  deopt_id = DeoptId::kNone 
)
inline

Definition at line 2751 of file il.h.

InstructionSource source() const
Definition: il.h:1008

Member Function Documentation

◆ InputAt()

template<intptr_t N, typename ThrowsTrait , template< typename Impure, typename Pure > class CSETrait = NoCSE>
virtual Value * dart::TemplateDefinition< N, ThrowsTrait, CSETrait >::InputAt ( intptr_t  i) const
inlinevirtual

Implements dart::Instruction.

Definition at line 2756 of file il.h.

2756{ return inputs_[i]; }

◆ InputCount()

template<intptr_t N, typename ThrowsTrait , template< typename Impure, typename Pure > class CSETrait = NoCSE>
virtual intptr_t dart::TemplateDefinition< N, ThrowsTrait, CSETrait >::InputCount ( ) const
inlinevirtual

Implements dart::Instruction.

Reimplemented in dart::BoxLanesInstr, and dart::SuspendInstr.

Definition at line 2755 of file il.h.

2755{ return N; }
#define N
Definition: beziers.cpp:19

◆ MayThrow()

template<intptr_t N, typename ThrowsTrait , template< typename Impure, typename Pure > class CSETrait = NoCSE>
virtual bool dart::TemplateDefinition< N, ThrowsTrait, CSETrait >::MayThrow ( ) const
inlinevirtual

◆ RawSetInputAt()

template<intptr_t N, typename ThrowsTrait , template< typename Impure, typename Pure > class CSETrait = NoCSE>
virtual void dart::TemplateDefinition< N, ThrowsTrait, CSETrait >::RawSetInputAt ( intptr_t  i,
Value value 
)
inlineprivatevirtual

Implements dart::Instruction.

Definition at line 2768 of file il.h.

2768{ inputs_[i] = value; }
uint8_t value

Friends And Related Function Documentation

◆ BranchInstr

template<intptr_t N, typename ThrowsTrait , template< typename Impure, typename Pure > class CSETrait = NoCSE>
friend class BranchInstr
friend

Definition at line 2765 of file il.h.

◆ IfThenElseInstr

template<intptr_t N, typename ThrowsTrait , template< typename Impure, typename Pure > class CSETrait = NoCSE>
friend class IfThenElseInstr
friend

Definition at line 2766 of file il.h.

Member Data Documentation

◆ inputs_

template<intptr_t N, typename ThrowsTrait , template< typename Impure, typename Pure > class CSETrait = NoCSE>
EmbeddedArray<Value*, N> dart::TemplateDefinition< N, ThrowsTrait, CSETrait >::inputs_
protected

Definition at line 2762 of file il.h.


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