Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::BlockTraversalState Class Reference

Public Member Functions

 BlockTraversalState (BlockEntryInstr *block)
 
bool HasNextSuccessor () const
 
BlockEntryInstrNextSuccessor ()
 
BlockEntryInstrblock () const
 

Detailed Description

Definition at line 325 of file flow_graph.cc.

Constructor & Destructor Documentation

◆ BlockTraversalState()

dart::BlockTraversalState::BlockTraversalState ( BlockEntryInstr block)
inlineexplicit

Definition at line 327 of file flow_graph.cc.

328 : block_(block),
329 next_successor_ix_(block->last_instruction()->SuccessorCount() - 1) {}
Instruction * last_instruction() const
Definition: il.h:1686
BlockEntryInstr * block() const
Definition: flow_graph.cc:337
virtual intptr_t SuccessorCount() const
Definition: il.cc:1977

Member Function Documentation

◆ block()

BlockEntryInstr * dart::BlockTraversalState::block ( ) const
inline

Definition at line 337 of file flow_graph.cc.

337{ return block_; }

◆ HasNextSuccessor()

bool dart::BlockTraversalState::HasNextSuccessor ( ) const
inline

Definition at line 331 of file flow_graph.cc.

331{ return next_successor_ix_ >= 0; }

◆ NextSuccessor()

BlockEntryInstr * dart::BlockTraversalState::NextSuccessor ( )
inline

Definition at line 332 of file flow_graph.cc.

332 {
334 return block_->last_instruction()->SuccessorAt(next_successor_ix_--);
335 }
bool HasNextSuccessor() const
Definition: flow_graph.cc:331
virtual BlockEntryInstr * SuccessorAt(intptr_t index) const
Definition: il.cc:1981
#define ASSERT(E)

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