Flutter Engine
The Flutter Engine
Classes | Public Types | Public Member Functions | List of all members
dart::PhiPlaceMoves Class Reference
Inheritance diagram for dart::PhiPlaceMoves:
dart::ZoneAllocated

Classes

class  Move
 

Public Types

typedef const ZoneGrowableArray< Move > * MovesList
 

Public Member Functions

void CreateOutgoingMove (Zone *zone, BlockEntryInstr *block, intptr_t from, intptr_t to)
 
MovesList GetOutgoingMoves (BlockEntryInstr *block) const
 
- Public Member Functions inherited from dart::ZoneAllocated
 ZoneAllocated ()
 
void * operator new (size_t size)
 
void * operator new (size_t size, Zone *zone)
 
void operator delete (void *pointer)
 

Detailed Description

Definition at line 692 of file redundancy_elimination.cc.

Member Typedef Documentation

◆ MovesList

Definition at line 722 of file redundancy_elimination.cc.

Member Function Documentation

◆ CreateOutgoingMove()

void dart::PhiPlaceMoves::CreateOutgoingMove ( Zone zone,
BlockEntryInstr block,
intptr_t  from,
intptr_t  to 
)
inline

Definition at line 696 of file redundancy_elimination.cc.

699 {
700 const intptr_t block_num = block->preorder_number();
701 moves_.EnsureLength(block_num + 1, nullptr);
702
703 if (moves_[block_num] == nullptr) {
704 moves_[block_num] = new (zone) ZoneGrowableArray<Move>(5);
705 }
706
707 moves_[block_num]->Add(Move(from, to));
708 }

◆ GetOutgoingMoves()

MovesList dart::PhiPlaceMoves::GetOutgoingMoves ( BlockEntryInstr block) const
inline

Definition at line 724 of file redundancy_elimination.cc.

724 {
725 const intptr_t block_num = block->preorder_number();
726 return (block_num < moves_.length()) ? moves_[block_num] : nullptr;
727 }

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