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
451 for (j = 0; j < op_array->last_try_catch; j++) { in zend_build_cfg()
452 BB_START(op_array->try_catch_array[j].try_op); in zend_build_cfg()
453 if (op_array->try_catch_array[j].catch_op) { in zend_build_cfg()
454 BB_START(op_array->try_catch_array[j].catch_op); in zend_build_cfg()
456 if (op_array->try_catch_array[j].finally_op) { in zend_build_cfg()
457 BB_START(op_array->try_catch_array[j].finally_op); in zend_build_cfg()
459 if (op_array->try_catch_array[j].finally_end) { in zend_build_cfg()
460 BB_START(op_array->try_catch_array[j].finally_end); in zend_build_cfg()
496 for (j = 0; j < blocks_count; j++) { in zend_build_cfg()
497 zend_basic_block *block = &blocks[j]; in zend_build_cfg()
501 block->successors[0] = j + 1; in zend_build_cfg()
534 block->successors[1] = j + 1; in zend_build_cfg()
540 block->successors[1] = j + 1; in zend_build_cfg()
543 block->successors[0] = j + 1; in zend_build_cfg()
550 block->successors[1] = j + 1; in zend_build_cfg()
556 block->successors[1] = j + 1; in zend_build_cfg()
561 block->successors[1] = j + 1; in zend_build_cfg()
580 block->successors[s++] = j + 1; in zend_build_cfg()
586 block->successors[0] = j + 1; in zend_build_cfg()
601 int j, s, edges; in zend_cfg_build_predecessors() local
635 for (j = 0; j < cfg->blocks_count; j++) { in zend_cfg_build_predecessors()
636 if (blocks[j].flags & ZEND_BB_REACHABLE) { in zend_cfg_build_predecessors()
638 for (s = 0; s < blocks[j].successors_count; s++) { in zend_cfg_build_predecessors()
643 if (blocks[j].successors[p] == blocks[j].successors[s]) { in zend_cfg_build_predecessors()
649 zend_basic_block *b = blocks + blocks[j].successors[s]; in zend_cfg_build_predecessors()
651 predecessors[b->predecessor_offset + b->predecessors_count] = j; in zend_cfg_build_predecessors()
686 int j, k, changed; in zend_cfg_compute_dominators_tree() local
691 j = 0; in zend_cfg_compute_dominators_tree()
692 compute_postnum_recursive(postnum, &j, cfg, 0); in zend_cfg_compute_dominators_tree()
699 for (j = 1; j < blocks_count; j++) { in zend_cfg_compute_dominators_tree()
702 if ((blocks[j].flags & ZEND_BB_REACHABLE) == 0) { in zend_cfg_compute_dominators_tree()
705 for (k = 0; k < blocks[j].predecessors_count; k++) { in zend_cfg_compute_dominators_tree()
706 int pred = cfg->predecessors[blocks[j].predecessor_offset + k]; in zend_cfg_compute_dominators_tree()
722 if (idom >= 0 && blocks[j].idom != idom) { in zend_cfg_compute_dominators_tree()
723 blocks[j].idom = idom; in zend_cfg_compute_dominators_tree()
730 for (j = 1; j < blocks_count; j++) { in zend_cfg_compute_dominators_tree()
731 if ((blocks[j].flags & ZEND_BB_REACHABLE) == 0) { in zend_cfg_compute_dominators_tree()
734 if (blocks[j].idom >= 0) { in zend_cfg_compute_dominators_tree()
736 if (blocks[blocks[j].idom].children < 0 || in zend_cfg_compute_dominators_tree()
737 j < blocks[blocks[j].idom].children) { in zend_cfg_compute_dominators_tree()
738 blocks[j].next_child = blocks[blocks[j].idom].children; in zend_cfg_compute_dominators_tree()
739 blocks[blocks[j].idom].children = j; in zend_cfg_compute_dominators_tree()
741 int k = blocks[blocks[j].idom].children; in zend_cfg_compute_dominators_tree()
742 while (blocks[k].next_child >=0 && j > blocks[k].next_child) { in zend_cfg_compute_dominators_tree()
745 blocks[j].next_child = blocks[k].next_child; in zend_cfg_compute_dominators_tree()
746 blocks[k].next_child = j; in zend_cfg_compute_dominators_tree()
751 for (j = 0; j < blocks_count; j++) { in zend_cfg_compute_dominators_tree()
752 int idom = blocks[j].idom, level = 0; in zend_cfg_compute_dominators_tree()
753 if ((blocks[j].flags & ZEND_BB_REACHABLE) == 0) { in zend_cfg_compute_dominators_tree()
765 blocks[j].level = level; in zend_cfg_compute_dominators_tree()
797 int i, j, k, n; in zend_cfg_identify_loops() local
825 for (j = blocks[i].children; j >= 0; j = blocks[j].next_child) { in zend_cfg_identify_loops()
826 if (zend_worklist_push(&work, j)) { in zend_cfg_identify_loops()
831 for (j = 0; j < blocks[i].successors_count; j++) { in zend_cfg_identify_loops()
832 int succ = blocks[i].successors[j]; in zend_cfg_identify_loops()
859 for (j = 0; j < blocks[i].predecessors_count; j++) { in zend_cfg_identify_loops()
860 int pred = cfg->predecessors[blocks[i].predecessor_offset + j]; in zend_cfg_identify_loops()
885 j = zend_worklist_pop(&work); in zend_cfg_identify_loops()
886 while (blocks[j].loop_header >= 0) { in zend_cfg_identify_loops()
887 j = blocks[j].loop_header; in zend_cfg_identify_loops()
889 if (j != i) { in zend_cfg_identify_loops()
890 if (blocks[j].idom < 0 && j != 0) { in zend_cfg_identify_loops()
894 blocks[j].loop_header = i; in zend_cfg_identify_loops()
895 for (k = 0; k < blocks[j].predecessors_count; k++) { in zend_cfg_identify_loops()
896 zend_worklist_push(&work, cfg->predecessors[blocks[j].predecessor_offset + k]); in zend_cfg_identify_loops()