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

#include <il.h>

Inheritance diagram for dart::PhiIterator:
dart::ValueObject

Public Member Functions

 PhiIterator (JoinEntryInstr *join)
 
void Advance ()
 
bool Done () const
 
PhiInstrCurrent () const
 
void RemoveCurrentFromGraph ()
 
- Public Member Functions inherited from dart::ValueObject
 ValueObject ()
 
 ~ValueObject ()
 

Detailed Description

Definition at line 2112 of file il.h.

Constructor & Destructor Documentation

◆ PhiIterator()

dart::PhiIterator::PhiIterator ( JoinEntryInstr join)
inlineexplicit

Definition at line 2114 of file il.h.

2114: phis_(join->phis()), index_(0) {}
static SkString join(const CommandLineFlags::StringArray &)
Definition: skpbench.cpp:741

Member Function Documentation

◆ Advance()

void dart::PhiIterator::Advance ( )
inline

Definition at line 2116 of file il.h.

2116 {
2117 ASSERT(!Done());
2118 index_++;
2119 }
bool Done() const
Definition: il.h:2121
#define ASSERT(E)

◆ Current()

PhiInstr * dart::PhiIterator::Current ( ) const
inline

Definition at line 2125 of file il.h.

2125{ return (*phis_)[index_]; }

◆ Done()

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

Definition at line 2121 of file il.h.

2121 {
2122 return (phis_ == nullptr) || (index_ >= phis_->length());
2123 }

◆ RemoveCurrentFromGraph()

void dart::PhiIterator::RemoveCurrentFromGraph ( )

Definition at line 6725 of file il.cc.

6725 {
6727 (*phis_)[index_] = phis_->Last();
6728 phis_->RemoveLast();
6729 --index_;
6730}
void UnuseAllInputs()
Definition: il.cc:1534
PhiInstr * Current() const
Definition: il.h:2125

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