Lines Matching refs:j

102 		int j, changed;  in zend_mark_reachable_blocks()  local
109 for (j = 0; j < op_array->last_live_range; j++) { in zend_mark_reachable_blocks()
110 zend_live_range *live_range = &op_array->live_range[j]; in zend_mark_reachable_blocks()
153 for (j = 0; j < op_array->last_try_catch; j++) { in zend_mark_reachable_blocks()
156 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 end = blocks + block_map[op_array->try_catch_array[j].catch_op]; in zend_mark_reachable_blocks()
164 op_array->try_catch_array[j].try_op = b->start; in zend_mark_reachable_blocks()
170 b = blocks + block_map[op_array->try_catch_array[j].try_op]; in zend_mark_reachable_blocks()
172 if (op_array->try_catch_array[j].finally_op) { in zend_mark_reachable_blocks()
173 end = blocks + block_map[op_array->try_catch_array[j].finally_op]; in zend_mark_reachable_blocks()
176 op_array->try_catch_array[j].try_op = op_array->try_catch_array[j].catch_op; in zend_mark_reachable_blocks()
178 …zend_mark_reachable(op_array->opcodes, cfg, blocks + block_map[op_array->try_catch_array[j].try_op… in zend_mark_reachable_blocks()
187 b = blocks + block_map[op_array->try_catch_array[j].try_op]; in zend_mark_reachable_blocks()
190 if (op_array->try_catch_array[j].catch_op) { in zend_mark_reachable_blocks()
191 b = blocks + block_map[op_array->try_catch_array[j].catch_op]; in zend_mark_reachable_blocks()
198 if (op_array->try_catch_array[j].finally_op) { in zend_mark_reachable_blocks()
199 b = blocks + block_map[op_array->try_catch_array[j].finally_op]; in zend_mark_reachable_blocks()
206 if (op_array->try_catch_array[j].finally_end) { in zend_mark_reachable_blocks()
207 b = blocks + block_map[op_array->try_catch_array[j].finally_end]; in zend_mark_reachable_blocks()
215 if (op_array->try_catch_array[j].catch_op) { in zend_mark_reachable_blocks()
216 …ZEND_ASSERT(!(blocks[block_map[op_array->try_catch_array[j].catch_op]].flags & ZEND_BB_REACHABLE)); in zend_mark_reachable_blocks()
218 if (op_array->try_catch_array[j].finally_op) { in zend_mark_reachable_blocks()
219 …ZEND_ASSERT(!(blocks[block_map[op_array->try_catch_array[j].finally_op]].flags & ZEND_BB_REACHABLE… in zend_mark_reachable_blocks()
221 if (op_array->try_catch_array[j].finally_end) { in zend_mark_reachable_blocks()
222 …ZEND_ASSERT(!(blocks[block_map[op_array->try_catch_array[j].finally_end]].flags & ZEND_BB_REACHABL… in zend_mark_reachable_blocks()
281 int j; in zend_build_cfg() local
437 for (j = 0; j < op_array->last_live_range; j++) { in zend_build_cfg()
438 BB_START(op_array->live_range[j].start); in zend_build_cfg()
439 BB_START(op_array->live_range[j].end); in zend_build_cfg()
444 for (j = 0; j < op_array->last_try_catch; j++) { in zend_build_cfg()
445 BB_START(op_array->try_catch_array[j].try_op); in zend_build_cfg()
446 if (op_array->try_catch_array[j].catch_op) { in zend_build_cfg()
447 BB_START(op_array->try_catch_array[j].catch_op); in zend_build_cfg()
449 if (op_array->try_catch_array[j].finally_op) { in zend_build_cfg()
450 BB_START(op_array->try_catch_array[j].finally_op); in zend_build_cfg()
452 if (op_array->try_catch_array[j].finally_end) { in zend_build_cfg()
453 BB_START(op_array->try_catch_array[j].finally_end); in zend_build_cfg()
492 for (j = 0; j < blocks_count; j++) { in zend_build_cfg()
494 if (blocks[j].len == 0) { in zend_build_cfg()
495 record_successor(blocks, j, 0, j + 1); in zend_build_cfg()
499 opline = op_array->opcodes + blocks[j].start + blocks[j].len - 1; in zend_build_cfg()
509 record_successor(blocks, j, 0, block_map[OP_JMP_ADDR(opline, opline->op1) - op_array->opcodes]); in zend_build_cfg()
512 record_successor(blocks, j, 0, block_map[OP_JMP_ADDR(opline, opline->op2) - op_array->opcodes]); in zend_build_cfg()
513 …record_successor(blocks, j, 1, block_map[ZEND_OFFSET_TO_OPLINE_NUM(op_array, opline, opline->exten… in zend_build_cfg()
522 record_successor(blocks, j, 0, block_map[OP_JMP_ADDR(opline, opline->op2) - op_array->opcodes]); in zend_build_cfg()
523 record_successor(blocks, j, 1, j + 1); in zend_build_cfg()
527 …record_successor(blocks, j, 0, block_map[ZEND_OFFSET_TO_OPLINE_NUM(op_array, opline, opline->exten… in zend_build_cfg()
528 record_successor(blocks, j, 1, j + 1); in zend_build_cfg()
530 record_successor(blocks, j, 0, j + 1); in zend_build_cfg()
537 …record_successor(blocks, j, 0, block_map[ZEND_OFFSET_TO_OPLINE_NUM(op_array, opline, opline->exten… in zend_build_cfg()
538 record_successor(blocks, j, 1, j + 1); in zend_build_cfg()
542 record_successor(blocks, j, 0, block_map[OP_JMP_ADDR(opline, opline->op2) - op_array->opcodes]); in zend_build_cfg()
543 record_successor(blocks, j, 1, j + 1); in zend_build_cfg()
546 record_successor(blocks, j, 0, block_map[OP_JMP_ADDR(opline, opline->op1) - op_array->opcodes]); in zend_build_cfg()
547 record_successor(blocks, j, 1, j + 1); in zend_build_cfg()
550 record_successor(blocks, j, 0, j + 1); in zend_build_cfg()
568 int j, edges; in zend_cfg_build_predecessors() local
610 for (j = 0; j < cfg->blocks_count; j++) { in zend_cfg_build_predecessors()
611 if (blocks[j].flags & ZEND_BB_REACHABLE) { in zend_cfg_build_predecessors()
612 if (blocks[j].successors[0] >= 0) { in zend_cfg_build_predecessors()
613 zend_basic_block *b = blocks + blocks[j].successors[0]; in zend_cfg_build_predecessors()
614 predecessors[b->predecessor_offset + b->predecessors_count] = j; in zend_cfg_build_predecessors()
616 if (blocks[j].successors[1] >= 0 in zend_cfg_build_predecessors()
617 && blocks[j].successors[1] != blocks[j].successors[0]) { in zend_cfg_build_predecessors()
618 zend_basic_block *b = blocks + blocks[j].successors[1]; in zend_cfg_build_predecessors()
619 predecessors[b->predecessor_offset + b->predecessors_count] = j; in zend_cfg_build_predecessors()
656 int j, k, changed; in zend_cfg_compute_dominators_tree() local
661 j = 0; in zend_cfg_compute_dominators_tree()
662 compute_postnum_recursive(postnum, &j, cfg, 0); in zend_cfg_compute_dominators_tree()
669 for (j = 1; j < blocks_count; j++) { in zend_cfg_compute_dominators_tree()
672 if ((blocks[j].flags & ZEND_BB_REACHABLE) == 0) { in zend_cfg_compute_dominators_tree()
675 for (k = 0; k < blocks[j].predecessors_count; k++) { in zend_cfg_compute_dominators_tree()
676 int pred = cfg->predecessors[blocks[j].predecessor_offset + k]; in zend_cfg_compute_dominators_tree()
692 if (idom >= 0 && blocks[j].idom != idom) { in zend_cfg_compute_dominators_tree()
693 blocks[j].idom = idom; in zend_cfg_compute_dominators_tree()
700 for (j = 1; j < blocks_count; j++) { in zend_cfg_compute_dominators_tree()
701 if ((blocks[j].flags & ZEND_BB_REACHABLE) == 0) { in zend_cfg_compute_dominators_tree()
704 if (blocks[j].idom >= 0) { in zend_cfg_compute_dominators_tree()
706 if (blocks[blocks[j].idom].children < 0 || in zend_cfg_compute_dominators_tree()
707 j < blocks[blocks[j].idom].children) { in zend_cfg_compute_dominators_tree()
708 blocks[j].next_child = blocks[blocks[j].idom].children; in zend_cfg_compute_dominators_tree()
709 blocks[blocks[j].idom].children = j; in zend_cfg_compute_dominators_tree()
711 int k = blocks[blocks[j].idom].children; in zend_cfg_compute_dominators_tree()
712 while (blocks[k].next_child >=0 && j > blocks[k].next_child) { in zend_cfg_compute_dominators_tree()
715 blocks[j].next_child = blocks[k].next_child; in zend_cfg_compute_dominators_tree()
716 blocks[k].next_child = j; in zend_cfg_compute_dominators_tree()
721 for (j = 0; j < blocks_count; j++) { in zend_cfg_compute_dominators_tree()
722 int idom = blocks[j].idom, level = 0; in zend_cfg_compute_dominators_tree()
723 if ((blocks[j].flags & ZEND_BB_REACHABLE) == 0) { in zend_cfg_compute_dominators_tree()
735 blocks[j].level = level; in zend_cfg_compute_dominators_tree()
767 int i, j, k, n; in zend_cfg_identify_loops() local
795 for (j = blocks[i].children; j >= 0; j = blocks[j].next_child) { in zend_cfg_identify_loops()
796 if (zend_worklist_push(&work, j)) { in zend_cfg_identify_loops()
801 for (j = 0; j < 2; j++) { in zend_cfg_identify_loops()
802 int succ = blocks[i].successors[j]; in zend_cfg_identify_loops()
831 for (j = 0; j < blocks[i].predecessors_count; j++) { in zend_cfg_identify_loops()
832 int pred = cfg->predecessors[blocks[i].predecessor_offset + j]; in zend_cfg_identify_loops()
857 j = zend_worklist_pop(&work); in zend_cfg_identify_loops()
858 while (blocks[j].loop_header >= 0) { in zend_cfg_identify_loops()
859 j = blocks[j].loop_header; in zend_cfg_identify_loops()
861 if (j != i) { in zend_cfg_identify_loops()
862 blocks[j].loop_header = i; in zend_cfg_identify_loops()
863 for (k = 0; k < blocks[j].predecessors_count; k++) { in zend_cfg_identify_loops()
864 zend_worklist_push(&work, cfg->predecessors[blocks[j].predecessor_offset + k]); in zend_cfg_identify_loops()