Flutter Engine
The Flutter Engine
Static Public Member Functions | List of all members
dart::CalleeGraphValidator Class Reference
Inheritance diagram for dart::CalleeGraphValidator:
dart::AllStatic

Static Public Member Functions

static void Validate (FlowGraph *callee_graph)
 

Detailed Description

Definition at line 125 of file inliner.cc.

Member Function Documentation

◆ Validate()

static void dart::CalleeGraphValidator::Validate ( FlowGraph callee_graph)
inlinestatic

Definition at line 127 of file inliner.cc.

127 {
128#ifdef DEBUG
129 for (BlockIterator block_it = callee_graph->reverse_postorder_iterator();
130 !block_it.Done(); block_it.Advance()) {
131 BlockEntryInstr* entry = block_it.Current();
132
133 for (ForwardInstructionIterator it(entry); !it.Done(); it.Advance()) {
134 Instruction* current = it.Current();
135 if (current->IsBranch()) {
136 current = current->AsBranch()->comparison();
137 }
138 // The following instructions are not safe to inline, since they make
139 // assumptions about the frame layout.
140 ASSERT(!current->IsTailCall());
141 ASSERT(!current->IsLoadIndexedUnsafe());
142 ASSERT(!current->IsStoreIndexedUnsafe());
143 }
144 }
145#endif // DEBUG
146 }
#define ASSERT(E)

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