Lines Matching refs:j

116 		int j, changed;  in zend_mark_reachable_blocks()  local
123 for (j = 0; j < op_array->last_try_catch; j++) { in zend_mark_reachable_blocks()
126 b = blocks + block_map[op_array->try_catch_array[j].try_op]; in zend_mark_reachable_blocks()
130 if (op_array->try_catch_array[j].catch_op) { in zend_mark_reachable_blocks()
131 end = blocks + block_map[op_array->try_catch_array[j].catch_op]; in zend_mark_reachable_blocks()
134 op_array->try_catch_array[j].try_op = b->start; in zend_mark_reachable_blocks()
140 b = blocks + block_map[op_array->try_catch_array[j].try_op]; in zend_mark_reachable_blocks()
142 if (op_array->try_catch_array[j].finally_op) { in zend_mark_reachable_blocks()
143 end = blocks + block_map[op_array->try_catch_array[j].finally_op]; in zend_mark_reachable_blocks()
146 op_array->try_catch_array[j].try_op = op_array->try_catch_array[j].catch_op; in zend_mark_reachable_blocks()
148 …zend_mark_reachable(op_array->opcodes, cfg, blocks + block_map[op_array->try_catch_array[j].try_op… in zend_mark_reachable_blocks()
157 b = blocks + block_map[op_array->try_catch_array[j].try_op]; in zend_mark_reachable_blocks()
160 if (op_array->try_catch_array[j].catch_op) { in zend_mark_reachable_blocks()
161 b = blocks + block_map[op_array->try_catch_array[j].catch_op]; in zend_mark_reachable_blocks()
168 if (op_array->try_catch_array[j].finally_op) { in zend_mark_reachable_blocks()
169 b = blocks + block_map[op_array->try_catch_array[j].finally_op]; in zend_mark_reachable_blocks()
176 if (op_array->try_catch_array[j].finally_end) { in zend_mark_reachable_blocks()
177 b = blocks + block_map[op_array->try_catch_array[j].finally_end]; in zend_mark_reachable_blocks()
185 if (op_array->try_catch_array[j].catch_op) { in zend_mark_reachable_blocks()
186 …ZEND_ASSERT(!(blocks[block_map[op_array->try_catch_array[j].catch_op]].flags & ZEND_BB_REACHABLE)); in zend_mark_reachable_blocks()
188 if (op_array->try_catch_array[j].finally_op) { in zend_mark_reachable_blocks()
189 …ZEND_ASSERT(!(blocks[block_map[op_array->try_catch_array[j].finally_op]].flags & ZEND_BB_REACHABLE… in zend_mark_reachable_blocks()
191 if (op_array->try_catch_array[j].finally_end) { in zend_mark_reachable_blocks()
192 …ZEND_ASSERT(!(blocks[block_map[op_array->try_catch_array[j].finally_end]].flags & ZEND_BB_REACHABL… in zend_mark_reachable_blocks()
201 int j; in zend_mark_reachable_blocks() local
210 for (j = b->start; j < b->start + b->len; j++) { in zend_mark_reachable_blocks()
211 zend_op *opline = &op_array->opcodes[j]; in zend_mark_reachable_blocks()
273 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()
528 block->successors[1] = j + 1; in zend_build_cfg()
534 block->successors[1] = j + 1; in zend_build_cfg()
537 block->successors[0] = j + 1; in zend_build_cfg()
544 block->successors[1] = j + 1; in zend_build_cfg()
550 block->successors[1] = j + 1; in zend_build_cfg()
555 block->successors[1] = j + 1; in zend_build_cfg()
574 block->successors[s++] = j + 1; in zend_build_cfg()
580 block->successors[0] = j + 1; in zend_build_cfg()
593 int j, s, edges; in zend_cfg_build_predecessors() local
627 for (j = 0; j < cfg->blocks_count; j++) { in zend_cfg_build_predecessors()
628 if (blocks[j].flags & ZEND_BB_REACHABLE) { in zend_cfg_build_predecessors()
630 for (s = 0; s < blocks[j].successors_count; s++) { in zend_cfg_build_predecessors()
635 if (blocks[j].successors[p] == blocks[j].successors[s]) { in zend_cfg_build_predecessors()
641 zend_basic_block *b = blocks + blocks[j].successors[s]; in zend_cfg_build_predecessors()
643 predecessors[b->predecessor_offset + b->predecessors_count] = j; in zend_cfg_build_predecessors()
676 int j, k, changed; in zend_cfg_compute_dominators_tree() local
686 j = 0; in zend_cfg_compute_dominators_tree()
687 compute_postnum_recursive(postnum, &j, cfg, 0); in zend_cfg_compute_dominators_tree()
694 for (j = 1; j < blocks_count; j++) { in zend_cfg_compute_dominators_tree()
697 if ((blocks[j].flags & ZEND_BB_REACHABLE) == 0) { in zend_cfg_compute_dominators_tree()
700 for (k = 0; k < blocks[j].predecessors_count; k++) { in zend_cfg_compute_dominators_tree()
701 int pred = cfg->predecessors[blocks[j].predecessor_offset + k]; in zend_cfg_compute_dominators_tree()
715 if (idom >= 0 && blocks[j].idom != idom) { in zend_cfg_compute_dominators_tree()
716 blocks[j].idom = idom; in zend_cfg_compute_dominators_tree()
723 for (j = 1; j < blocks_count; j++) { in zend_cfg_compute_dominators_tree()
724 if ((blocks[j].flags & ZEND_BB_REACHABLE) == 0) { in zend_cfg_compute_dominators_tree()
727 if (blocks[j].idom >= 0) { in zend_cfg_compute_dominators_tree()
729 if (blocks[blocks[j].idom].children < 0 || in zend_cfg_compute_dominators_tree()
730 j < blocks[blocks[j].idom].children) { in zend_cfg_compute_dominators_tree()
731 blocks[j].next_child = blocks[blocks[j].idom].children; in zend_cfg_compute_dominators_tree()
732 blocks[blocks[j].idom].children = j; in zend_cfg_compute_dominators_tree()
734 int k = blocks[blocks[j].idom].children; in zend_cfg_compute_dominators_tree()
735 while (blocks[k].next_child >=0 && j > blocks[k].next_child) { in zend_cfg_compute_dominators_tree()
738 blocks[j].next_child = blocks[k].next_child; in zend_cfg_compute_dominators_tree()
739 blocks[k].next_child = j; in zend_cfg_compute_dominators_tree()
744 for (j = 0; j < blocks_count; j++) { in zend_cfg_compute_dominators_tree()
745 int idom = blocks[j].idom, level = 0; in zend_cfg_compute_dominators_tree()
746 if ((blocks[j].flags & ZEND_BB_REACHABLE) == 0) { in zend_cfg_compute_dominators_tree()
758 blocks[j].level = level; in zend_cfg_compute_dominators_tree()
776 int i, j, k, n; in zend_cfg_identify_loops() local
809 for (j = blocks[i].children; j >= 0; j = blocks[j].next_child) { in zend_cfg_identify_loops()
810 if (zend_worklist_push(&work, j)) { in zend_cfg_identify_loops()
815 for (j = 0; j < blocks[i].successors_count; j++) { in zend_cfg_identify_loops()
816 int succ = blocks[i].successors[j]; in zend_cfg_identify_loops()
829 j = 0; in zend_cfg_identify_loops()
831 while (j != n) { in zend_cfg_identify_loops()
832 i = j; in zend_cfg_identify_loops()
833 j = n; in zend_cfg_identify_loops()
834 for (; i < j; i++) { in zend_cfg_identify_loops()
851 for (j = 0; j < blocks[i].predecessors_count; j++) { in zend_cfg_identify_loops()
852 int pred = cfg->predecessors[blocks[i].predecessor_offset + j]; in zend_cfg_identify_loops()
880 j = zend_worklist_pop(&work); in zend_cfg_identify_loops()
881 while (blocks[j].loop_header >= 0) { in zend_cfg_identify_loops()
882 j = blocks[j].loop_header; in zend_cfg_identify_loops()
884 if (j != i) { in zend_cfg_identify_loops()
885 if (blocks[j].idom < 0 && j != 0) { in zend_cfg_identify_loops()
889 blocks[j].loop_header = i; in zend_cfg_identify_loops()
890 for (k = 0; k < blocks[j].predecessors_count; k++) { in zend_cfg_identify_loops()
891 zend_worklist_push(&work, cfg->predecessors[blocks[j].predecessor_offset + k]); in zend_cfg_identify_loops()