Lines Matching refs:blocks
108 …define START_BLOCK_OP(opno) blocks[opno].start_opline = &op_array->opcodes[opno]; blocks[opno].sta…
117 zend_code_block *blocks, *cur_block; in find_code_blocks() local
121 blocks = cfg->blocks = zend_arena_calloc(&ctx->arena, op_array->last + 2, sizeof(zend_code_block)); in find_code_blocks()
123 blocks[0].start_opline = opline; in find_code_blocks()
124 blocks[0].start_opline_no = 0; in find_code_blocks()
190 cfg->try[i] = &blocks[op_array->try_catch_array[i].try_op]; in find_code_blocks()
191 cfg->catch[i] = &blocks[op_array->try_catch_array[i].catch_op]; in find_code_blocks()
194 blocks[op_array->try_catch_array[i].try_op].protected = 1; in find_code_blocks()
238 cfg->loop_start[j] = &blocks[op_array->brk_cont_array[j].start]; in find_code_blocks()
239 cfg->loop_cont[j] = &blocks[op_array->brk_cont_array[j].cont]; in find_code_blocks()
240 cfg->loop_brk[j] = &blocks[op_array->brk_cont_array[j].brk]; in find_code_blocks()
244 blocks[op_array->brk_cont_array[j].start].protected = 1; in find_code_blocks()
245 blocks[op_array->brk_cont_array[j].brk].protected = 1; in find_code_blocks()
258 cur_block = blocks; in find_code_blocks()
260 if (blocks[opno].start_opline) { in find_code_blocks()
262 cur_block->len = blocks[opno].start_opline - cur_block->start_opline; in find_code_blocks()
263 cur_block->next = &blocks[opno]; in find_code_blocks()
265 opline = blocks[opno].start_opline - 1; in find_code_blocks()
278 cur_block->op2_to = &blocks[ZEND_OP2(opline).opline_num]; in find_code_blocks()
280 cur_block->op1_to = &blocks[ZEND_OP1(opline).opline_num]; in find_code_blocks()
284 cur_block->op2_to = &blocks[ZEND_OP2(opline).opline_num]; in find_code_blocks()
288 cur_block->op1_to = &blocks[ZEND_OP1(opline).opline_num]; in find_code_blocks()
292 cur_block->op1_to = &blocks[ZEND_OP1(opline).opline_num]; in find_code_blocks()
293 cur_block->follow_to = &blocks[opno]; in find_code_blocks()
296 cur_block->op2_to = &blocks[ZEND_OP2(opline).opline_num]; in find_code_blocks()
297 cur_block->ext_to = &blocks[opline->extended_value]; in find_code_blocks()
300 cur_block->ext_to = &blocks[opline->extended_value]; in find_code_blocks()
301 cur_block->follow_to = &blocks[opno]; in find_code_blocks()
305 cur_block->ext_to = &blocks[opline->extended_value]; in find_code_blocks()
306 cur_block->follow_to = &blocks[opno]; in find_code_blocks()
318 cur_block->op2_to = &blocks[ZEND_OP2(opline).opline_num]; in find_code_blocks()
322 cur_block->follow_to = &blocks[opno]; in find_code_blocks()
330 cur_block->next = &blocks[op_array->last + 1]; in find_code_blocks()
509 zend_code_block *blocks = cfg->blocks; in zend_rebuild_access_path() local
510 zend_code_block *start = find_start? NULL : blocks; in zend_rebuild_access_path()
514 b = blocks; in zend_rebuild_access_path()
1183 zend_code_block *blocks = cfg->blocks; in assemble_code_blocks() local
1186 zend_code_block *cur_block = blocks; in assemble_code_blocks()
1251 for (cur_block = blocks; cur_block; cur_block = cur_block->next) { in assemble_code_blocks()
1291 …zation(zend_code_block *block, zend_op_array *op_array, zend_code_block *blocks, zend_cfg *cfg, ze… in zend_jmp_optimization() argument
1366 block->op1_to != blocks && in zend_jmp_optimization()
1395 zend_code_block *prev = blocks; in zend_jmp_optimization()
2032 zend_t_usage(cfg.blocks, op_array, usage, ctx); in optimize_cfg()
2035 for (cur_block = cfg.blocks; cur_block; cur_block = cur_block->next) { in optimize_cfg()
2043 for (cur_block = cfg.blocks; cur_block; cur_block = cur_block->next) { in optimize_cfg()
2047 zend_jmp_optimization(cur_block, op_array, cfg.blocks, &cfg, ctx); in optimize_cfg()
2055 zend_t_usage(cfg.blocks, op_array, usage, ctx); in optimize_cfg()