39 for (
int i = 0; i <
graph()->blocks()->length(); i++) {
40 HBasicBlock* block =
graph()->blocks()->at(i);
41 if (block->IsLoopHeader()) {
42 HBasicBlock* back_edge = block->loop_information()->GetLastBackEdge();
43 HBasicBlock* dominator = back_edge;
45 for (HInstructionIterator it(dominator); !it.Done(); it.Advance()) {
46 if (it.Current()->HasStackCheck()) {
47 block->loop_information()->stack_check()->Eliminate();
53 if (dominator == block)
break;
56 dominator = dominator->dominator();