Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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 330 of file flow_graph.cc.

Constructor & Destructor Documentation

◆ BlockTraversalState()

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

Definition at line 332 of file flow_graph.cc.

333 : block_(block),
334 next_successor_ix_(block->last_instruction()->SuccessorCount() - 1) {}
Instruction * last_instruction() const
Definition il.h:1680
BlockEntryInstr * block() const
virtual intptr_t SuccessorCount() const
Definition il.cc:1968

Member Function Documentation

◆ block()

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

Definition at line 342 of file flow_graph.cc.

342{ return block_; }

◆ HasNextSuccessor()

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

Definition at line 336 of file flow_graph.cc.

336{ return next_successor_ix_ >= 0; }

◆ NextSuccessor()

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

Definition at line 337 of file flow_graph.cc.

337 {
339 return block_->last_instruction()->SuccessorAt(next_successor_ix_--);
340 }
bool HasNextSuccessor() const
virtual BlockEntryInstr * SuccessorAt(intptr_t index) const
Definition il.cc:1972
#define ASSERT(E)

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