Home
last modified time | relevance | path

Searched refs:opcodes (Results 1 – 25 of 61) sorted by relevance

123

/PHP-8.2/Zend/Optimizer/
H A Ddfa_pass.c162 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 Dnop_removal.c43 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 Ddce.c352 && 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 Dzend_cfg.c44 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 Doptimize_temp_vars_5.c63 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 Dzend_optimizer.c626 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 Dblock_pass.c67 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 Dzend_call_graph.c48 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 Doptimize_func_calls.c85 && 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 Dzend_func_info.c60 &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 Dscdf.c123 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 Dcompact_vars.c38 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 Descape_analysis.c104 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 Dpass3.c63 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 Dzend_vm_gen.php623 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 Dzend_opcode.c567 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 Dzend_generators.c118 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 Dzend_compile.h459 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 Dby_ref_optimization.phpt2 Don't optimize send opcodes that differ in by-ref behavior
H A Dbug73338.phpt2 Bug #73338: Ensure exceptions in function init opcodes are cleaned properly
/PHP-8.2/ext/opcache/jit/
H A Dzend_jit.c928 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 Dignored_opcodes.phpt2 JIT: ignored opcodes
/PHP-8.2/ext/opcache/
H A Dzend_accelerator_util_funcs.c265 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 Dzend_persist.c419 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 Dzend_file_cache.c466 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;

Completed in 70 milliseconds

123