Lines Matching refs:block
50 static bool IsExitTryBoundaryIntoExitBlock(HBasicBlock* block) { in IsExitTryBoundaryIntoExitBlock() argument
51 if (!block->IsSingleTryBoundary()) { in IsExitTryBoundaryIntoExitBlock()
55 HTryBoundary* boundary = block->GetLastInstruction()->AsTryBoundary(); in IsExitTryBoundaryIntoExitBlock()
56 return block->GetPredecessors().size() == 1u && in IsExitTryBoundaryIntoExitBlock()
85 void GraphChecker::VisitBasicBlock(HBasicBlock* block) { in VisitBasicBlock() argument
86 current_block_ = block; in VisitBasicBlock()
95 sorted_predecessors.assign(block->GetPredecessors().begin(), block->GetPredecessors().end()); in VisitBasicBlock()
104 std::count(p->GetSuccessors().begin(), p->GetSuccessors().end(), block); in VisitBasicBlock()
109 block->GetBlockId(), p_count_in_block_predecessors, p->GetBlockId(), in VisitBasicBlock()
110 p->GetBlockId(), block_count_in_p_successors, block->GetBlockId())); in VisitBasicBlock()
118 sorted_successors.assign(block->GetSuccessors().begin(), block->GetSuccessors().end()); in VisitBasicBlock()
127 std::count(s->GetPredecessors().begin(), s->GetPredecessors().end(), block); in VisitBasicBlock()
132 block->GetBlockId(), s_count_in_block_successors, s->GetBlockId(), in VisitBasicBlock()
133 s->GetBlockId(), block_count_in_s_predecessors, block->GetBlockId())); in VisitBasicBlock()
141 if (GetGraph()->IsInSsaForm() && !block->EndsWithControlFlowInstruction()) { in VisitBasicBlock()
143 block->GetBlockId())); in VisitBasicBlock()
148 if (block->IsExitBlock()) { in VisitBasicBlock()
149 for (HBasicBlock* predecessor : block->GetPredecessors()) { in VisitBasicBlock()
162 for (HInstructionIterator it(block->GetPhis()); !it.Done(); it.Advance()) { in VisitBasicBlock()
169 if (current->GetNext() == nullptr && current != block->GetLastPhi()) { in VisitBasicBlock()
179 for (HInstructionIterator it(block->GetInstructions()); !it.Done(); it.Advance()) { in VisitBasicBlock()
186 if (current->GetNext() == nullptr && current != block->GetLastInstruction()) { in VisitBasicBlock()
197 for (HBasicBlock* successor : block->GetNormalSuccessors()) { in VisitBasicBlock()
201 block->GetBlockId())); in VisitBasicBlock()
204 for (HBasicBlock* successor : block->GetExceptionalSuccessors()) { in VisitBasicBlock()
208 block->GetBlockId())); in VisitBasicBlock()
213 for (HBasicBlock* dominated : block->GetDominatedBlocks()) { in VisitBasicBlock()
214 if (dominated->GetDominator() != block) { in VisitBasicBlock()
216 block->GetBlockId(), in VisitBasicBlock()
225 if (block->GetSuccessors().size() > 1) { in VisitBasicBlock()
226 if (IsExitTryBoundaryIntoExitBlock(block)) { in VisitBasicBlock()
229 for (HBasicBlock* successor : block->GetNormalSuccessors()) { in VisitBasicBlock()
232 block->GetBlockId(), in VisitBasicBlock()
240 if (block->IsCatchBlock()) { in VisitBasicBlock()
241 if (block->IsTryBlock()) { in VisitBasicBlock()
242 const HTryBoundary& try_entry = block->GetTryCatchInformation()->GetTryEntry(); in VisitBasicBlock()
245 block->GetBlockId(), in VisitBasicBlock()
250 if (block->IsLoopHeader()) { in VisitBasicBlock()
252 block->GetBlockId())); in VisitBasicBlock()
255 for (HBasicBlock* predecessor : block->GetPredecessors()) { in VisitBasicBlock()
257 if (block->IsTryBlock()) { in VisitBasicBlock()
258 const HTryBoundary& stored_try_entry = block->GetTryCatchInformation()->GetTryEntry(); in VisitBasicBlock()
262 block->GetBlockId(), in VisitBasicBlock()
269 block->GetBlockId(), in VisitBasicBlock()
279 block->GetBlockId(), in VisitBasicBlock()
287 if (block->IsLoopHeader()) { in VisitBasicBlock()
288 HandleLoop(block); in VisitBasicBlock()
978 HBasicBlock* block = instruction->GetBlock(); in VisitPackedSwitch() local
979 if (instruction->GetNumEntries() + 1u != block->GetSuccessors().size()) { in VisitPackedSwitch()
984 block->GetBlockId(), in VisitPackedSwitch()
986 block->GetSuccessors().size())); in VisitPackedSwitch()
1108 HBasicBlock* block = instruction->GetBlock(); in VisitConstant() local
1109 if (!block->IsEntryBlock()) { in VisitConstant()
1114 block->GetBlockId())); in VisitConstant()