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

#include <il.h>

Inheritance diagram for dart::BackwardInstructionIterator:
dart::ValueObject

Public Member Functions

 BackwardInstructionIterator (BlockEntryInstr *block_entry)
 
void Advance ()
 
bool Done () const
 
void RemoveCurrentFromGraph ()
 
InstructionCurrent () const
 
- Public Member Functions inherited from dart::ValueObject
 ValueObject ()
 
 ~ValueObject ()
 

Detailed Description

Definition at line 1883 of file il.h.

Constructor & Destructor Documentation

◆ BackwardInstructionIterator()

dart::BackwardInstructionIterator::BackwardInstructionIterator ( BlockEntryInstr block_entry)
inlineexplicit

Definition at line 1885 of file il.h.

1886 : block_entry_(block_entry), current_(block_entry->last_instruction()) {
1887 ASSERT(block_entry_->previous() == nullptr);
1888 }
Instruction * previous() const
Definition: il.h:1087
#define ASSERT(E)

Member Function Documentation

◆ Advance()

void dart::BackwardInstructionIterator::Advance ( )
inline

Definition at line 1890 of file il.h.

1890 {
1891 ASSERT(!Done());
1892 current_ = current_->previous();
1893 }

◆ Current()

Instruction * dart::BackwardInstructionIterator::Current ( ) const
inline

Definition at line 1899 of file il.h.

1899{ return current_; }

◆ Done()

bool dart::BackwardInstructionIterator::Done ( ) const
inline

Definition at line 1895 of file il.h.

1895{ return current_ == block_entry_; }

◆ RemoveCurrentFromGraph()

void dart::BackwardInstructionIterator::RemoveCurrentFromGraph ( )

Definition at line 1371 of file il.cc.

1371 {
1372 current_ = current_->RemoveFromGraph(false); // Set current_ to next.
1373}
Instruction * RemoveFromGraph(bool return_previous=true)
Definition: il.cc:1301

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