Lines Matching refs:j
117 int j, changed; in zend_mark_reachable_blocks() local
124 for (j = 0; j < op_array->last_try_catch; j++) { in zend_mark_reachable_blocks()
127 b = blocks + block_map[op_array->try_catch_array[j].try_op]; in zend_mark_reachable_blocks()
131 if (op_array->try_catch_array[j].catch_op) { in zend_mark_reachable_blocks()
132 end = blocks + block_map[op_array->try_catch_array[j].catch_op]; in zend_mark_reachable_blocks()
135 op_array->try_catch_array[j].try_op = b->start; in zend_mark_reachable_blocks()
141 b = blocks + block_map[op_array->try_catch_array[j].try_op]; in zend_mark_reachable_blocks()
143 if (op_array->try_catch_array[j].finally_op) { in zend_mark_reachable_blocks()
144 end = blocks + block_map[op_array->try_catch_array[j].finally_op]; in zend_mark_reachable_blocks()
147 op_array->try_catch_array[j].try_op = op_array->try_catch_array[j].catch_op; in zend_mark_reachable_blocks()
149 …zend_mark_reachable(op_array->opcodes, cfg, blocks + block_map[op_array->try_catch_array[j].try_op… in zend_mark_reachable_blocks()
158 b = blocks + block_map[op_array->try_catch_array[j].try_op]; in zend_mark_reachable_blocks()
161 if (op_array->try_catch_array[j].catch_op) { in zend_mark_reachable_blocks()
162 b = blocks + block_map[op_array->try_catch_array[j].catch_op]; in zend_mark_reachable_blocks()
169 if (op_array->try_catch_array[j].finally_op) { in zend_mark_reachable_blocks()
170 b = blocks + block_map[op_array->try_catch_array[j].finally_op]; in zend_mark_reachable_blocks()
177 if (op_array->try_catch_array[j].finally_end) { in zend_mark_reachable_blocks()
178 b = blocks + block_map[op_array->try_catch_array[j].finally_end]; in zend_mark_reachable_blocks()
186 if (op_array->try_catch_array[j].catch_op) { in zend_mark_reachable_blocks()
187 …ZEND_ASSERT(!(blocks[block_map[op_array->try_catch_array[j].catch_op]].flags & ZEND_BB_REACHABLE)); in zend_mark_reachable_blocks()
189 if (op_array->try_catch_array[j].finally_op) { in zend_mark_reachable_blocks()
190 …ZEND_ASSERT(!(blocks[block_map[op_array->try_catch_array[j].finally_op]].flags & ZEND_BB_REACHABLE… in zend_mark_reachable_blocks()
192 if (op_array->try_catch_array[j].finally_end) { in zend_mark_reachable_blocks()
193 …ZEND_ASSERT(!(blocks[block_map[op_array->try_catch_array[j].finally_end]].flags & ZEND_BB_REACHABL… in zend_mark_reachable_blocks()
202 int j; in zend_mark_reachable_blocks() local
211 for (j = b->start; j < b->start + b->len; j++) { in zend_mark_reachable_blocks()
212 zend_op *opline = &op_array->opcodes[j]; in zend_mark_reachable_blocks()
274 int j; in zend_build_cfg() local
448 for (j = 0; j < op_array->last_try_catch; j++) { in zend_build_cfg()
449 BB_START(op_array->try_catch_array[j].try_op); in zend_build_cfg()
450 if (op_array->try_catch_array[j].catch_op) { in zend_build_cfg()
451 BB_START(op_array->try_catch_array[j].catch_op); in zend_build_cfg()
453 if (op_array->try_catch_array[j].finally_op) { in zend_build_cfg()
454 BB_START(op_array->try_catch_array[j].finally_op); in zend_build_cfg()
456 if (op_array->try_catch_array[j].finally_end) { in zend_build_cfg()
457 BB_START(op_array->try_catch_array[j].finally_end); in zend_build_cfg()
493 for (j = 0; j < blocks_count; j++) { in zend_build_cfg()
494 zend_basic_block *block = &blocks[j]; in zend_build_cfg()
498 block->successors[0] = j + 1; in zend_build_cfg()
527 block->successors[1] = j + 1; in zend_build_cfg()
533 block->successors[1] = j + 1; in zend_build_cfg()
536 block->successors[0] = j + 1; in zend_build_cfg()
543 block->successors[1] = j + 1; in zend_build_cfg()
549 block->successors[1] = j + 1; in zend_build_cfg()
554 block->successors[1] = j + 1; in zend_build_cfg()
573 block->successors[s++] = j + 1; in zend_build_cfg()
579 block->successors[0] = j + 1; in zend_build_cfg()
592 int j, s, edges; in zend_cfg_build_predecessors() local
626 for (j = 0; j < cfg->blocks_count; j++) { in zend_cfg_build_predecessors()
627 if (blocks[j].flags & ZEND_BB_REACHABLE) { in zend_cfg_build_predecessors()
629 for (s = 0; s < blocks[j].successors_count; s++) { in zend_cfg_build_predecessors()
634 if (blocks[j].successors[p] == blocks[j].successors[s]) { in zend_cfg_build_predecessors()
640 zend_basic_block *b = blocks + blocks[j].successors[s]; in zend_cfg_build_predecessors()
642 predecessors[b->predecessor_offset + b->predecessors_count] = j; in zend_cfg_build_predecessors()
675 int j, k, changed; in zend_cfg_compute_dominators_tree() local
685 j = 0; in zend_cfg_compute_dominators_tree()
686 compute_postnum_recursive(postnum, &j, cfg, 0); in zend_cfg_compute_dominators_tree()
693 for (j = 1; j < blocks_count; j++) { in zend_cfg_compute_dominators_tree()
696 if ((blocks[j].flags & ZEND_BB_REACHABLE) == 0) { in zend_cfg_compute_dominators_tree()
699 for (k = 0; k < blocks[j].predecessors_count; k++) { in zend_cfg_compute_dominators_tree()
700 int pred = cfg->predecessors[blocks[j].predecessor_offset + k]; in zend_cfg_compute_dominators_tree()
714 if (idom >= 0 && blocks[j].idom != idom) { in zend_cfg_compute_dominators_tree()
715 blocks[j].idom = idom; in zend_cfg_compute_dominators_tree()
722 for (j = 1; j < blocks_count; j++) { in zend_cfg_compute_dominators_tree()
723 if ((blocks[j].flags & ZEND_BB_REACHABLE) == 0) { in zend_cfg_compute_dominators_tree()
726 if (blocks[j].idom >= 0) { in zend_cfg_compute_dominators_tree()
728 if (blocks[blocks[j].idom].children < 0 || in zend_cfg_compute_dominators_tree()
729 j < blocks[blocks[j].idom].children) { in zend_cfg_compute_dominators_tree()
730 blocks[j].next_child = blocks[blocks[j].idom].children; in zend_cfg_compute_dominators_tree()
731 blocks[blocks[j].idom].children = j; in zend_cfg_compute_dominators_tree()
733 int k = blocks[blocks[j].idom].children; in zend_cfg_compute_dominators_tree()
734 while (blocks[k].next_child >=0 && j > blocks[k].next_child) { in zend_cfg_compute_dominators_tree()
737 blocks[j].next_child = blocks[k].next_child; in zend_cfg_compute_dominators_tree()
738 blocks[k].next_child = j; in zend_cfg_compute_dominators_tree()
743 for (j = 0; j < blocks_count; j++) { in zend_cfg_compute_dominators_tree()
744 int idom = blocks[j].idom, level = 0; in zend_cfg_compute_dominators_tree()
745 if ((blocks[j].flags & ZEND_BB_REACHABLE) == 0) { in zend_cfg_compute_dominators_tree()
757 blocks[j].level = level; in zend_cfg_compute_dominators_tree()
775 int i, j, k, n; in zend_cfg_identify_loops() local
808 for (j = blocks[i].children; j >= 0; j = blocks[j].next_child) { in zend_cfg_identify_loops()
809 if (zend_worklist_push(&work, j)) { in zend_cfg_identify_loops()
814 for (j = 0; j < blocks[i].successors_count; j++) { in zend_cfg_identify_loops()
815 int succ = blocks[i].successors[j]; in zend_cfg_identify_loops()
828 j = 0; in zend_cfg_identify_loops()
830 while (j != n) { in zend_cfg_identify_loops()
831 i = j; in zend_cfg_identify_loops()
832 j = n; in zend_cfg_identify_loops()
833 for (; i < j; i++) { in zend_cfg_identify_loops()
850 for (j = 0; j < blocks[i].predecessors_count; j++) { in zend_cfg_identify_loops()
851 int pred = cfg->predecessors[blocks[i].predecessor_offset + j]; in zend_cfg_identify_loops()
879 j = zend_worklist_pop(&work); in zend_cfg_identify_loops()
880 while (blocks[j].loop_header >= 0) { in zend_cfg_identify_loops()
881 j = blocks[j].loop_header; in zend_cfg_identify_loops()
883 if (j != i) { in zend_cfg_identify_loops()
884 if (blocks[j].idom < 0 && j != 0) { in zend_cfg_identify_loops()
888 blocks[j].loop_header = i; in zend_cfg_identify_loops()
889 for (k = 0; k < blocks[j].predecessors_count; k++) { in zend_cfg_identify_loops()
890 zend_worklist_push(&work, cfg->predecessors[blocks[j].predecessor_offset + k]); in zend_cfg_identify_loops()