Lines Matching refs:block

266 static void initialize_block(zend_basic_block *block) {  in initialize_block()  argument
267 block->flags = 0; in initialize_block()
268 block->successors = block->successors_storage; in initialize_block()
269 block->successors_count = 0; in initialize_block()
270 block->predecessors_count = 0; in initialize_block()
271 block->predecessor_offset = -1; in initialize_block()
272 block->idom = -1; in initialize_block()
273 block->loop_header = -1; in initialize_block()
274 block->level = -1; in initialize_block()
275 block->children = -1; in initialize_block()
276 block->next_child = -1; in initialize_block()
508 zend_basic_block *block = &blocks[j]; in zend_build_cfg() local
510 if (block->len == 0) { in zend_build_cfg()
511 block->successors_count = 1; in zend_build_cfg()
512 block->successors[0] = j + 1; in zend_build_cfg()
516 opline = op_array->opcodes + block->start + block->len - 1; in zend_build_cfg()
526 block->successors_count = 1; in zend_build_cfg()
527 block->successors[0] = block_map[OP_JMP_ADDR(opline, opline->op1) - op_array->opcodes]; in zend_build_cfg()
530 block->successors_count = 2; in zend_build_cfg()
531 block->successors[0] = block_map[OP_JMP_ADDR(opline, opline->op2) - op_array->opcodes]; in zend_build_cfg()
532block->successors[1] = block_map[ZEND_OFFSET_TO_OPLINE_NUM(op_array, opline, opline->extended_valu… in zend_build_cfg()
541 block->successors_count = 2; in zend_build_cfg()
542 block->successors[0] = block_map[OP_JMP_ADDR(opline, opline->op2) - op_array->opcodes]; in zend_build_cfg()
543 block->successors[1] = j + 1; in zend_build_cfg()
547 block->successors_count = 2; in zend_build_cfg()
548block->successors[0] = block_map[ZEND_OFFSET_TO_OPLINE_NUM(op_array, opline, opline->extended_valu… in zend_build_cfg()
549 block->successors[1] = j + 1; in zend_build_cfg()
551 block->successors_count = 1; in zend_build_cfg()
552 block->successors[0] = j + 1; in zend_build_cfg()
559 block->successors_count = 2; in zend_build_cfg()
560block->successors[0] = block_map[ZEND_OFFSET_TO_OPLINE_NUM(op_array, opline, opline->extended_valu… in zend_build_cfg()
561 block->successors[1] = j + 1; in zend_build_cfg()
565 block->successors_count = 2; in zend_build_cfg()
566 block->successors[0] = block_map[OP_JMP_ADDR(opline, opline->op2) - op_array->opcodes]; in zend_build_cfg()
567 block->successors[1] = j + 1; in zend_build_cfg()
570 block->successors_count = 2; in zend_build_cfg()
571 block->successors[0] = block_map[OP_JMP_ADDR(opline, opline->op1) - op_array->opcodes]; in zend_build_cfg()
572 block->successors[1] = j + 1; in zend_build_cfg()
581 block->successors_count = 2 + zend_hash_num_elements(jumptable); in zend_build_cfg()
582 block->successors = zend_arena_calloc(arena, block->successors_count, sizeof(int)); in zend_build_cfg()
585 block->successors[s++] = block_map[ZEND_OFFSET_TO_OPLINE_NUM(op_array, opline, Z_LVAL_P(zv))]; in zend_build_cfg()
588block->successors[s++] = block_map[ZEND_OFFSET_TO_OPLINE_NUM(op_array, opline, opline->extended_va… in zend_build_cfg()
589 block->successors[s++] = j + 1; in zend_build_cfg()
593 block->successors_count = 1; in zend_build_cfg()
594 block->successors[0] = j + 1; in zend_build_cfg()
681 zend_basic_block *block = &cfg->blocks[block_num]; in compute_postnum_recursive() local
687 for (s = 0; s < block->successors_count; s++) { in compute_postnum_recursive()
688 compute_postnum_recursive(postnum, cur, cfg, block->successors[s]); in compute_postnum_recursive()