Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::TemplateLoadField< N > Class Template Reference

#include <il.h>

Inheritance diagram for dart::TemplateLoadField< N >:
dart::TemplateDefinition< N, Throws > dart::Instruction dart::ZoneAllocated

Public Member Functions

 TemplateLoadField (const InstructionSource &source, bool calls_initializer=false, intptr_t deopt_id=DeoptId::kNone, const Field *field=nullptr)
 
virtual TokenPosition token_pos () const
 
bool calls_initializer () const
 
void set_calls_initializer (bool value)
 
bool throw_exception_on_initialization () const
 
virtual bool UseSharedSlowPathStub (bool is_optimizing) const
 
virtual intptr_t DeoptimizationTarget () const
 
virtual bool ComputeCanDeoptimize () const
 
virtual bool ComputeCanDeoptimizeAfterCall () const
 
virtual intptr_t NumberOfInputsConsumedBeforeCall () const
 
virtual bool HasUnknownSideEffects () const
 
virtual bool CanCallDart () const
 
virtual bool CanTriggerGC () const
 
virtual bool MayThrow () const
 
- Public Member Functions inherited from dart::TemplateDefinition< N, Throws >
 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)
 

Additional Inherited Members

- Public Types inherited from dart::TemplateDefinition< N, Throws >
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 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)
 
- Protected Attributes inherited from dart::TemplateDefinition< N, Throws >
EmbeddedArray< Value *, Ninputs_
 

Detailed Description

template<intptr_t N>
class dart::TemplateLoadField< N >

Definition at line 6605 of file il.h.

Constructor & Destructor Documentation

◆ TemplateLoadField()

template<intptr_t N>
dart::TemplateLoadField< N >::TemplateLoadField ( const InstructionSource source,
bool  calls_initializer = false,
intptr_t  deopt_id = DeoptId::kNone,
const Field field = nullptr 
)
inline

Definition at line 6609 of file il.h.

6613 : Base(source, deopt_id),
6614 token_pos_(source.token_pos),
6615 throw_exception_on_initialization_(
6616 field != nullptr && !field->has_initializer() && field->is_late()),
6617 calls_initializer_(calls_initializer) {
6618 ASSERT(!calls_initializer || field != nullptr);
6620 }
static constexpr intptr_t kNone
Definition: deopt_id.h:27
InstructionSource source() const
Definition: il.h:1008
intptr_t deopt_id() const
Definition: il.h:993
bool calls_initializer() const
Definition: il.h:6623
#define ASSERT(E)
const TokenPosition token_pos

Member Function Documentation

◆ calls_initializer()

template<intptr_t N>
bool dart::TemplateLoadField< N >::calls_initializer ( ) const
inline

Definition at line 6623 of file il.h.

6623{ return calls_initializer_; }

◆ CanCallDart()

template<intptr_t N>
virtual bool dart::TemplateLoadField< N >::CanCallDart ( ) const
inlinevirtual

Reimplemented from dart::Instruction.

Definition at line 6648 of file il.h.

6648 {
6649 // The slow path (running the field initializer) always calls one of a
6650 // specific set of stubs. For those stubs that do not simply call the
6651 // runtime, the GC recognizes their frames and restores write barriers
6652 // automatically (see Thread::RestoreWriteBarrierInvariant).
6653 return false;
6654 }

◆ CanTriggerGC()

template<intptr_t N>
virtual bool dart::TemplateLoadField< N >::CanTriggerGC ( ) const
inlinevirtual

Reimplemented from dart::Instruction.

Reimplemented in dart::LoadFieldInstr.

Definition at line 6655 of file il.h.

6655{ return calls_initializer(); }

◆ ComputeCanDeoptimize()

template<intptr_t N>
virtual bool dart::TemplateLoadField< N >::ComputeCanDeoptimize ( ) const
inlinevirtual

Implements dart::Instruction.

Definition at line 6636 of file il.h.

6636{ return false; }

◆ ComputeCanDeoptimizeAfterCall()

template<intptr_t N>
virtual bool dart::TemplateLoadField< N >::ComputeCanDeoptimizeAfterCall ( ) const
inlinevirtual

Reimplemented from dart::Instruction.

Definition at line 6637 of file il.h.

6637 {
6639 }
bool is_aot() const
static CompilerState & Current()

◆ DeoptimizationTarget()

template<intptr_t N>
virtual intptr_t dart::TemplateLoadField< N >::DeoptimizationTarget ( ) const
inlinevirtual

Reimplemented from dart::Instruction.

Definition at line 6635 of file il.h.

6635{ return Base::GetDeoptId(); }
intptr_t GetDeoptId() const
Definition: il.h:1409

◆ HasUnknownSideEffects()

template<intptr_t N>
virtual bool dart::TemplateLoadField< N >::HasUnknownSideEffects ( ) const
inlinevirtual

Implements dart::Instruction.

Definition at line 6644 of file il.h.

6644 {
6646 }
bool throw_exception_on_initialization() const
Definition: il.h:6626

◆ MayThrow()

template<intptr_t N>
virtual bool dart::TemplateLoadField< N >::MayThrow ( ) const
inlinevirtual

Reimplemented from dart::TemplateDefinition< N, Throws >.

Definition at line 6656 of file il.h.

6656{ return calls_initializer(); }

◆ NumberOfInputsConsumedBeforeCall()

template<intptr_t N>
virtual intptr_t dart::TemplateLoadField< N >::NumberOfInputsConsumedBeforeCall ( ) const
inlinevirtual

Reimplemented from dart::Instruction.

Definition at line 6640 of file il.h.

6640 {
6641 return Base::InputCount();
6642 }
virtual intptr_t InputCount() const
Definition: il.h:2755

◆ set_calls_initializer()

template<intptr_t N>
void dart::TemplateLoadField< N >::set_calls_initializer ( bool  value)
inline

Definition at line 6624 of file il.h.

6624{ calls_initializer_ = value; }
uint8_t value

◆ throw_exception_on_initialization()

template<intptr_t N>
bool dart::TemplateLoadField< N >::throw_exception_on_initialization ( ) const
inline

Definition at line 6626 of file il.h.

6626 {
6627 return throw_exception_on_initialization_;
6628 }

◆ token_pos()

template<intptr_t N>
virtual TokenPosition dart::TemplateLoadField< N >::token_pos ( ) const
inlinevirtual

Reimplemented from dart::Instruction.

Definition at line 6622 of file il.h.

6622{ return token_pos_; }

◆ UseSharedSlowPathStub()

template<intptr_t N>
virtual bool dart::TemplateLoadField< N >::UseSharedSlowPathStub ( bool  is_optimizing) const
inlinevirtual

Reimplemented from dart::Instruction.

Definition at line 6631 of file il.h.

6631 {
6632 return Base::SlowPathSharingSupported(is_optimizing);
6633 }
static bool SlowPathSharingSupported(bool is_optimizing)
Definition: il.h:1368

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