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()
510 zend_basic_block *block = &blocks[j]; in zend_build_cfg() local
512 if (block->len == 0) { in zend_build_cfg()
513 block->successors_count = 1; in zend_build_cfg()
514 block->successors[0] = j + 1; in zend_build_cfg()
518 opline = op_array->opcodes + block->start + block->len - 1; in zend_build_cfg()
528 block->successors_count = 1; in zend_build_cfg()
529 block->successors[0] = block_map[OP_JMP_ADDR(opline, opline->op1) - op_array->opcodes]; in zend_build_cfg()
532 block->successors_count = 2; in zend_build_cfg()
533 block->successors[0] = block_map[OP_JMP_ADDR(opline, opline->op2) - op_array->opcodes]; in zend_build_cfg()
534 …block->successors[1] = block_map[ZEND_OFFSET_TO_OPLINE_NUM(op_array, opline, opline->extended_valu… in zend_build_cfg()
543 block->successors_count = 2; in zend_build_cfg()
544 block->successors[0] = block_map[OP_JMP_ADDR(opline, opline->op2) - op_array->opcodes]; in zend_build_cfg()
545 block->successors[1] = j + 1; in zend_build_cfg()
549 block->successors_count = 2; in zend_build_cfg()
550 block->successors[0] = block_map[OP_JMP_ADDR(opline, opline->op2) - op_array->opcodes]; in zend_build_cfg()
551 block->successors[1] = j + 1; in zend_build_cfg()
553 block->successors_count = 1; in zend_build_cfg()
554 block->successors[0] = j + 1; in zend_build_cfg()
561 block->successors_count = 2; in zend_build_cfg()
562 …block->successors[0] = block_map[ZEND_OFFSET_TO_OPLINE_NUM(op_array, opline, opline->extended_valu… in zend_build_cfg()
563 block->successors[1] = j + 1; in zend_build_cfg()
567 block->successors_count = 2; in zend_build_cfg()
568 block->successors[0] = block_map[OP_JMP_ADDR(opline, opline->op2) - op_array->opcodes]; in zend_build_cfg()
569 block->successors[1] = j + 1; in zend_build_cfg()
572 block->successors_count = 2; in zend_build_cfg()
573 block->successors[0] = block_map[OP_JMP_ADDR(opline, opline->op1) - op_array->opcodes]; in zend_build_cfg()
574 block->successors[1] = j + 1; in zend_build_cfg()
583 block->successors_count = 2 + zend_hash_num_elements(jumptable); in zend_build_cfg()
584 block->successors = zend_arena_calloc(arena, block->successors_count, sizeof(int)); in zend_build_cfg()
587 block->successors[s++] = block_map[ZEND_OFFSET_TO_OPLINE_NUM(op_array, opline, Z_LVAL_P(zv))]; in zend_build_cfg()
590 …block->successors[s++] = block_map[ZEND_OFFSET_TO_OPLINE_NUM(op_array, opline, opline->extended_va… in zend_build_cfg()
591 block->successors[s++] = j + 1; in zend_build_cfg()
595 block->successors_count = 1; in zend_build_cfg()
596 block->successors[0] = j + 1; in zend_build_cfg()
678 zend_basic_block *block = &cfg->blocks[block_num]; in compute_postnum_recursive() local
684 for (s = 0; s < block->successors_count; s++) { in compute_postnum_recursive()
685 compute_postnum_recursive(postnum, cur, cfg, block->successors[s]); in compute_postnum_recursive()