Home
last modified time | relevance | path

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

12345

/php-src/Zend/
H A Dzend_vm_opcodes.c451 ZEND_API const char* ZEND_FASTCALL zend_get_opcode_name(uint8_t opcode) { in zend_get_opcode_name() argument
452 if (UNEXPECTED(opcode > ZEND_VM_LAST_OPCODE)) { in zend_get_opcode_name()
455 return zend_vm_opcodes_names[opcode]; in zend_get_opcode_name()
457 ZEND_API uint32_t ZEND_FASTCALL zend_get_opcode_flags(uint8_t opcode) { in zend_get_opcode_flags() argument
458 if (UNEXPECTED(opcode > ZEND_VM_LAST_OPCODE)) { in zend_get_opcode_flags()
459 opcode = ZEND_NOP; in zend_get_opcode_flags()
461 return zend_vm_opcodes_flags[opcode]; in zend_get_opcode_flags()
464 uint8_t opcode; in zend_get_opcode_id() local
465 …for (opcode = 0; opcode < (sizeof(zend_vm_opcodes_names) / sizeof(zend_vm_opcodes_names[0])) - 1; in zend_get_opcode_id()
466 const char *opcode_name = zend_vm_opcodes_names[opcode]; in zend_get_opcode_id()
[all …]
H A Dzend_verify_type_inference.h134 && opline->opcode != ZEND_ROPE_ADD in zend_verify_inference_use()
169 && opline->opcode != ZEND_FE_FETCH_R in zend_verify_inference_def()
175 && opline->opcode != ZEND_ROPE_INIT in zend_verify_inference_def()
176 && opline->opcode != ZEND_ROPE_ADD in zend_verify_inference_def()
178 && opline->opcode != ZEND_JMP_SET in zend_verify_inference_def()
179 && opline->opcode != ZEND_JMP_NULL in zend_verify_inference_def()
180 && opline->opcode != ZEND_COALESCE in zend_verify_inference_def()
185 && opline->opcode != ZEND_DO_FCALL in zend_verify_inference_def()
186 && opline->opcode != ZEND_DO_UCALL in zend_verify_inference_def()
189 && opline->opcode != ZEND_FE_FETCH_R in zend_verify_inference_def()
[all …]
H A Dzend_opcode.c660 opline->opcode = ZEND_NOP; in zend_update_extended_stmts()
668 opline->opcode = ZEND_NOP; in zend_update_extended_stmts()
744 switch (def_opline->opcode) { in emit_live_range()
789 switch (def_opline->opcode) { in emit_live_range()
893 if (opline->opcode == ZEND_CASE in keeps_op1_alive()
897 || opline->opcode == ZEND_MATCH in keeps_op1_alive()
907 && opline->opcode != ZEND_ROPE_ADD); in keeps_op1_alive()
1091 switch (opline->opcode) { in pass_two()
1114 opline->opcode = ZEND_JMP; in pass_two()
1210 switch (opcode) { in get_unary_op()
[all …]
H A Dzend_frameless_function.h37 #define ZEND_OP_IS_FRAMELESS_ICALL(opcode) ((opcode) >= ZEND_FRAMELESS_ICALL_0 && (opcode) <= ZEND_… argument
38 #define ZEND_FLF_NUM_ARGS(opcode) ((opcode) - ZEND_FRAMELESS_ICALL_0) argument
H A Dzend_vm.h29 ZEND_API void ZEND_FASTCALL zend_vm_set_opcode_handler(zend_op* opcode);
30 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`.
/php-src/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-src/Zend/Optimizer/
H A Dpass3.c68 switch (opline->opcode) { in zend_optimizer_pass3()
74 if (target->opcode == ZEND_JMP) { in zend_optimizer_pass3()
116 if (target->opcode == ZEND_JMP) { in zend_optimizer_pass3()
134 if (target->opcode == ZEND_JMP) { in zend_optimizer_pass3()
139 } else if (target->opcode == opline->opcode && in zend_optimizer_pass3()
145 } else if (target->opcode == INV_COND(opline->opcode) && in zend_optimizer_pass3()
175 } else if (target->opcode == opline->opcode-3 && in zend_optimizer_pass3()
182 } else if (target->opcode == opline->opcode && in zend_optimizer_pass3()
190 } else if (target->opcode == INV_EX_COND(opline->opcode) && in zend_optimizer_pass3()
196 } 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()
124 opline->opcode = ZEND_QM_ASSIGN; in zend_try_inline_call()
166 switch (opline->opcode) { in zend_optimize_func_calls()
180 && opline->opcode != ZEND_NEW in zend_optimize_func_calls()
201 fcall->opcode = ZEND_INIT_FCALL; in zend_optimize_func_calls()
246 if ((opline->opcode == ZEND_FETCH_OBJ_FUNC_ARG || opline->opcode == ZEND_FETCH_DIM_FUNC_ARG) in zend_optimize_func_calls()
253 opline->opcode -= 9; in zend_optimize_func_calls()
267 opline->opcode -= 12; in zend_optimize_func_calls()
282 opline->opcode = ZEND_SEND_VAL; in zend_optimize_func_calls()
318 opline->opcode = ZEND_SEND_REF; 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()
1271 } else if (target->opcode == last_op->opcode && in zend_jmp_optimization()
1275 } else if (target->opcode == INV_COND(last_op->opcode) && in zend_jmp_optimization()
1316 last_op->opcode = INV_COND(last_op->opcode); in zend_jmp_optimization()
1345 } else if (target->opcode == last_op->opcode-3 && in zend_jmp_optimization()
1350 } else if (target->opcode == last_op->opcode && in zend_jmp_optimization()
1356 } 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 Dpass1.c53 opline->opcode = ZEND_QM_ASSIGN; in replace_by_const_or_qm_assign()
69 switch (opline->opcode) { in zend_optimizer_pass1()
190 while (send1_opline->opcode == ZEND_NOP) { in zend_optimizer_pass1()
213 while (init_opline->opcode == ZEND_NOP) { in zend_optimizer_pass1()
236 opline->opcode = ZEND_DECLARE_CONST; in zend_optimizer_pass1()
295 if (opline->opcode == ZEND_JMPZ_EX) { in zend_optimizer_pass1()
296 opline->opcode = ZEND_QM_ASSIGN; in zend_optimizer_pass1()
303 if (opline->opcode == ZEND_JMPNZ_EX) { in zend_optimizer_pass1()
304 opline->opcode = ZEND_QM_ASSIGN; in zend_optimizer_pass1()
320 if (opline->opcode == ZEND_JMPZ) { in zend_optimizer_pass1()
[all …]
H A Ddfa_pass.c323 if (opline->opcode == ZEND_NEW) { in opline_supports_assign_contraction()
329 switch (opline->opcode) { in opline_supports_assign_contraction()
341 if (opline->opcode == ZEND_DO_ICALL || opline->opcode == ZEND_DO_UCALL in opline_supports_assign_contraction()
342 || opline->opcode == ZEND_DO_FCALL || opline->opcode == ZEND_DO_FCALL_BY_NAME) { in opline_supports_assign_contraction()
350 if (opline->opcode == ZEND_POST_INC || opline->opcode == ZEND_POST_DEC) { in opline_supports_assign_contraction()
362 if (opline->opcode == ZEND_CAST in opline_supports_assign_contraction()
652 switch (opline->opcode) { in zend_ssa_replace_control_link()
785 switch (opline->opcode) { in zend_dfa_optimize_jmps()
803 opline->opcode = ZEND_JMP; in zend_dfa_optimize_jmps()
984 opline->opcode = ZEND_JMP; in zend_dfa_optimize_jmps()
[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 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()
880 switch (opline->opcode) { in sccp_visit_instr()
1242 switch (opline->opcode) { in sccp_visit_instr()
1397 if (opline->opcode == ZEND_PRE_INC_OBJ || opline->opcode == ZEND_PRE_DEC_OBJ) { in sccp_visit_instr()
1675 if (opline->opcode != ZEND_SEND_VAL && opline->opcode != ZEND_SEND_VAR) { in sccp_visit_instr()
1833 switch (opline->opcode) { in sccp_mark_feasible_successors()
1863 switch (opline->opcode) { in sccp_mark_feasible_successors()
[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 Ddce.c78 switch (opline->opcode) { in may_have_side_effects()
299 || (opline->opcode == ZEND_ASSIGN in add_operands_to_worklists()
308 || (opline->opcode == ZEND_FE_FETCH_R in add_operands_to_worklists()
355 switch (def_opline->opcode) { in try_remove_var_def()
397 switch (opline->opcode) { in is_free_of_live_var()
418 if (opline->opcode == ZEND_NOP) { in dce_instr()
430 && opline->opcode != ZEND_CASE && opline->opcode != ZEND_CASE_STRICT) { in dce_instr()
454 opline->opcode = ZEND_FREE; in dce_instr()
577 if (op_array->opcodes[i].opcode == ZEND_OP_DATA) { in dce_optimize_op_array()
592 if (op_array->opcodes[i].opcode == ZEND_NEW in dce_optimize_op_array()
[all …]
H A Dzend_inference.c791 switch (opcode) { in zend_inference_calc_binary_op_range()
2267 switch (opcode) { in binary_op_result_type()
2711 if (opline->opcode == ZEND_COALESCE || opline->opcode == ZEND_JMP_SET) { in _zend_update_type_info()
3630 uint8_t opcode; in _zend_update_type_info() local
3638 opcode = op_array->opcodes[j].opcode; in _zend_update_type_info()
3645 opcode = ssa_opcodes[j]->opcode; in _zend_update_type_info()
3647 switch (opcode) { in _zend_update_type_info()
3733 opline->opcode != ZEND_FETCH_DIM_R && opline->opcode != ZEND_FETCH_DIM_IS in _zend_update_type_info()
4264 return opline->opcode == ZEND_ADD || opline->opcode == ZEND_SUB in is_narrowable_instr()
4265 || opline->opcode == ZEND_MUL || opline->opcode == ZEND_DIV; in is_narrowable_instr()
[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()
752 switch (opline->opcode) { in zend_optimizer_shift_jump()
923 switch (opline->opcode) { in zend_optimizer_get_called_func()
1249 switch (opline->opcode) { in zend_redo_pass_two()
[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-src/ext/opcache/jit/
H A Dzend_jit_vm_helpers.c685 && opline->opcode != ZEND_ROPE_ADD
686 && opline->opcode != ZEND_ROPE_END
687 && opline->opcode != ZEND_NEW
720 && opline->opcode != ZEND_INSTANCEOF
737 || (opline->opcode != ZEND_FE_FETCH_R
758 if (opline->opcode == ZEND_ASSIGN_DIM ||
759 opline->opcode == ZEND_ASSIGN_OBJ ||
795 switch (opline->opcode) {
904 if (opline->opcode == ZEND_DO_FCALL
905 || opline->opcode == ZEND_DO_ICALL
[all …]
H A Dzend_jit_trace.c263 switch (opline->opcode) { in zend_jit_trace_may_exit()
592 switch (opline->opcode) { in zend_jit_trace_op_len()
2396 if ((opline->opcode != ZEND_FE_FETCH_R && opline->opcode != ZEND_FE_FETCH_RW) in zend_jit_trace_build_tssa()
3056 || (opline->opcode != ZEND_PRE_INC && opline->opcode != ZEND_PRE_DEC)) { in zend_jit_trace_allocate_registers()
3711 switch (opline->opcode) { in zend_jit_trace_update_condition_ranges()
6471 if (opline->opcode != ZEND_NOP && opline->opcode != ZEND_JMP) { in zend_jit_trace()
6651 && ((opline->opcode != ZEND_QM_ASSIGN && opline->opcode != ZEND_CAST) in zend_jit_trace()
8683 if (op->opcode == ZEND_FETCH_DIM_IS || op->opcode == ZEND_FETCH_OBJ_IS) { in zend_jit_trace_exit()
8686 …assert(op->opcode == ZEND_FETCH_DIM_R || op->opcode == ZEND_FETCH_LIST_R || op->opcode == ZEND_FET… in zend_jit_trace_exit()
8864 switch (opline->opcode) { in zend_jit_trace_supported()
[all …]
/php-src/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
/php-src/ext/opcache/tests/jit/
H A Dignored_opcodes.phpt28 <!-- opcode: 'ZEND_BEGIN_SILENCE' in user handler -->
29 <!-- opcode: 'ZEND_END_SILENCE' in user handler -->

Completed in 120 milliseconds

12345