/PHP-8.2/Zend/Optimizer/ |
H A D | dfa_pass.c | 162 op_array->opcodes[target] = op_array->opcodes[i]; in zend_ssa_remove_nops() 1398 && op_array->opcodes[op_2].op1.var == op_array->opcodes[op_2].result.var in zend_dfa_optimize_op_array() 1414 && op_array->opcodes[op_2].op1.var == op_array->opcodes[op_2].result.var in zend_dfa_optimize_op_array() 1430 && op_array->opcodes[op_2].op2.var == op_array->opcodes[op_2].result.var in zend_dfa_optimize_op_array() 1438 op_array->opcodes[op_2].op1_type = op_array->opcodes[op_2].op2_type; in zend_dfa_optimize_op_array() 1439 op_array->opcodes[op_2].op1.var = op_array->opcodes[op_2].op2.var; in zend_dfa_optimize_op_array() 1552 && op_array->opcodes[op_2].op1.var == op_array->opcodes[op_2].result.var in zend_dfa_optimize_op_array() 1568 && op_array->opcodes[op_2].op1.var == op_array->opcodes[op_2].result.var in zend_dfa_optimize_op_array() 1584 && op_array->opcodes[op_2].op2.var == op_array->opcodes[op_2].result.var in zend_dfa_optimize_op_array() 1592 op_array->opcodes[op_2].op1_type = op_array->opcodes[op_2].op2_type; in zend_dfa_optimize_op_array() [all …]
|
H A D | nop_removal.c | 43 end = op_array->opcodes + op_array->last; in zend_optimizer_nop_removal() 44 for (opline = op_array->opcodes; opline < end; opline++) { in zend_optimizer_nop_removal() 47 if (opline->opcode == ZEND_JMP && ZEND_OP1_JMP_ADDR(opline) > op_array->opcodes + i) { in zend_optimizer_nop_removal() 65 zend_op *new_opline = op_array->opcodes + new_count; in zend_optimizer_nop_removal() 76 end = op_array->opcodes + op_array->last; in zend_optimizer_nop_removal() 79 for (opline = op_array->opcodes; opline<end; opline++) { in zend_optimizer_nop_removal()
|
H A D | dce.c | 352 && var->use_chain == (opline - ctx->op_array->opcodes)) { in try_remove_var_def() 353 zend_op *def_opline = &ctx->op_array->opcodes[def]; in try_remove_var_def() 441 zend_bitset_excl(ctx->instr_dead, opline - ctx->op_array->opcodes); in dce_instr() 577 if (op_array->opcodes[i].opcode == ZEND_OP_DATA) { in dce_optimize_op_array() 590 && !may_throw_dce_exception(&op_array->opcodes[i])) in dce_optimize_op_array() 592 if (op_array->opcodes[i].opcode == ZEND_NEW in dce_optimize_op_array() 593 && op_array->opcodes[i+1].opcode == ZEND_DO_FCALL in dce_optimize_op_array() 621 && (op_array->opcodes[i+1].opcode == ZEND_OP_DATA in dce_optimize_op_array() 622 || (op_array->opcodes[i].opcode == ZEND_NEW in dce_optimize_op_array() 623 && op_array->opcodes[i+1].opcode == ZEND_DO_FCALL))) { in dce_optimize_op_array() [all …]
|
H A D | zend_cfg.c | 44 zend_uchar opcode = opcodes[b->start + b->len - 1].opcode; in zend_mark_reachable() 100 zend_mark_reachable(opcodes, cfg, succ); in zend_mark_reachable() 113 zend_mark_reachable(op_array->opcodes, cfg, blocks + start); in zend_mark_reachable_blocks() 166 zend_mark_reachable(op_array->opcodes, cfg, b); in zend_mark_reachable_blocks() 174 zend_mark_reachable(op_array->opcodes, cfg, b); in zend_mark_reachable_blocks() 182 zend_mark_reachable(op_array->opcodes, cfg, b); in zend_mark_reachable_blocks() 212 zend_op *opline = &op_array->opcodes[j]; in zend_mark_reachable_blocks() 289 zend_op *opline = op_array->opcodes + i; in zend_build_cfg() 350 BB_START(OP_JMP_ADDR(opline, opline->op1) - op_array->opcodes); in zend_build_cfg() 359 BB_START(OP_JMP_ADDR(opline, opline->op1) - op_array->opcodes); in zend_build_cfg() [all …]
|
H A D | optimize_temp_vars_5.c | 63 end = op_array->opcodes; in zend_optimize_temporary_variables() 64 opline = &op_array->opcodes[op_array->last - 1]; in zend_optimize_temporary_variables() 76 end = op_array->opcodes; in zend_optimize_temporary_variables() 77 opline = &op_array->opcodes[op_array->last - 1]; in zend_optimize_temporary_variables()
|
H A D | zend_optimizer.c | 626 zend_op *end = op_array->opcodes + op_array->last; in zend_optimizer_replace_by_const() 644 zend_op *end = op_array->opcodes + op_array->last; in zend_optimizer_replace_by_const() 946 while (--free_opline >= op_array->opcodes) { in zend_optimizer_get_loop_var_def() 1078 opline = op_array->opcodes; in zend_revert_pass_two() 1106 zend_op *old_opcodes = op_array->opcodes; in zend_redo_pass_two() 1113 op_array->opcodes = (zend_op *) erealloc(op_array->opcodes, in zend_redo_pass_two() 1128 opline = op_array->opcodes; in zend_redo_pass_two() 1214 zend_op *old_opcodes = op_array->opcodes; in zend_redo_pass_two_ex() 1221 op_array->opcodes = (zend_op *) erealloc(op_array->opcodes, in zend_redo_pass_two_ex() 1236 opline = op_array->opcodes; in zend_redo_pass_two_ex() [all …]
|
H A D | block_pass.c | 67 zend_op *opcodes = op_array->opcodes; in strip_leading_nops() local 94 if (op_array->opcodes[i].opcode != ZEND_NOP) { in strip_nops() 96 op_array->opcodes[j] = op_array->opcodes[i]; in strip_nops() 104 MAKE_NOP(op_array->opcodes + j); in strip_nops() 148 opline = op_array->opcodes + block->start; in zend_optimize_block() 969 zend_op *op = op_array->opcodes + b->start; in assemble_code_blocks() 995 efree(op_array->opcodes); in assemble_code_blocks() 996 op_array->opcodes = new_opcodes; in assemble_code_blocks() 1438 opline = op_array->opcodes + block->start; in zend_t_usage() 1519 end = op_array->opcodes + block->start; in zend_t_usage() [all …]
|
H A D | zend_call_graph.c | 48 zend_op *opline = op_array->opcodes; in zend_analyze_calls() 259 map[call->caller_init_opline - op_array->opcodes] = call; in zend_build_call_map() 261 map[call->caller_call_opline - op_array->opcodes] = call; in zend_build_call_map() 265 map[call->arg_info[i].opline - op_array->opcodes] = call; in zend_build_call_map()
|
H A D | optimize_func_calls.c | 85 && func->op_array.opcodes[func->op_array.num_args].opcode == ZEND_RETURN) { in zend_try_inline_call() 87 zend_op *ret_opline = func->op_array.opcodes + func->op_array.num_args; in zend_try_inline_call() 112 …(Z_TYPE_P(CRT_CONSTANT_EX(&func->op_array, &func->op_array.opcodes[i], func->op_array.opcodes[i].o… in zend_try_inline_call() 152 zend_op *opline = op_array->opcodes; in zend_optimize_func_calls()
|
H A D | zend_func_info.c | 60 &ssa->ops[call_info->arg_info[0].opline - op_array->opcodes]); in zend_range_info() 62 &ssa->ops[call_info->arg_info[1].opline - op_array->opcodes]); in zend_range_info() 68 &ssa->ops[call_info->arg_info[2].opline - op_array->opcodes]); in zend_range_info()
|
H A D | scdf.c | 123 zend_op *opline = &scdf->op_array->opcodes[i]; in scdf_solve() 163 opline = &scdf->op_array->opcodes[j]; in scdf_solve() 216 if (is_live_loop_var_free(scdf, &op_array->opcodes[i], &scdf->ssa->ops[i])) { in kept_alive_by_loop_var_free() 237 zend_op *opline = &op_array->opcodes[i]; in cleanup_loop_var_free_block()
|
H A D | compact_vars.c | 38 zend_op *opline = &op_array->opcodes[i]; in zend_optimizer_compact_vars() 86 zend_op *opline = &op_array->opcodes[i]; in zend_optimizer_compact_vars()
|
H A D | escape_analysis.c | 104 zend_op *opline = op_array->opcodes + def; in zend_build_equi_escape_sets() 153 zend_op *opline = op_array->opcodes + def; in is_allocation_def() 217 zend_op *opline = op_array->opcodes + def; in is_local_def() 260 zend_op *opline = op_array->opcodes + use; in is_escape_use() 466 zend_op *opline = op_array->opcodes + use; in zend_ssa_escape_analysis()
|
H A D | pass3.c | 63 opline = op_array->opcodes; in zend_optimizer_pass3() 101 } else if (opline > op_array->opcodes && in zend_optimizer_pass3()
|
/PHP-8.2/Zend/ |
H A D | zend_vm_gen.php | 623 global $prefix, $opnames, $opcodes; 1689 …_handler($f, 1, $kind, $opcodes[$num]["op"], $op1, $op2, isset($opcodes[$num]["use"]), $opcodes[$n… 1718 …handler($f, 0, $kind, $opcodes[$num]["op"], "ANY", "ANY", isset($opcodes[$num]["use"]), $opcodes[$… 2359 foreach ($opcodes as $code => $dsc) { 2439 if (isset($opcodes[$code])) { 2492 if (isset($opcodes[$code])) { 2570 if (isset($opcodes[$code])) { 2587 ksort($opcodes); 2590 foreach ($opcodes as $dsc) { 2629 fputs($f,"\t".(isset($opcodes[$i]["op"])?'"'.$opcodes[$i]["op"].'"':"NULL").",\n"); [all …]
|
H A D | zend_opcode.c | 567 efree(op_array->opcodes); in destroy_op_array() 665 CG(zend_lineno) = op_array->opcodes[op_num].lineno; in zend_check_finally_breakout() 713 zend_op *use_opline = &op_array->opcodes[end]; in emit_live_range() 824 start = block_start_op - op_array->opcodes; in emit_live_range() 835 start = def_opline + 1 - op_array->opcodes; in emit_live_range() 844 start = def_opline + 1 - op_array->opcodes; in emit_live_range() 845 end = use_opline - op_array->opcodes; in emit_live_range() 902 zend_op *opline = &op_array->opcodes[opnum]; in zend_calc_live_ranges() 1032 op_array->opcodes = (zend_op *) erealloc(op_array->opcodes, sizeof(zend_op)*op_array->last); in pass_two() 1040 op_array->opcodes = (zend_op *) erealloc(op_array->opcodes, in pass_two() [all …]
|
H A D | zend_generators.c | 118 if (execute_data->opline != op_array->opcodes) { in zend_generator_cleanup_unfinished_execution() 120 uint32_t op_num = execute_data->opline - op_array->opcodes - 1; in zend_generator_cleanup_unfinished_execution() 296 op_num = ex->opline - ex->func->op_array.opcodes - 1; in zend_generator_dtor_storage() 317 ZEND_CALL_VAR(ex, ex->func->op_array.opcodes[try_catch->finally_end].op1.var); in zend_generator_dtor_storage() 326 ex->opline = &ex->func->op_array.opcodes[try_catch->finally_op]; in zend_generator_dtor_storage() 344 ZEND_CALL_VAR(ex, ex->func->op_array.opcodes[try_catch->finally_end].op1.var); in zend_generator_dtor_storage() 347 zend_op *retval_op = &ex->func->op_array.opcodes[Z_OPLINE_NUM_P(fast_call)]; in zend_generator_dtor_storage()
|
H A D | zend_compile.h | 459 zend_op *opcodes; member 651 ((char*)&(op_array)->opcodes[opline_num] - (char*)(opline)) 657 (ZEND_OFFSET_TO_OPLINE(base, offset) - op_array->opcodes) 671 (node).jmp_addr = (op_array)->opcodes + (node).opline_num; \ 676 (node).opline_num = (node).jmp_addr - (op_array)->opcodes; \
|
/PHP-8.2/Zend/tests/ |
H A D | by_ref_optimization.phpt | 2 Don't optimize send opcodes that differ in by-ref behavior
|
H A D | bug73338.phpt | 2 Bug #73338: Ensure exceptions in function init opcodes are cleaned properly
|
/PHP-8.2/ext/opcache/jit/ |
H A D | zend_jit.c | 928 uint32_t pos = rt_opline - op_array->opcodes; in dasm_link_and_encode() 1780 opline = op_array->opcodes + n; in zend_jit_compute_liveness() 2769 if (opline == op_array->opcodes || in zend_jit() 2899 opline = op_array->opcodes + i; in zend_jit() 3961 if (opline == op_array->opcodes || in zend_jit() 4255 zend_op *opline = op_array->opcodes; in zend_runtime_jit() 4308 opline = op_array->opcodes; in zend_jit_check_funcs() 4369 zend_op *opline = op_array->opcodes; in zend_jit_setup_hot_counters_ex() 4455 zend_op *opline = op_array->opcodes; in zend_jit_op_array() 4484 zend_op *opline = op_array->opcodes; in zend_jit_op_array() [all …]
|
/PHP-8.2/ext/opcache/tests/jit/ |
H A D | ignored_opcodes.phpt | 2 JIT: ignored opcodes
|
/PHP-8.2/ext/opcache/ |
H A D | zend_accelerator_util_funcs.c | 265 zend_op *end = op_array->opcodes + op_array->last; in zend_accel_build_delayed_early_binding_list() 266 for (zend_op *opline = op_array->opcodes; opline < end; opline++) { in zend_accel_build_delayed_early_binding_list() 275 for (zend_op *opline = op_array->opcodes; opline < end; opline++) { in zend_accel_build_delayed_early_binding_list() 297 zend_op *opline_end = op_array->opcodes + op_array->last; in zend_accel_finalize_delayed_early_binding_list() 298 for (zend_op *opline = op_array->opcodes; opline < opline_end; opline++) { in zend_accel_finalize_delayed_early_binding_list()
|
H A D | zend_persist.c | 419 persist_ptr = zend_shared_alloc_get_xlat_entry(op_array->opcodes); in zend_persist_op_array_ex() 421 op_array->opcodes = persist_ptr; in zend_persist_op_array_ex() 522 …zend_op *new_opcodes = zend_shared_memdup_put(op_array->opcodes, sizeof(zend_op) * op_array->last); in zend_persist_op_array_ex() 545 ((zval*)((char*)(op_array->opcodes + (opline - new_opcodes)) + in zend_persist_op_array_ex() 557 ((zval*)((char*)(op_array->opcodes + (opline - new_opcodes)) + in zend_persist_op_array_ex() 568 opline->op1.jmp_addr = &new_opcodes[opline->op1.jmp_addr - op_array->opcodes]; in zend_persist_op_array_ex() 580 opline->op2.jmp_addr = &new_opcodes[opline->op2.jmp_addr - op_array->opcodes]; in zend_persist_op_array_ex() 584 opline->op2.jmp_addr = &new_opcodes[opline->op2.jmp_addr - op_array->opcodes]; in zend_persist_op_array_ex() 599 efree(op_array->opcodes); in zend_persist_op_array_ex() 600 op_array->opcodes = new_opcodes; in zend_persist_op_array_ex() [all …]
|
H A D | zend_file_cache.c | 466 if (IS_SERIALIZED(op_array->opcodes)) { 472 if (UNEXPECTED(zend_shared_alloc_get_xlat_entry(op_array->opcodes))) { 476 SERIALIZE_PTR(op_array->opcodes); 489 zend_shared_alloc_register_xlat_entry(op_array->opcodes, op_array->opcodes); 522 SERIALIZE_PTR(op_array->opcodes); 523 opline = op_array->opcodes; 1326 if (IS_UNSERIALIZED(op_array->opcodes)) { 1335 UNSERIALIZE_PTR(op_array->opcodes); 1373 UNSERIALIZE_PTR(op_array->opcodes); 1374 opline = op_array->opcodes;
|