Home
last modified time | relevance | path

Searched refs:opcode (Results 1 – 25 of 109) sorted by relevance

12345

/PHP-8.3/Zend/
H A Dzend_vm_opcodes.c439 ZEND_API const char* ZEND_FASTCALL zend_get_opcode_name(uint8_t opcode) { in zend_get_opcode_name() argument
440 if (UNEXPECTED(opcode > ZEND_VM_LAST_OPCODE)) { in zend_get_opcode_name()
443 return zend_vm_opcodes_names[opcode]; in zend_get_opcode_name()
445 ZEND_API uint32_t ZEND_FASTCALL zend_get_opcode_flags(uint8_t opcode) { in zend_get_opcode_flags() argument
446 if (UNEXPECTED(opcode > ZEND_VM_LAST_OPCODE)) { in zend_get_opcode_flags()
447 opcode = ZEND_NOP; in zend_get_opcode_flags()
449 return zend_vm_opcodes_flags[opcode]; in zend_get_opcode_flags()
452 uint8_t opcode; in zend_get_opcode_id() local
453 …for (opcode = 0; opcode < (sizeof(zend_vm_opcodes_names) / sizeof(zend_vm_opcodes_names[0])) - 1; in zend_get_opcode_id()
454 const char *opcode_name = zend_vm_opcodes_names[opcode]; in zend_get_opcode_id()
[all …]
H A Dzend_opcode.c643 opline->opcode = ZEND_NOP; in zend_update_extended_stmts()
651 opline->opcode = ZEND_NOP; in zend_update_extended_stmts()
727 switch (def_opline->opcode) { in emit_live_range()
772 switch (def_opline->opcode) { in emit_live_range()
875 if (opline->opcode == ZEND_CASE in keeps_op1_alive()
879 || opline->opcode == ZEND_MATCH in keeps_op1_alive()
889 && opline->opcode != ZEND_ROPE_ADD); in keeps_op1_alive()
1073 switch (opline->opcode) { in pass_two()
1096 opline->opcode = ZEND_JMP; in pass_two()
1191 switch (opcode) { in get_unary_op()
[all …]
H A Dzend_vm.h24 ZEND_API void ZEND_FASTCALL zend_vm_set_opcode_handler(zend_op* opcode);
25 ZEND_API void ZEND_FASTCALL zend_vm_set_opcode_handler_ex(zend_op* opcode, uint32_t op1_info, uint3…
H A DREADME.md33 `ZEND_VM` architecture allows specializing opcode handlers according to
42 opcode handlers and helpers. The typical opcode handler template looks like
52 `<OPCODE-NUMBER>` is a opcode number (0, 1, ...)
53 `<OPCODE>` is an opcode name (ZEN_NOP, ZEND_ADD, :)
59 same as in old `zend_execute.c`, but now it uses macros to access opcode
124 `zend_vm_opcodes.h` and `zend_vm_execute.h`. The first file is a list of opcode
129 different opcode threading model using `--with-vm-kind=CALL|SWITCH|GOTO|HYBRID`.
130 You can disable opcode specialization using `--without-specializer`.
H A Dzend_compile.c60 uint8_t opcode; member
2211 opline->opcode = opcode; in zend_emit_op()
2231 opline->opcode = opcode; in zend_emit_op_tmp()
2366 tmp_opline.opcode = opcode; in zend_delayed_emit_op()
5113 opline->opcode = loop_var->opcode; in zend_handle_loops_and_finally_ex()
8716 if (!(opcode == ZEND_ADD || opcode == ZEND_SUB || opcode == ZEND_MUL || opcode == ZEND_DIV in zend_binary_op_produces_error()
8717 || opcode == ZEND_POW || opcode == ZEND_MOD || opcode == ZEND_SL || opcode == ZEND_SR in zend_binary_op_produces_error()
8718 || opcode == ZEND_BW_OR || opcode == ZEND_BW_AND || opcode == ZEND_BW_XOR)) { in zend_binary_op_produces_error()
8735 if ((opcode == ZEND_BW_OR || opcode == ZEND_BW_AND || opcode == ZEND_BW_XOR) in zend_binary_op_produces_error()
8761 if (opcode == ZEND_SL || opcode == ZEND_SR || opcode == ZEND_BW_OR in zend_binary_op_produces_error()
[all …]
/PHP-8.3/ext/zend_test/tests/
H A Dobserver_opline_01.phpt25 <!-- opcode: 'ZEND_INIT_FCALL' -->
27 <!-- opcode: 'ZEND_INIT_FCALL' -->
29 <!-- opcode: 'ZEND_ECHO' -->
31 <!-- opcode: 'ZEND_ECHO' -->
33 <!-- opcode: 'ZEND_RETURN' -->
40 <!-- opcode: 'ZEND_ECHO' -->
42 <!-- opcode: 'ZEND_ECHO' -->
46 <!-- opcode: 'ZEND_RETURN' -->
53 <!-- opcode: 'ZEND_ECHO' -->
55 <!-- opcode: 'ZEND_RETURN' -->
[all …]
/PHP-8.3/Zend/Optimizer/
H A Dpass3.c68 switch (opline->opcode) { in zend_optimizer_pass3()
74 if (target->opcode == ZEND_JMP) { in zend_optimizer_pass3()
117 if (target->opcode == ZEND_JMP) { in zend_optimizer_pass3()
135 if (target->opcode == ZEND_JMP) { in zend_optimizer_pass3()
140 } else if (target->opcode == opline->opcode && in zend_optimizer_pass3()
146 } else if (target->opcode == INV_COND(opline->opcode) && in zend_optimizer_pass3()
176 } else if (target->opcode == opline->opcode-3 && in zend_optimizer_pass3()
183 } else if (target->opcode == opline->opcode && in zend_optimizer_pass3()
191 } else if (target->opcode == INV_EX_COND(opline->opcode) && in zend_optimizer_pass3()
197 } else if (target->opcode == INV_EX_COND_EX(opline->opcode) && in zend_optimizer_pass3()
[all …]
H A Doptimize_func_calls.c45 switch (opline->opcode) { in zend_delete_call_instructions()
123 opline->opcode = ZEND_QM_ASSIGN; in zend_try_inline_call()
165 switch (opline->opcode) { in zend_optimize_func_calls()
197 fcall->opcode = ZEND_INIT_FCALL; in zend_optimize_func_calls()
241 if ((opline->opcode == ZEND_FETCH_OBJ_FUNC_ARG || opline->opcode == ZEND_FETCH_DIM_FUNC_ARG) in zend_optimize_func_calls()
248 opline->opcode -= 9; in zend_optimize_func_calls()
262 opline->opcode -= 12; in zend_optimize_func_calls()
277 opline->opcode = ZEND_SEND_VAL; in zend_optimize_func_calls()
313 opline->opcode = ZEND_SEND_REF; in zend_optimize_func_calls()
315 opline->opcode = ZEND_SEND_VAR; in zend_optimize_func_calls()
[all …]
H A Dblock_pass.c215 switch (opline->opcode) { in zend_optimize_block()
450 opline->opcode = in zend_optimize_block()
463 opline->opcode = in zend_optimize_block()
626 opline->opcode = INV_COND(opline->opcode); in zend_optimize_block()
1272 } else if (target->opcode == last_op->opcode && in zend_jmp_optimization()
1276 } else if (target->opcode == INV_COND(last_op->opcode) && in zend_jmp_optimization()
1317 last_op->opcode = INV_COND(last_op->opcode); in zend_jmp_optimization()
1346 } else if (target->opcode == last_op->opcode-3 && in zend_jmp_optimization()
1351 } else if (target->opcode == last_op->opcode && in zend_jmp_optimization()
1357 } else if (target->opcode == INV_EX_COND(last_op->opcode) && in zend_jmp_optimization()
[all …]
H A Doptimize_temp_vars_5.c82 if (opline->opcode == ZEND_ROPE_END) { in zend_optimize_temporary_variables()
108 (opline->opcode == ZEND_RETURN || in zend_optimize_temporary_variables()
109 opline->opcode == ZEND_GENERATOR_RETURN || in zend_optimize_temporary_variables()
110 opline->opcode == ZEND_RETURN_BY_REF || in zend_optimize_temporary_variables()
111 opline->opcode == ZEND_FREE || in zend_optimize_temporary_variables()
112 opline->opcode == ZEND_FE_FREE)) { in zend_optimize_temporary_variables()
116 if (curr->opcode == ZEND_FAST_CALL) { in zend_optimize_temporary_variables()
119 } else if (curr->opcode != ZEND_FREE && in zend_optimize_temporary_variables()
120 curr->opcode != ZEND_FE_FREE && in zend_optimize_temporary_variables()
160 if (opline->opcode != ZEND_FAST_CALL) { in zend_optimize_temporary_variables()
[all …]
H A Ddfa_pass.c323 if (opline->opcode == ZEND_NEW) { in opline_supports_assign_contraction()
328 if (opline->opcode == ZEND_DO_ICALL || opline->opcode == ZEND_DO_UCALL in opline_supports_assign_contraction()
329 || opline->opcode == ZEND_DO_FCALL || opline->opcode == ZEND_DO_FCALL_BY_NAME) { in opline_supports_assign_contraction()
337 if (opline->opcode == ZEND_POST_INC || opline->opcode == ZEND_POST_DEC) { in opline_supports_assign_contraction()
349 if (opline->opcode == ZEND_CAST in opline_supports_assign_contraction()
639 switch (opline->opcode) { in zend_ssa_replace_control_link()
771 switch (opline->opcode) { in zend_dfa_optimize_jmps()
789 opline->opcode = ZEND_JMP; in zend_dfa_optimize_jmps()
815 opline->opcode = ZEND_JMP; in zend_dfa_optimize_jmps()
970 opline->opcode = ZEND_JMP; in zend_dfa_optimize_jmps()
[all …]
H A Dpass1.c53 opline->opcode = ZEND_QM_ASSIGN; in replace_by_const_or_qm_assign()
69 switch (opline->opcode) { in zend_optimizer_pass1()
197 while (send1_opline->opcode == ZEND_NOP) { in zend_optimizer_pass1()
220 while (init_opline->opcode == ZEND_NOP) { in zend_optimizer_pass1()
243 opline->opcode = ZEND_DECLARE_CONST; in zend_optimizer_pass1()
302 if (opline->opcode == ZEND_JMPZ_EX) { in zend_optimizer_pass1()
303 opline->opcode = ZEND_QM_ASSIGN; in zend_optimizer_pass1()
310 if (opline->opcode == ZEND_JMPNZ_EX) { in zend_optimizer_pass1()
311 opline->opcode = ZEND_QM_ASSIGN; in zend_optimizer_pass1()
327 if (opline->opcode == ZEND_JMPZ) { in zend_optimizer_pass1()
[all …]
H A Descape_analysis.c108 if (opline->opcode != ZEND_ASSIGN) { in zend_build_equi_escape_sets()
123 if (opline->opcode != ZEND_QM_ASSIGN) { in zend_build_equi_escape_sets()
156 switch (opline->opcode) { in is_allocation_def()
198 switch (opline->opcode) { in is_allocation_def()
227 switch (opline->opcode) { in is_local_def()
252 switch (opline->opcode) { in is_local_def()
277 switch (opline->opcode) { in is_escape_use()
322 if ((opline-1)->opcode != ZEND_ASSIGN_DIM in is_escape_use()
346 switch (opline->opcode) { in is_escape_use()
367 switch (opline->opcode) { in is_escape_use()
[all …]
H A Dnop_removal.c47 if (opline->opcode == ZEND_JMP && ZEND_OP1_JMP_ADDR(opline) > op_array->opcodes + i) { in zend_optimizer_nop_removal()
51 while (target->opcode == ZEND_NOP) { in zend_optimizer_nop_removal()
56 opline->opcode = ZEND_NOP; in zend_optimizer_nop_removal()
61 if (opline->opcode == ZEND_NOP) { in zend_optimizer_nop_removal()
H A Dsccp.c211 switch (opline->opcode) { in can_replace_op1()
281 switch (opline->opcode) { in can_replace_op2()
677 if (opcode == ZEND_PRE_INC in ct_eval_incdec()
678 || opcode == ZEND_POST_INC in ct_eval_incdec()
875 switch (opline->opcode) { in sccp_visit_instr()
1237 switch (opline->opcode) { in sccp_visit_instr()
1392 if (opline->opcode == ZEND_PRE_INC_OBJ || opline->opcode == ZEND_PRE_DEC_OBJ) { in sccp_visit_instr()
1670 if (opline->opcode != ZEND_SEND_VAL && opline->opcode != ZEND_SEND_VAR) { in sccp_visit_instr()
1783 switch (opline->opcode) { in sccp_mark_feasible_successors()
1813 switch (opline->opcode) { in sccp_mark_feasible_successors()
[all …]
H A Dzend_optimizer.c222 opline->opcode = ZEND_FREE; in zend_optimizer_convert_to_free_op1()
281 switch (opline->opcode) { in zend_optimizer_update_op1_const()
283 switch ((opline-1)->opcode) { in zend_optimizer_update_op1_const()
444 switch (opline->opcode) { in zend_optimizer_update_op2_const()
631 switch (opline->opcode) { in zend_optimizer_replace_by_const()
684 } while (opline->opcode != ZEND_RETURN && opline->opcode != ZEND_RETURN_BY_REF); in zend_optimizer_replace_by_const()
707 switch (new_opline->opcode) { in zend_optimizer_migrate_jump()
751 switch (opline->opcode) { in zend_optimizer_shift_jump()
833 switch (opline->opcode) { in zend_optimizer_get_called_func()
1143 switch (opline->opcode) { in zend_redo_pass_two()
[all …]
H A Ddce.c78 switch (opline->opcode) { in may_have_side_effects()
294 || (opline->opcode == ZEND_ASSIGN in add_operands_to_worklists()
303 || (opline->opcode == ZEND_FE_FETCH_R in add_operands_to_worklists()
350 switch (def_opline->opcode) { in try_remove_var_def()
392 switch (opline->opcode) { in is_free_of_live_var()
413 if (opline->opcode == ZEND_NOP) { in dce_instr()
425 && opline->opcode != ZEND_CASE && opline->opcode != ZEND_CASE_STRICT) { in dce_instr()
449 opline->opcode = ZEND_FREE; in dce_instr()
572 if (op_array->opcodes[i].opcode == ZEND_OP_DATA) { in dce_optimize_op_array()
587 if (op_array->opcodes[i].opcode == ZEND_NEW in dce_optimize_op_array()
[all …]
H A Dzend_inference.c801 switch (opcode) { in zend_inference_calc_binary_op_range()
2272 switch (opcode) { in binary_op_result_type()
2716 if (opline->opcode == ZEND_COALESCE || opline->opcode == ZEND_JMP_SET) { in _zend_update_type_info()
3612 uint8_t opcode; in _zend_update_type_info() local
3620 opcode = op_array->opcodes[j].opcode; in _zend_update_type_info()
3627 opcode = ssa_opcodes[j]->opcode; in _zend_update_type_info()
3629 switch (opcode) { in _zend_update_type_info()
3715 opline->opcode != ZEND_FETCH_DIM_R && opline->opcode != ZEND_FETCH_DIM_IS in _zend_update_type_info()
4141 return opline->opcode == ZEND_ADD || opline->opcode == ZEND_SUB in is_narrowable_instr()
4142 || opline->opcode == ZEND_MUL || opline->opcode == ZEND_DIV; in is_narrowable_instr()
[all …]
H A Dzend_cfg.c44 uint8_t opcode = opcodes[b->start + b->len - 1].opcode; in zend_mark_reachable() local
45 if (opcode == ZEND_MATCH) { in zend_mark_reachable()
47 } else if (opcode == ZEND_SWITCH_LONG || opcode == ZEND_SWITCH_STRING) { in zend_mark_reachable()
54 if (opcode == ZEND_JMP) { in zend_mark_reachable()
62 opcode == ZEND_YIELD || in zend_mark_reachable()
64 opcode == ZEND_DO_FCALL || in zend_mark_reachable()
65 opcode == ZEND_DO_UCALL || in zend_mark_reachable()
71 if (opcode == ZEND_RECV || in zend_mark_reachable()
72 opcode == ZEND_RECV_INIT) { in zend_mark_reachable()
290 switch (opline->opcode) { in zend_build_cfg()
[all …]
H A Dzend_ssa.h222 if (opline->opcode == ZEND_ASSIGN in zend_ssa_is_no_val_use()
223 || opline->opcode == ZEND_UNSET_CV in zend_ssa_is_no_val_use()
224 || opline->opcode == ZEND_BIND_GLOBAL in zend_ssa_is_no_val_use()
225 || opline->opcode == ZEND_BIND_STATIC) { in zend_ssa_is_no_val_use()
228 if (opline->opcode == ZEND_FE_FETCH_R || opline->opcode == ZEND_FE_FETCH_RW) { in zend_ssa_is_no_val_use()
232 && opline->opcode != ZEND_ADD_ARRAY_ELEMENT in zend_ssa_is_no_val_use()
233 && opline->opcode != ZEND_ADD_ARRAY_UNPACK) { in zend_ssa_is_no_val_use()
/PHP-8.3/ext/opcache/jit/
H A Dzend_jit_vm_helpers.c673 && opline->opcode != ZEND_ROPE_ADD
674 && opline->opcode != ZEND_ROPE_END
675 && opline->opcode != ZEND_NEW
702 && opline->opcode != ZEND_INSTANCEOF
719 || (opline->opcode != ZEND_FE_FETCH_R
740 if (opline->opcode == ZEND_ASSIGN_DIM ||
741 opline->opcode == ZEND_ASSIGN_OBJ ||
777 switch (opline->opcode) {
875 if (opline->opcode == ZEND_DO_FCALL
876 || opline->opcode == ZEND_DO_ICALL
[all …]
H A Dzend_jit_trace.c297 switch (opline->opcode) { in zend_jit_trace_may_exit()
626 switch (opline->opcode) { in zend_jit_trace_op_len()
1050 switch (opline->opcode) { in zend_jit_trace_find_init_fcall_op()
1693 switch (opline->opcode) { in zend_jit_trace_build_tssa()
2245 if ((opline->opcode != ZEND_FE_FETCH_R && opline->opcode != ZEND_FE_FETCH_RW) in zend_jit_trace_build_tssa()
2923 || (opline->opcode != ZEND_PRE_INC && opline->opcode != ZEND_PRE_DEC)) { in zend_jit_trace_allocate_registers()
3759 switch (opline->opcode) { in zend_jit_trace_update_condition_ranges()
6214 if (opline->opcode != ZEND_NOP && opline->opcode != ZEND_JMP) { in zend_jit_trace()
6344 && ((opline->opcode != ZEND_QM_ASSIGN && opline->opcode != ZEND_CAST) in zend_jit_trace()
8389 switch (opline->opcode) { in zend_jit_trace_supported()
[all …]
/PHP-8.3/ext/opcache/tests/jit/
H A Dignored_opcodes.phpt29 <!-- opcode: 'ZEND_BEGIN_SILENCE' in user handler -->
30 <!-- opcode: 'ZEND_END_SILENCE' in user handler -->
31 <!-- opcode: 'ZEND_EXIT' in user handler -->
/PHP-8.3/Zend/tests/
H A Dbug81684.phpt2 Bug #81684: ??= on $GLOBALS produces an invalid opcode
5 $GLOBALS['x'] ??= 'x'; // Fatal error: Invalid opcode 23/1/0
H A Dbug73663.phpt2 Bug #73663 ("Invalid opcode 65/16/8" occurs with a variable created with list())
15 var_dump(list($val) = $array); // NG: Invalid opcode

Completed in 111 milliseconds

12345