• Home
  • Raw
  • Download

Lines Matching refs:block

45 static bool IsExitTryBoundaryIntoExitBlock(HBasicBlock* block) {  in IsExitTryBoundaryIntoExitBlock()  argument
46 if (!block->IsSingleTryBoundary()) { in IsExitTryBoundaryIntoExitBlock()
50 HTryBoundary* boundary = block->GetLastInstruction()->AsTryBoundary(); in IsExitTryBoundaryIntoExitBlock()
51 return block->GetPredecessors().size() == 1u && in IsExitTryBoundaryIntoExitBlock()
56 void GraphChecker::VisitBasicBlock(HBasicBlock* block) { in VisitBasicBlock() argument
57 current_block_ = block; in VisitBasicBlock()
66 sorted_predecessors.assign(block->GetPredecessors().begin(), block->GetPredecessors().end()); in VisitBasicBlock()
75 std::count(p->GetSuccessors().begin(), p->GetSuccessors().end(), block); in VisitBasicBlock()
80 block->GetBlockId(), p_count_in_block_predecessors, p->GetBlockId(), in VisitBasicBlock()
81 p->GetBlockId(), block_count_in_p_successors, block->GetBlockId())); in VisitBasicBlock()
89 sorted_successors.assign(block->GetSuccessors().begin(), block->GetSuccessors().end()); in VisitBasicBlock()
98 std::count(s->GetPredecessors().begin(), s->GetPredecessors().end(), block); in VisitBasicBlock()
103 block->GetBlockId(), s_count_in_block_successors, s->GetBlockId(), in VisitBasicBlock()
104 s->GetBlockId(), block_count_in_s_predecessors, block->GetBlockId())); in VisitBasicBlock()
112 if (GetGraph()->IsInSsaForm() && !block->EndsWithControlFlowInstruction()) { in VisitBasicBlock()
114 block->GetBlockId())); in VisitBasicBlock()
119 if (block->IsExitBlock()) { in VisitBasicBlock()
120 for (HBasicBlock* predecessor : block->GetPredecessors()) { in VisitBasicBlock()
133 for (HInstructionIterator it(block->GetPhis()); !it.Done(); it.Advance()) { in VisitBasicBlock()
140 if (current->GetNext() == nullptr && current != block->GetLastPhi()) { in VisitBasicBlock()
150 for (HInstructionIterator it(block->GetInstructions()); !it.Done(); it.Advance()) { in VisitBasicBlock()
157 if (current->GetNext() == nullptr && current != block->GetLastInstruction()) { in VisitBasicBlock()
168 for (HBasicBlock* successor : block->GetNormalSuccessors()) { in VisitBasicBlock()
172 block->GetBlockId())); in VisitBasicBlock()
175 for (HBasicBlock* successor : block->GetExceptionalSuccessors()) { in VisitBasicBlock()
179 block->GetBlockId())); in VisitBasicBlock()
184 for (HBasicBlock* dominated : block->GetDominatedBlocks()) { in VisitBasicBlock()
185 if (dominated->GetDominator() != block) { in VisitBasicBlock()
187 block->GetBlockId(), in VisitBasicBlock()
196 if (block->GetSuccessors().size() > 1) { in VisitBasicBlock()
197 if (IsExitTryBoundaryIntoExitBlock(block)) { in VisitBasicBlock()
200 for (HBasicBlock* successor : block->GetNormalSuccessors()) { in VisitBasicBlock()
203 block->GetBlockId(), in VisitBasicBlock()
211 if (block->IsCatchBlock()) { in VisitBasicBlock()
212 if (block->IsTryBlock()) { in VisitBasicBlock()
213 const HTryBoundary& try_entry = block->GetTryCatchInformation()->GetTryEntry(); in VisitBasicBlock()
216 block->GetBlockId(), in VisitBasicBlock()
221 if (block->IsLoopHeader()) { in VisitBasicBlock()
223 block->GetBlockId())); in VisitBasicBlock()
226 for (HBasicBlock* predecessor : block->GetPredecessors()) { in VisitBasicBlock()
228 if (block->IsTryBlock()) { in VisitBasicBlock()
229 const HTryBoundary& stored_try_entry = block->GetTryCatchInformation()->GetTryEntry(); in VisitBasicBlock()
233 block->GetBlockId(), in VisitBasicBlock()
240 block->GetBlockId(), in VisitBasicBlock()
250 block->GetBlockId(), in VisitBasicBlock()
258 if (block->IsLoopHeader()) { in VisitBasicBlock()
259 HandleLoop(block); in VisitBasicBlock()
894 HBasicBlock* block = instruction->GetBlock(); in VisitPackedSwitch() local
895 if (instruction->GetNumEntries() + 1u != block->GetSuccessors().size()) { in VisitPackedSwitch()
900 block->GetBlockId(), in VisitPackedSwitch()
902 block->GetSuccessors().size())); in VisitPackedSwitch()
1024 HBasicBlock* block = instruction->GetBlock(); in VisitConstant() local
1025 if (!block->IsEntryBlock()) { in VisitConstant()
1030 block->GetBlockId())); in VisitConstant()