Flutter Engine
The Flutter Engine
Public Member Functions | Private Member Functions | Friends | List of all members
dart::CatchBlockEntryInstr Class Reference

#include <il.h>

Inheritance diagram for dart::CatchBlockEntryInstr:
dart::BlockEntryWithInitialDefs dart::BlockEntryInstr dart::TemplateInstruction< 0, NoThrow > dart::Instruction dart::ZoneAllocated

Public Member Functions

 CatchBlockEntryInstr (bool is_generated, intptr_t block_id, intptr_t try_index, GraphEntryInstr *graph_entry, const Array &handler_types, intptr_t catch_try_index, bool needs_stacktrace, intptr_t deopt_id, const LocalVariable *exception_var, const LocalVariable *stacktrace_var, const LocalVariable *raw_exception_var, const LocalVariable *raw_stacktrace_var)
 
virtual intptr_t PredecessorCount () const
 
virtual BlockEntryInstrPredecessorAt (intptr_t index) const
 
GraphEntryInstrgraph_entry () const
 
const LocalVariableexception_var () const
 
const LocalVariablestacktrace_var () const
 
const LocalVariableraw_exception_var () const
 
const LocalVariableraw_stacktrace_var () const
 
bool needs_stacktrace () const
 
bool is_generated () const
 
intptr_t catch_try_index () const
 
const Arraycatch_handler_types () const
 
- Public Member Functions inherited from dart::BlockEntryWithInitialDefs
 BlockEntryWithInitialDefs (intptr_t block_id, intptr_t try_index, intptr_t deopt_id, intptr_t stack_depth)
 
GrowableArray< Definition * > * initial_definitions ()
 
const GrowableArray< Definition * > * initial_definitions () const
 
virtual BlockEntryWithInitialDefsAsBlockEntryWithInitialDefs ()
 
virtual const BlockEntryWithInitialDefsAsBlockEntryWithInitialDefs () const
 
- Public Member Functions inherited from dart::BlockEntryInstr
virtual intptr_t PredecessorCount () const =0
 
virtual BlockEntryInstrPredecessorAt (intptr_t index) const =0
 
intptr_t preorder_number () const
 
void set_preorder_number (intptr_t number)
 
intptr_t postorder_number () const
 
void set_postorder_number (intptr_t number)
 
intptr_t block_id () const
 
void set_start_pos (intptr_t pos)
 
intptr_t start_pos () const
 
void set_end_pos (intptr_t pos)
 
intptr_t end_pos () const
 
BlockEntryInstrdominator () const
 
BlockEntryInstrImmediateDominator () const
 
const GrowableArray< BlockEntryInstr * > & dominated_blocks ()
 
void AddDominatedBlock (BlockEntryInstr *block)
 
void ClearDominatedBlocks ()
 
bool Dominates (BlockEntryInstr *other) const
 
Instructionlast_instruction () const
 
void set_last_instruction (Instruction *instr)
 
ParallelMoveInstrparallel_move () const
 
bool HasParallelMove () const
 
bool HasNonRedundantParallelMove () const
 
ParallelMoveInstrGetParallelMove ()
 
bool DiscoverBlock (BlockEntryInstr *predecessor, GrowableArray< BlockEntryInstr * > *preorder, GrowableArray< intptr_t > *parent)
 
virtual bool CanBecomeDeoptimizationTarget () const
 
virtual bool ComputeCanDeoptimize () const
 
virtual bool HasUnknownSideEffects () const
 
intptr_t try_index () const
 
void set_try_index (intptr_t index)
 
bool InsideTryBlock () const
 
LoopInfoloop_info () const
 
void set_loop_info (LoopInfo *loop_info)
 
bool IsLoopHeader () const
 
intptr_t NestingDepth () const
 
virtual BlockEntryInstrGetBlock ()
 
virtual TokenPosition token_pos () const
 
void ReplaceAsPredecessorWith (BlockEntryInstr *new_block)
 
void set_block_id (intptr_t block_id)
 
intptr_t stack_depth () const
 
void set_stack_depth (intptr_t s)
 
void ClearAllInstructions ()
 
InstructionsIterable instructions ()
 
- Public Member Functions inherited from dart::TemplateInstruction< 0, NoThrow >
 TemplateInstruction (intptr_t deopt_id=DeoptId::kNone)
 
 TemplateInstruction (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)
 

Private Member Functions

virtual void ClearPredecessors ()
 
virtual void AddPredecessor (BlockEntryInstr *predecessor)
 

Friends

class BlockEntryInstr
 

Additional Inherited Members

- Public Types inherited from dart::TemplateInstruction< 0, NoThrow >
using BaseClass = typename NoCSE< Instruction, PureInstruction >::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::BlockEntryWithInitialDefs
virtual void PrintBlockHeaderTo (BaseTextBuffer *f) const
 
void PrintInitialDefinitionsTo (BaseTextBuffer *f, std::function< void(BaseTextBuffer *f)> callback) const
 
- Protected Member Functions inherited from dart::BlockEntryInstr
 BlockEntryInstr (intptr_t block_id, intptr_t try_index, intptr_t deopt_id, intptr_t stack_depth)
 
bool FindOsrEntryAndRelink (GraphEntryInstr *graph_entry, Instruction *parent, BitVector *block_marks)
 
- 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::TemplateInstruction< 0, NoThrow >
EmbeddedArray< Value *, Ninputs_
 

Detailed Description

Definition at line 2326 of file il.h.

Constructor & Destructor Documentation

◆ CatchBlockEntryInstr()

dart::CatchBlockEntryInstr::CatchBlockEntryInstr ( bool  is_generated,
intptr_t  block_id,
intptr_t  try_index,
GraphEntryInstr graph_entry,
const Array handler_types,
intptr_t  catch_try_index,
bool  needs_stacktrace,
intptr_t  deopt_id,
const LocalVariable exception_var,
const LocalVariable stacktrace_var,
const LocalVariable raw_exception_var,
const LocalVariable raw_stacktrace_var 
)
inline

Definition at line 2328 of file il.h.

2341 try_index,
2342 deopt_id,
2343 /*stack_depth=*/0),
2344 graph_entry_(graph_entry),
2345 predecessor_(nullptr),
2346 catch_handler_types_(Array::ZoneHandle(handler_types.ptr())),
2347 catch_try_index_(catch_try_index),
2348 exception_var_(exception_var),
2349 stacktrace_var_(stacktrace_var),
2350 raw_exception_var_(raw_exception_var),
2351 raw_stacktrace_var_(raw_stacktrace_var),
2352 needs_stacktrace_(needs_stacktrace),
2353 is_generated_(is_generated) {}
intptr_t try_index() const
Definition: il.h:1730
intptr_t block_id() const
Definition: il.h:1661
BlockEntryWithInitialDefs(intptr_t block_id, intptr_t try_index, intptr_t deopt_id, intptr_t stack_depth)
Definition: il.h:1911
const LocalVariable * exception_var() const
Definition: il.h:2367
const LocalVariable * raw_stacktrace_var() const
Definition: il.h:2371
intptr_t catch_try_index() const
Definition: il.h:2381
const LocalVariable * stacktrace_var() const
Definition: il.h:2368
bool needs_stacktrace() const
Definition: il.h:2375
bool is_generated() const
Definition: il.h:2377
const LocalVariable * raw_exception_var() const
Definition: il.h:2370
GraphEntryInstr * graph_entry() const
Definition: il.h:2365
intptr_t deopt_id() const
Definition: il.h:993
static Object & ZoneHandle()
Definition: object.h:419

Member Function Documentation

◆ AddPredecessor()

virtual void dart::CatchBlockEntryInstr::AddPredecessor ( BlockEntryInstr predecessor)
inlineprivatevirtual

Implements dart::BlockEntryInstr.

Definition at line 2392 of file il.h.

2392 {
2393 ASSERT(predecessor_ == nullptr);
2394 predecessor_ = predecessor;
2395 }
#define ASSERT(E)

◆ catch_handler_types()

const Array & dart::CatchBlockEntryInstr::catch_handler_types ( ) const
inline

Definition at line 2383 of file il.h.

2383{ return catch_handler_types_; }

◆ catch_try_index()

intptr_t dart::CatchBlockEntryInstr::catch_try_index ( ) const
inline

Definition at line 2381 of file il.h.

2381{ return catch_try_index_; }

◆ ClearPredecessors()

virtual void dart::CatchBlockEntryInstr::ClearPredecessors ( )
inlineprivatevirtual

Implements dart::BlockEntryInstr.

Definition at line 2391 of file il.h.

2391{ predecessor_ = nullptr; }

◆ exception_var()

const LocalVariable * dart::CatchBlockEntryInstr::exception_var ( ) const
inline

Definition at line 2367 of file il.h.

2367{ return exception_var_; }

◆ graph_entry()

GraphEntryInstr * dart::CatchBlockEntryInstr::graph_entry ( ) const
inline

Definition at line 2365 of file il.h.

2365{ return graph_entry_; }

◆ is_generated()

bool dart::CatchBlockEntryInstr::is_generated ( ) const
inline

Definition at line 2377 of file il.h.

2377{ return is_generated_; }

◆ needs_stacktrace()

bool dart::CatchBlockEntryInstr::needs_stacktrace ( ) const
inline

Definition at line 2375 of file il.h.

2375{ return needs_stacktrace_; }

◆ PredecessorAt()

virtual BlockEntryInstr * dart::CatchBlockEntryInstr::PredecessorAt ( intptr_t  index) const
inlinevirtual

Implements dart::BlockEntryInstr.

Definition at line 2360 of file il.h.

2360 {
2361 ASSERT((index == 0) && (predecessor_ != nullptr));
2362 return predecessor_;
2363 }

◆ PredecessorCount()

virtual intptr_t dart::CatchBlockEntryInstr::PredecessorCount ( ) const
inlinevirtual

Implements dart::BlockEntryInstr.

Definition at line 2357 of file il.h.

2357 {
2358 return (predecessor_ == nullptr) ? 0 : 1;
2359 }

◆ raw_exception_var()

const LocalVariable * dart::CatchBlockEntryInstr::raw_exception_var ( ) const
inline

Definition at line 2370 of file il.h.

2370{ return raw_exception_var_; }

◆ raw_stacktrace_var()

const LocalVariable * dart::CatchBlockEntryInstr::raw_stacktrace_var ( ) const
inline

Definition at line 2371 of file il.h.

2371 {
2372 return raw_stacktrace_var_;
2373 }

◆ stacktrace_var()

const LocalVariable * dart::CatchBlockEntryInstr::stacktrace_var ( ) const
inline

Definition at line 2368 of file il.h.

2368{ return stacktrace_var_; }

Friends And Related Function Documentation

◆ BlockEntryInstr

friend class BlockEntryInstr
friend

Definition at line 2389 of file il.h.


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