/PHP-7.1/ext/opcache/Optimizer/ |
H A D | pass3.c | 72 switch (opline->opcode) { in zend_optimizer_pass3() 215 } else if (target->opcode == opline->opcode && in zend_optimizer_pass3() 221 } else if (target->opcode == opline->opcode + 3 && in zend_optimizer_pass3() 226 opline->opcode += 3; in zend_optimizer_pass3() 229 } else if (target->opcode == INV_COND(opline->opcode) && in zend_optimizer_pass3() 235 } else if (target->opcode == INV_COND_EX(opline->opcode) && in zend_optimizer_pass3() 273 if (SAME_OPCODE_EX(opline->opcode, target->opcode) && in zend_optimizer_pass3() 276 if (target->opcode == opline->opcode) { in zend_optimizer_pass3() 295 } else if ((target->opcode == INV_EX_COND_EX(opline->opcode) || in zend_optimizer_pass3() 296 target->opcode == INV_EX_COND(opline->opcode)) && in zend_optimizer_pass3() [all …]
|
H A D | optimize_func_calls.c | 50 switch (opline->opcode) { in zend_delete_call_instructions() 78 opline->opcode = ZEND_CHECK_VAR; in zend_delete_call_instructions() 82 opline->opcode = ZEND_FREE; in zend_delete_call_instructions() 137 opline->opcode = ZEND_QM_ASSIGN; in zend_try_inline_call() 165 switch (opline->opcode) { in zend_optimize_func_calls() 231 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() 266 opline->opcode = ZEND_SEND_REF; in zend_optimize_func_calls() 268 opline->opcode = ZEND_SEND_VAR; in zend_optimize_func_calls() [all …]
|
H A D | block_pass.c | 262 (src->opcode == ZEND_BOOL || src->opcode == ZEND_BOOL_NOT)) { in zend_optimize_block() 388 opline->opcode = in zend_optimize_block() 400 opline->opcode = in zend_optimize_block() 1213 } else if (target->opcode == INV_COND(last_op->opcode) && in zend_jmp_optimization() 1223 } else if (target->opcode == INV_COND_EX(last_op->opcode) && in zend_jmp_optimization() 1234 } else if (target->opcode == last_op->opcode && in zend_jmp_optimization() 1265 if (last_op->opcode == ZEND_JMPZ || last_op->opcode == ZEND_JMPNZ) { in zend_jmp_optimization() 1348 } else if (target->opcode == last_op->opcode-3 && in zend_jmp_optimization() 1356 } else if (target->opcode == INV_EX_COND(last_op->opcode) && in zend_jmp_optimization() 1364 } else if (target->opcode == INV_EX_COND_EX(last_op->opcode) && in zend_jmp_optimization() [all …]
|
H A D | pass2.c | 42 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 D | optimize_temp_vars_5.c | 84 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 D | dfa_pass.c | 173 switch (new_opline->opcode) { in zend_ssa_remove_nops() 240 switch (opline->opcode) { in zend_ssa_remove_nops() 344 if (opline->opcode == ZEND_NEW) { in opline_supports_assign_contraction() 349 if (opline->opcode == ZEND_DO_ICALL || opline->opcode == ZEND_DO_UCALL in opline_supports_assign_contraction() 350 || opline->opcode == ZEND_DO_FCALL || opline->opcode == ZEND_DO_FCALL_BY_NAME) { in opline_supports_assign_contraction() 358 if (opline->opcode == ZEND_POST_INC || opline->opcode == ZEND_POST_DEC) { in opline_supports_assign_contraction() 370 if (opline->opcode == ZEND_CAST in opline_supports_assign_contraction() 431 if (opline->opcode == ZEND_ADD in zend_dfa_optimize_op_array() 432 || opline->opcode == ZEND_SUB in zend_dfa_optimize_op_array() 433 || opline->opcode == ZEND_MUL in zend_dfa_optimize_op_array() [all …]
|
H A D | pass1_5.c | 49 switch (opline->opcode) { in zend_optimizer_pass1() 79 if ((opline->opcode == ZEND_DIV || opline->opcode == ZEND_MOD) && in zend_optimizer_pass1() 83 } else if ((opline->opcode == ZEND_SL || opline->opcode == ZEND_SR) && in zend_optimizer_pass1() 145 opline->opcode = ZEND_BOOL; in zend_optimizer_pass1() 190 while (next_op->opcode == ZEND_ADD_STRING || next_op->opcode == ZEND_ADD_CHAR) { in zend_optimizer_pass1() 194 if (next_op->opcode == ZEND_ADD_CHAR) { in zend_optimizer_pass1() 215 opline->opcode = ZEND_ADD_STRING; in zend_optimizer_pass1() 239 (opline + 1)->opcode = ZEND_JMP; in zend_optimizer_pass1() 372 while (send1_opline->opcode == ZEND_NOP) { in zend_optimizer_pass1() 395 while (init_opline->opcode == ZEND_NOP) { in zend_optimizer_pass1() [all …]
|
H A D | nop_removal.c | 48 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() 69 switch (new_opline->opcode) { in zend_optimizer_nop_removal() 111 switch (opline->opcode) { in zend_optimizer_nop_removal()
|
H A D | zend_optimizer.c | 167 switch (opline->opcode) { in zend_optimizer_update_op1_const() 195 opline->opcode = ZEND_SEND_VAL; in zend_optimizer_update_op1_const() 234 switch (opline->opcode) { in zend_optimizer_update_op2_const() 399 if ((opline->opcode == ZEND_FREE || opline->opcode == ZEND_FE_FREE) && in zend_optimizer_remove_live_range() 425 switch (opline->opcode) { in zend_optimizer_replace_by_const() 437 opline->opcode = ZEND_SEND_VAL; in zend_optimizer_replace_by_const() 447 opline->opcode = ZEND_SEND_VAL; in zend_optimizer_replace_by_const() 495 if (n->opcode == ZEND_FREE && in zend_optimizer_replace_by_const() 504 if (m->opcode == ZEND_CASE) { in zend_optimizer_replace_by_const() 536 } while (opline->opcode != ZEND_RETURN && opline->opcode != ZEND_RETURN_BY_REF); in zend_optimizer_replace_by_const() [all …]
|
H A D | zend_dfg.c | 50 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() 150 if (opline->opcode == ZEND_VERIFY_RETURN_TYPE) { in zend_build_dfg() 156 switch (opline->opcode) { in zend_build_dfg() 184 if (opline->opcode == ZEND_FE_FETCH_R || opline->opcode == ZEND_FE_FETCH_RW) { in zend_build_dfg()
|
H A D | zend_cfg.c | 29 zend_uchar opcode; in zend_mark_reachable() local 47 opcode = opcodes[b->start + b->len - 1].opcode; in zend_mark_reachable() 49 if (opcode == ZEND_JMPZNZ) { in zend_mark_reachable() 55 opcode = opcodes[b->start + b->len - 1].opcode; in zend_mark_reachable() 57 if (opcode == ZEND_JMP) { in zend_mark_reachable() 65 opcode == ZEND_YIELD || in zend_mark_reachable() 67 opcode == ZEND_DO_FCALL || in zend_mark_reachable() 68 opcode == ZEND_DO_UCALL || in zend_mark_reachable() 74 if (opcode == ZEND_RECV || in zend_mark_reachable() 302 switch(opline->opcode) { in zend_build_cfg() [all …]
|
H A D | zend_ssa.c | 176 if (op->opcode == ZEND_POST_DEC) { in find_adjusted_tmp_var() 181 } else if (op->opcode == ZEND_POST_INC) { in find_adjusted_tmp_var() 186 } else if (op->opcode == ZEND_ADD) { in find_adjusted_tmp_var() 202 } else if (op->opcode == ZEND_SUB) { in find_adjusted_tmp_var() 247 switch (opline->opcode) { in place_essa_pis() 261 ((opline-1)->opcode == ZEND_IS_EQUAL || in place_essa_pis() 376 if((opline-1)->opcode == ZEND_IS_EQUAL) { in place_essa_pis() 417 if ((opline-1)->opcode == ZEND_POST_DEC) { in place_essa_pis() 557 if (opline->opcode != ZEND_OP_DATA) { in zend_ssa_rename() 579 if (opline->opcode == ZEND_FE_FETCH_R || opline->opcode == ZEND_FE_FETCH_RW) { in zend_ssa_rename() [all …]
|
H A D | zend_inference.c | 257 if (opline->opcode == ZEND_ASSIGN || in is_no_val_use() 528 switch (opcode) { in get_compound_assign_op() 550 switch (opcode) { in zend_inference_calc_binary_op_range() 926 switch (opline->opcode) { in zend_inference_calc_range() 2035 switch (opcode) { in binary_op_result_type() 2206 switch (opline->opcode) { in zend_update_type_info() 3136 opline->opcode != ZEND_FETCH_DIM_R && opline->opcode != ZEND_FETCH_DIM_IS in zend_update_type_info() 3181 if (opline->opcode != ZEND_FETCH_OBJ_R && opline->opcode != ZEND_FETCH_OBJ_IS) { in zend_update_type_info() 3408 return opline->opcode == ZEND_ADD || opline->opcode == ZEND_SUB in is_narrowable_instr() 3409 || opline->opcode == ZEND_MUL || opline->opcode == ZEND_DIV; in is_narrowable_instr() [all …]
|
/PHP-7.1/Zend/ |
H A D | zend_vm_opcodes.c | 404 ZEND_API const char* zend_get_opcode_name(zend_uchar opcode) { in zend_get_opcode_name() argument 405 return zend_vm_opcodes_names[opcode]; in zend_get_opcode_name() 407 ZEND_API uint32_t zend_get_opcode_flags(zend_uchar opcode) { in zend_get_opcode_flags() argument 408 return zend_vm_opcodes_flags[opcode]; in zend_get_opcode_flags()
|
H A D | zend_compile.c | 2140 opline->opcode = opcode; in zend_emit_op() 2166 opline->opcode = opcode; in zend_emit_op_tmp() 2294 tmp_opline.opcode = opcode; in zend_delayed_emit_op() 3124 opline->opcode = opcode; in zend_compile_compound_assign() 3135 opline->opcode = opcode; in zend_compile_compound_assign() 4129 opline->opcode = loop_var->opcode; in zend_handle_loops_and_finally_ex() 6534 if (!(opcode == ZEND_ADD || opcode == ZEND_SUB || opcode == ZEND_MUL || opcode == ZEND_DIV in zend_binary_op_produces_numeric_string_error() 6535 || opcode == ZEND_POW || opcode == ZEND_MOD || opcode == ZEND_SL || opcode == ZEND_SR in zend_binary_op_produces_numeric_string_error() 6536 || opcode == ZEND_BW_OR || opcode == ZEND_BW_AND || opcode == ZEND_BW_XOR)) { in zend_binary_op_produces_numeric_string_error() 6542 if ((opcode == ZEND_BW_OR || opcode == ZEND_BW_AND || opcode == ZEND_BW_XOR) in zend_binary_op_produces_numeric_string_error() [all …]
|
H A D | zend_vm.h | 27 ZEND_API void zend_vm_set_opcode_handler(zend_op* opcode); 28 ZEND_API void zend_vm_set_opcode_handler_ex(zend_op* opcode, uint32_t op1_info, uint32_t op2_info, …
|
H A D | README.ZEND_VM | 4 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 D | zend_opcode.c | 485 if (opline->opcode == ZEND_EXT_STMT) { in zend_update_extended_info() 487 if ((opline+1)->opcode == ZEND_EXT_STMT) { in zend_update_extended_info() 488 opline->opcode = ZEND_NOP; in zend_update_extended_info() 496 opline->opcode = ZEND_NOP; in zend_update_extended_info() 580 switch (opline->opcode) { in pass_two() 593 opline->opcode = ZEND_JMP; in pass_two() 626 if (call->opcode == ZEND_EXT_FCALL_END) { in pass_two() 646 opline->opcode = ZEND_GENERATOR_RETURN; in pass_two() 681 ZEND_API unary_op_type get_unary_op(int opcode) in get_unary_op() argument 683 switch (opcode) { in get_unary_op() [all …]
|
/PHP-7.1/sapi/phpdbg/ |
H A D | phpdbg_opcode.c | 30 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() 98 const char *opcode_name = phpdbg_decode_opcode(opline->opcode); in phpdbg_decode_opline() 99 uint32_t flags = zend_get_opcode_flags(opline->opcode); in phpdbg_decode_opline() 111 switch (opline->opcode) { in phpdbg_decode_opline()
|
H A D | phpdbg.c | 488 …opcode == ZEND_NOP || opcode == ZEND_OP_DATA || opcode == ZEND_FE_FREE || opcode == ZEND_FREE || o… in phpdbg_is_ignored_opcode() 489 …|| opcode == ZEND_DECLARE_CONST || opcode == ZEND_DECLARE_CLASS || opcode == ZEND_DECLARE_INHERITE… in phpdbg_is_ignored_opcode() 490 …|| opcode == ZEND_DECLARE_INHERITED_CLASS_DELAYED || opcode == ZEND_VERIFY_ABSTRACT_CLASS || opcod… in phpdbg_is_ignored_opcode() 491 …|| opcode == ZEND_DECLARE_ANON_CLASS || opcode == ZEND_DECLARE_ANON_INHERITED_CLASS || opcode == Z… in phpdbg_is_ignored_opcode() 492 …|| opcode == ZEND_EXT_STMT || opcode == ZEND_EXT_FCALL_BEGIN || opcode == ZEND_EXT_FCALL_END || op… in phpdbg_is_ignored_opcode() 506 …_array->last >= 1 && (((end - 1)->opcode == ZEND_RETURN || (end - 1)->opcode == ZEND_RETURN_BY_REF… in phpdbg_oplog_fill_executable() 507 …(end - 2)->opcode == ZEND_RETURN || (end - 2)->opcode == ZEND_RETURN_BY_REF || (end - 2)->opcode =… in phpdbg_oplog_fill_executable() 513 zend_uchar opcode = cur->opcode; in phpdbg_oplog_fill_executable() local 514 if (phpdbg_is_ignored_opcode(opcode)) { in phpdbg_oplog_fill_executable() 524 if (opcode == ZEND_NEW && cur[1].opcode == ZEND_DO_FCALL) { in phpdbg_oplog_fill_executable() [all …]
|
/PHP-7.1/Zend/tests/ |
H A D | bug73663.phpt | 2 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 D | bug32833.phpt | 2 Bug #32833 (Invalid opcode with $a[] .= '')
|
/PHP-7.1/ext/xml/tests/ |
H A D | bug30266.phpt | 2 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.…
|
/PHP-7.1/ext/pcre/pcrelib/ |
H A D | pcre_jit_compile.c | 7051 if (opcode == OP_CBRA || opcode == OP_SCBRA) in compile_bracket_matchingpath() 7068 else if (opcode == OP_ONCE || opcode == OP_SBRA || opcode == OP_SCOND) in compile_bracket_matchingpath() 7109 if (opcode == OP_ONCE || opcode >= OP_SBRA) in compile_bracket_matchingpath() 7272 if (opcode == OP_COND || opcode == OP_SCOND) in compile_bracket_matchingpath() 7810 if (*opcode >= OP_STAR && *opcode <= OP_POSUPTO) in get_iterator_parameters() 7841 SLJIT_ASSERT(*opcode == OP_CLASS || *opcode == OP_NCLASS || *opcode == OP_XCLASS); in get_iterator_parameters() 7878 if (*opcode == OP_UPTO || *opcode == OP_MINUPTO || *opcode == OP_EXACT || *opcode == OP_POSUPTO) in get_iterator_parameters() 7972 if (opcode == OP_STAR || opcode == OP_UPTO) in compile_iterator_matchingpath() 8219 if (opcode == OP_PRUNE_ARG || opcode == OP_SKIP_ARG || opcode == OP_THEN_ARG) in compile_control_verb_matchingpath() 8909 if (opcode == OP_CBRA || opcode == OP_SCBRA) in compile_bracket_backtrackingpath() [all …]
|
/PHP-7.1/ext/pcre/pcrelib/sljit/ |
H A D | sljitNativeTILEGX_64.c | 385 #define PB2(opcode, dst, src) \ argument 530 opcode = &tilegx_opcodes[opc]; in insert_nop() 531 inst_buf[0].opcode = opcode; in insert_nop() 542 inst_buf[0].opcode->pipes, in compute_format() 543 inst_buf[1].opcode->pipes, in compute_format() 610 const struct tilegx_opcode* opcode = inst->opcode; in get_bundle_bit() local 750 inst_buf[inst_buf_index].opcode = opcode; in push_4_buffer() 770 inst_buf[inst_buf_index].opcode = opcode; in push_3_buffer() 831 inst_buf[inst_buf_index].opcode = opcode; in push_2_buffer() 876 inst_buf[inst_buf_index].opcode = opcode; in push_0_buffer() [all …]
|