Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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 >

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

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
 
- Protected Member Functions inherited from dart::BlockEntryWithInitialDefs
void PrintInitialDefinitionsTo (BaseTextBuffer *f) 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 Attributes inherited from dart::TemplateInstruction< 0, NoThrow >
EmbeddedArray< Value *, Ninputs_
 

Detailed Description

Definition at line 2308 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 2310 of file il.h.

2323 try_index,
2324 deopt_id,
2325 /*stack_depth=*/0),
2326 graph_entry_(graph_entry),
2327 predecessor_(nullptr),
2328 catch_handler_types_(Array::ZoneHandle(handler_types.ptr())),
2329 catch_try_index_(catch_try_index),
2330 exception_var_(exception_var),
2331 stacktrace_var_(stacktrace_var),
2332 raw_exception_var_(raw_exception_var),
2333 raw_stacktrace_var_(raw_stacktrace_var),
2334 needs_stacktrace_(needs_stacktrace),
2335 is_generated_(is_generated) {}
intptr_t try_index() const
Definition il.h:1724
intptr_t block_id() const
Definition il.h:1655
BlockEntryWithInitialDefs(intptr_t block_id, intptr_t try_index, intptr_t deopt_id, intptr_t stack_depth)
Definition il.h:1905
const LocalVariable * exception_var() const
Definition il.h:2349
const LocalVariable * raw_stacktrace_var() const
Definition il.h:2353
intptr_t catch_try_index() const
Definition il.h:2363
const LocalVariable * stacktrace_var() const
Definition il.h:2350
bool needs_stacktrace() const
Definition il.h:2357
bool is_generated() const
Definition il.h:2359
const LocalVariable * raw_exception_var() const
Definition il.h:2352
GraphEntryInstr * graph_entry() const
Definition il.h:2347
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 2374 of file il.h.

2374 {
2375 ASSERT(predecessor_ == nullptr);
2376 predecessor_ = predecessor;
2377 }
#define ASSERT(E)

◆ catch_handler_types()

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

Definition at line 2365 of file il.h.

2365{ return catch_handler_types_; }

◆ catch_try_index()

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

Definition at line 2363 of file il.h.

2363{ return catch_try_index_; }

◆ ClearPredecessors()

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

Implements dart::BlockEntryInstr.

Definition at line 2373 of file il.h.

2373{ predecessor_ = nullptr; }

◆ exception_var()

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

Definition at line 2349 of file il.h.

2349{ return exception_var_; }

◆ graph_entry()

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

Definition at line 2347 of file il.h.

2347{ return graph_entry_; }

◆ is_generated()

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

Definition at line 2359 of file il.h.

2359{ return is_generated_; }

◆ needs_stacktrace()

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

Definition at line 2357 of file il.h.

2357{ return needs_stacktrace_; }

◆ PredecessorAt()

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

Implements dart::BlockEntryInstr.

Definition at line 2342 of file il.h.

2342 {
2343 ASSERT((index == 0) && (predecessor_ != nullptr));
2344 return predecessor_;
2345 }

◆ PredecessorCount()

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

Implements dart::BlockEntryInstr.

Definition at line 2339 of file il.h.

2339 {
2340 return (predecessor_ == nullptr) ? 0 : 1;
2341 }

◆ raw_exception_var()

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

Definition at line 2352 of file il.h.

2352{ return raw_exception_var_; }

◆ raw_stacktrace_var()

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

Definition at line 2353 of file il.h.

2353 {
2354 return raw_stacktrace_var_;
2355 }

◆ stacktrace_var()

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

Definition at line 2350 of file il.h.

2350{ return stacktrace_var_; }

Friends And Related Symbol Documentation

◆ BlockEntryInstr

friend class BlockEntryInstr
friend

Definition at line 2371 of file il.h.


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