Home
last modified time | relevance | path

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

1234

/PHP-7.3/ext/opcache/Optimizer/
H A Dpass3.c214 } else if (target->opcode == opline->opcode && in zend_optimizer_pass3()
220 } else if (target->opcode == opline->opcode + 3 && in zend_optimizer_pass3()
228 } else if (target->opcode == INV_COND(opline->opcode) && in zend_optimizer_pass3()
234 } else if (target->opcode == INV_COND_EX(opline->opcode) && in zend_optimizer_pass3()
272 if (target->opcode == opline->opcode-3 && in zend_optimizer_pass3()
278 } else if (target->opcode == opline->opcode && in zend_optimizer_pass3()
298 } else if ((target->opcode == INV_EX_COND_EX(opline->opcode) || in zend_optimizer_pass3()
299 target->opcode == INV_EX_COND(opline->opcode)) && in zend_optimizer_pass3()
305 } else if (target->opcode == INV_EX_COND(opline->opcode) && in zend_optimizer_pass3()
311 } else if (target->opcode == INV_EX_COND_EX(opline->opcode) && in zend_optimizer_pass3()
[all …]
H A Doptimize_func_calls.c51 switch (opline->opcode) { in zend_delete_call_instructions()
79 opline->opcode = ZEND_CHECK_VAR; in zend_delete_call_instructions()
83 opline->opcode = ZEND_FREE; in zend_delete_call_instructions()
138 opline->opcode = ZEND_QM_ASSIGN; in zend_try_inline_call()
166 switch (opline->opcode) { in zend_optimize_func_calls()
232 opline->opcode -= 9; in zend_optimize_func_calls()
246 opline->opcode -= 12; in zend_optimize_func_calls()
259 opline->opcode = ZEND_SEND_VAL; in zend_optimize_func_calls()
274 opline->opcode = ZEND_SEND_REF; in zend_optimize_func_calls()
276 opline->opcode = ZEND_SEND_VAR; in zend_optimize_func_calls()
[all …]
H A Dblock_pass.c342 (src->opcode == ZEND_BOOL || src->opcode == ZEND_BOOL_NOT)) { in zend_optimize_block()
472 opline->opcode = in zend_optimize_block()
485 opline->opcode = in zend_optimize_block()
1318 } else if (target->opcode == INV_COND(last_op->opcode) && in zend_jmp_optimization()
1329 } else if (target->opcode == INV_COND_EX(last_op->opcode) && in zend_jmp_optimization()
1341 } else if (target->opcode == last_op->opcode && in zend_jmp_optimization()
1375 if (last_op->opcode == ZEND_JMPZ || last_op->opcode == ZEND_JMPNZ) { in zend_jmp_optimization()
1462 } else if (target->opcode == last_op->opcode-3 && in zend_jmp_optimization()
1471 } else if (target->opcode == INV_EX_COND(last_op->opcode) && in zend_jmp_optimization()
1480 } else if (target->opcode == INV_EX_COND_EX(last_op->opcode) && in zend_jmp_optimization()
[all …]
H A Dpass2.c42 switch (opline->opcode) { in zend_optimizer_pass2()
138 opline->opcode -= 3; in zend_optimizer_pass2()
146 if (opline->opcode == ZEND_JMPZ_EX) { in zend_optimizer_pass2()
150 opline->opcode = ZEND_QM_ASSIGN; in zend_optimizer_pass2()
161 if (opline->opcode == ZEND_JMPZ) { in zend_optimizer_pass2()
167 opline->opcode = ZEND_JMP; in zend_optimizer_pass2()
180 opline->opcode = ZEND_CHECK_VAR; in zend_optimizer_pass2()
183 opline->opcode = ZEND_FREE; in zend_optimizer_pass2()
189 if (opline->opcode == ZEND_JMPZ) { in zend_optimizer_pass2()
195 opline->opcode = ZEND_JMPZNZ; in zend_optimizer_pass2()
[all …]
H A Doptimize_temp_vars_5.c84 if (opline->opcode == ZEND_ROPE_END) { in zend_optimize_temporary_variables()
111 (opline->opcode == ZEND_RETURN || in zend_optimize_temporary_variables()
112 opline->opcode == ZEND_GENERATOR_RETURN || in zend_optimize_temporary_variables()
113 opline->opcode == ZEND_RETURN_BY_REF || in zend_optimize_temporary_variables()
114 opline->opcode == ZEND_FREE || in zend_optimize_temporary_variables()
115 opline->opcode == ZEND_FE_FREE)) { in zend_optimize_temporary_variables()
119 if (curr->opcode == ZEND_FAST_CALL) { in zend_optimize_temporary_variables()
122 } else if (curr->opcode != ZEND_FREE && in zend_optimize_temporary_variables()
123 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.c348 if (opline->opcode == ZEND_NEW) { in opline_supports_assign_contraction()
353 if (opline->opcode == ZEND_DO_ICALL || opline->opcode == ZEND_DO_UCALL in opline_supports_assign_contraction()
354 || opline->opcode == ZEND_DO_FCALL || opline->opcode == ZEND_DO_FCALL_BY_NAME) { in opline_supports_assign_contraction()
362 if (opline->opcode == ZEND_POST_INC || opline->opcode == ZEND_POST_DEC) { in opline_supports_assign_contraction()
374 if (opline->opcode == ZEND_CAST in opline_supports_assign_contraction()
529 if (opline->opcode == ZEND_NOP in compress_block()
597 switch (opline->opcode) { in zend_ssa_replace_control_link()
710 switch (opline->opcode) { in zend_dfa_optimize_jmps()
728 opline->opcode = ZEND_JMP; in zend_dfa_optimize_jmps()
754 opline->opcode = ZEND_JMP; in zend_dfa_optimize_jmps()
[all …]
H A Dpass1_5.c46 switch (opline->opcode) { in zend_optimizer_pass1()
80 opline->opcode = ZEND_QM_ASSIGN; in zend_optimizer_pass1()
98 opline->opcode = ZEND_QM_ASSIGN; in zend_optimizer_pass1()
108 opline->opcode = ZEND_BOOL; in zend_optimizer_pass1()
124 opline->opcode = ZEND_QM_ASSIGN; in zend_optimizer_pass1()
150 opline->opcode = ZEND_QM_ASSIGN; in zend_optimizer_pass1()
177 opline->opcode = ZEND_QM_ASSIGN; in zend_optimizer_pass1()
252 opline->opcode = ZEND_QM_ASSIGN; in zend_optimizer_pass1()
418 opline->opcode = ZEND_QM_ASSIGN; in zend_optimizer_pass1()
488 opline->opcode = ZEND_QM_ASSIGN; in zend_optimizer_pass1()
[all …]
H A Descape_analysis.c109 if (opline->opcode != ZEND_ASSIGN) { in zend_build_equi_escape_sets()
124 if (opline->opcode != ZEND_QM_ASSIGN) { in zend_build_equi_escape_sets()
173 switch (opline->opcode) { in is_allocation_def()
208 switch (opline->opcode) { in is_allocation_def()
238 switch (opline->opcode) { in is_local_def()
257 switch (opline->opcode) { in is_local_def()
294 switch (opline->opcode) { in is_escape_use()
349 if ((opline-1)->opcode != ZEND_ASSIGN_DIM in is_escape_use()
373 switch (opline->opcode) { in is_escape_use()
394 switch (opline->opcode) { in is_escape_use()
[all …]
H A Dzend_optimizer.c58 switch (opcode) { in zend_compound_assign_to_binary_op()
85 switch (opcode) { in zend_optimizer_eval_binary_op()
135 if (opcode == ZEND_BW_NOT in zend_optimizer_eval_unary_op()
258 switch (opline->opcode) { in zend_optimizer_update_op1_const()
385 switch (opline->opcode) { in zend_optimizer_update_op2_const()
709 switch (opline->opcode) { in zend_optimizer_replace_by_const()
839 } while (opline->opcode != ZEND_RETURN && opline->opcode != ZEND_RETURN_BY_REF); in zend_optimizer_replace_by_const()
916 switch (opline->opcode) { in zend_optimizer_shift_jump()
991 switch (opline->opcode) { in zend_optimizer_get_called_func()
1286 switch (opline->opcode) { in zend_redo_pass_two()
[all …]
H A Dnop_removal.c48 if (opline->opcode == ZEND_JMP && ZEND_OP1_JMP_ADDR(opline) > op_array->opcodes + i) { in zend_optimizer_nop_removal()
52 while (target->opcode == ZEND_NOP) { in zend_optimizer_nop_removal()
57 opline->opcode = ZEND_NOP; in zend_optimizer_nop_removal()
62 if (opline->opcode == ZEND_NOP) { in zend_optimizer_nop_removal()
H A Dsccp.c211 switch (opline->opcode) { in can_replace_op1()
288 switch (opline->opcode) { in can_replace_op2()
310 switch (opline->opcode) { in try_replace_op1()
354 switch (opline->opcode) { in try_replace_op2()
692 if (opcode == ZEND_PRE_INC in ct_eval_incdec()
693 || opcode == ZEND_POST_INC in ct_eval_incdec()
1044 switch (opline->opcode) { in sccp_visit_instr()
1385 switch (opline->opcode) { in sccp_visit_instr()
1794 if (opline->opcode != ZEND_SEND_VAL && opline->opcode != ZEND_SEND_VAR) { in sccp_visit_instr()
1856 switch (opline->opcode) { in sccp_mark_feasible_successors()
[all …]
H A Ddce.c79 switch (opline->opcode) { in may_have_side_effects()
328 switch (def_opline->opcode) { in try_remove_var_def()
378 if (opline->opcode == ZEND_NOP) { in dce_instr()
383 if (opline->opcode == ZEND_FREE in dce_instr()
392 && opline->opcode != ZEND_CASE) { in dce_instr()
416 opline->opcode = ZEND_FREE; in dce_instr()
500 if (op_array->opcodes[def].opcode == ZEND_DO_FCALL) { in dce_live_ranges()
506 ZEND_ASSERT(op_array->opcodes[def].opcode == ZEND_NEW); in dce_live_ranges()
595 if (op_array->opcodes[i].opcode == ZEND_OP_DATA) { in dce_optimize_op_array()
609 if (op_array->opcodes[i].opcode == ZEND_NEW in dce_optimize_op_array()
[all …]
H A Dzend_dfg.c50 if (opline->opcode != ZEND_OP_DATA) { in zend_build_dfg()
52 if (next < end && next->opcode == ZEND_OP_DATA) { in zend_build_dfg()
68 switch (opline->opcode) { in zend_build_dfg()
154 if (opline->opcode == ZEND_VERIFY_RETURN_TYPE) { in zend_build_dfg()
160 switch (opline->opcode) { in zend_build_dfg()
188 if (opline->opcode == ZEND_FE_FETCH_R || opline->opcode == ZEND_FE_FETCH_RW) { in zend_build_dfg()
H A Dzend_cfg.c44 zend_uchar opcode = opcodes[b->start + b->len - 1].opcode; in zend_mark_reachable() local
46 if (opcode == ZEND_JMP) { in zend_mark_reachable()
54 opcode == ZEND_YIELD || in zend_mark_reachable()
55 opcode == ZEND_YIELD_FROM || in zend_mark_reachable()
56 opcode == ZEND_DO_FCALL || in zend_mark_reachable()
57 opcode == ZEND_DO_UCALL || in zend_mark_reachable()
63 if (opcode == ZEND_RECV || in zend_mark_reachable()
64 opcode == ZEND_RECV_INIT) { in zend_mark_reachable()
76 ZEND_ASSERT(opcode == ZEND_SWITCH_LONG || opcode == ZEND_SWITCH_STRING); in zend_mark_reachable()
304 switch (opline->opcode) { in zend_build_cfg()
[all …]
H A Dzend_ssa.c183 if (op->opcode == ZEND_POST_DEC) { in find_adjusted_tmp_var()
188 } else if (op->opcode == ZEND_POST_INC) { in find_adjusted_tmp_var()
193 } else if (op->opcode == ZEND_ADD) { in find_adjusted_tmp_var()
209 } else if (op->opcode == ZEND_SUB) { in find_adjusted_tmp_var()
254 switch (opline->opcode) { in place_essa_pis()
268 ((opline-1)->opcode == ZEND_IS_EQUAL || in place_essa_pis()
383 if((opline-1)->opcode == ZEND_IS_EQUAL) { in place_essa_pis()
563 if (opline->opcode != ZEND_OP_DATA) { in zend_ssa_rename()
585 if (opline->opcode == ZEND_FE_FETCH_R || opline->opcode == ZEND_FE_FETCH_RW) { in zend_ssa_rename()
597 switch (opline->opcode) { in zend_ssa_rename()
[all …]
H A Dzend_inference.c549 switch (opcode) { in get_compound_assign_op()
571 switch (opcode) { in zend_inference_calc_binary_op_range()
995 switch (opline->opcode) { in zend_inference_calc_range()
2165 switch (opcode) { in binary_op_result_type()
2339 switch (opline->opcode) { in zend_update_type_info()
3614 return opline->opcode == ZEND_ADD || opline->opcode == ZEND_SUB in is_narrowable_instr()
3615 || opline->opcode == ZEND_MUL || opline->opcode == ZEND_DIV; in is_narrowable_instr()
3904 if (opline->opcode == ZEND_RETURN || opline->opcode == ZEND_RETURN_BY_REF) { in zend_func_return_info()
4183 switch (opline->opcode) { in zend_may_throw()
4206 switch (opline->opcode) { in zend_may_throw()
[all …]
/PHP-7.3/Zend/
H A Dzend_vm_opcodes.c429 ZEND_API const char* ZEND_FASTCALL zend_get_opcode_name(zend_uchar opcode) { in zend_get_opcode_name() argument
430 if (UNEXPECTED(opcode > ZEND_VM_LAST_OPCODE)) { in zend_get_opcode_name()
433 return zend_vm_opcodes_names[opcode]; in zend_get_opcode_name()
435 ZEND_API uint32_t ZEND_FASTCALL zend_get_opcode_flags(zend_uchar opcode) { in zend_get_opcode_flags() argument
436 if (UNEXPECTED(opcode > ZEND_VM_LAST_OPCODE)) { in zend_get_opcode_flags()
437 opcode = ZEND_NOP; in zend_get_opcode_flags()
439 return zend_vm_opcodes_flags[opcode]; in zend_get_opcode_flags()
H A DREADME.ZEND_VM4 ZEND_VM architecture allows specializing opcode handlers according to op_type
13 find opcode handlers and helpers. The typical opcode handler template looks
21 <OPCODE-NUMBER> is a opcode number (0, 1, ...)
22 <OPCODE> is an opcode name (ZEN_NOP, ZEND_ADD, :)
28 same as in old zend_execute.c, but now it uses macros to access opcode operands
90 zend_vm_execute.h. The first file is a list of opcode definitions. It is
95 different opcode threading model using --with-vm-kind=CALL|SWITCH|GOTO. You can
96 disable opcode specialization using --without-specializer. You can include or
H A Dzend_compile.c2118 opline->opcode = opcode; in zend_emit_op()
2140 opline->opcode = opcode; in zend_emit_op_tmp()
2266 tmp_opline.opcode = opcode; in zend_delayed_emit_op()
3136 opline->opcode = opcode; in zend_compile_compound_assign()
3148 opline->opcode = opcode; in zend_compile_compound_assign()
4402 opline->opcode = loop_var->opcode; in zend_handle_loops_and_finally_ex()
6962 if (!(opcode == ZEND_ADD || opcode == ZEND_SUB || opcode == ZEND_MUL || opcode == ZEND_DIV in zend_binary_op_produces_numeric_string_error()
6963 || opcode == ZEND_POW || opcode == ZEND_MOD || opcode == ZEND_SL || opcode == ZEND_SR in zend_binary_op_produces_numeric_string_error()
6964 || opcode == ZEND_BW_OR || opcode == ZEND_BW_AND || opcode == ZEND_BW_XOR)) { in zend_binary_op_produces_numeric_string_error()
6970 if ((opcode == ZEND_BW_OR || opcode == ZEND_BW_AND || opcode == ZEND_BW_XOR) in zend_binary_op_produces_numeric_string_error()
[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…
/PHP-7.3/Zend/tests/
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
H A Dbug32833.phpt2 Bug #32833 (Invalid opcode with $a[] .= '')
/PHP-7.3/sapi/phpdbg/
H A Dphpdbg_opcode.c30 static inline const char *phpdbg_decode_opcode(zend_uchar opcode) /* {{{ */ in ZEND_EXTERN_MODULE_GLOBALS()
32 const char *ret = zend_get_opcode_name(opcode); in ZEND_EXTERN_MODULE_GLOBALS()
94 const char *opcode_name = phpdbg_decode_opcode(opline->opcode); in phpdbg_decode_opline()
95 uint32_t flags = zend_get_opcode_flags(opline->opcode); in phpdbg_decode_opline()
112 switch (opline->opcode) { in phpdbg_decode_opline()
H A Dphpdbg.c482opcode == ZEND_NOP || opcode == ZEND_OP_DATA || opcode == ZEND_FE_FREE || opcode == ZEND_FREE || o… in phpdbg_is_ignored_opcode()
483 …|| opcode == ZEND_DECLARE_CONST || opcode == ZEND_DECLARE_CLASS || opcode == ZEND_DECLARE_INHERITE… in phpdbg_is_ignored_opcode()
484 …|| opcode == ZEND_DECLARE_INHERITED_CLASS_DELAYED || opcode == ZEND_VERIFY_ABSTRACT_CLASS || opcod… in phpdbg_is_ignored_opcode()
485 …|| opcode == ZEND_DECLARE_ANON_CLASS || opcode == ZEND_DECLARE_ANON_INHERITED_CLASS || opcode == Z… in phpdbg_is_ignored_opcode()
486 …|| opcode == ZEND_EXT_STMT || opcode == ZEND_EXT_FCALL_BEGIN || opcode == ZEND_EXT_FCALL_END || op… in phpdbg_is_ignored_opcode()
500 …_array->last >= 1 && (((end - 1)->opcode == ZEND_RETURN || (end - 1)->opcode == ZEND_RETURN_BY_REF… in phpdbg_oplog_fill_executable()
501 …(end - 2)->opcode == ZEND_RETURN || (end - 2)->opcode == ZEND_RETURN_BY_REF || (end - 2)->opcode =… in phpdbg_oplog_fill_executable()
507 zend_uchar opcode = cur->opcode; in phpdbg_oplog_fill_executable() local
508 if (phpdbg_is_ignored_opcode(opcode)) { in phpdbg_oplog_fill_executable()
518 if (opcode == ZEND_NEW && cur[1].opcode == ZEND_DO_FCALL) { in phpdbg_oplog_fill_executable()
[all …]
/PHP-7.3/ext/xml/tests/
H A Dbug30266.phpt2 Bug #30266 (Invalid opcode 137/1/8)
13 Fatal error: Invalid opcode 137/1/8. in /home/hartmut/projects/php/dev/head/ext/xml/tests/bug30266.…

Completed in 136 milliseconds

1234