/PHP-7.3/Zend/ |
H A D | zend_operators.h | 584 "r"(&op2->value), in fast_long_add_function() 602 "r"(&op2->value), in fast_long_add_function() 674 "r"(&op2->value), in fast_long_sub_function() 692 "r"(&op2->value), in fast_long_sub_function() 760 compare_function(&result, op1, op2); in fast_equal_check_function() 770 compare_function(&result, op1, op2); in fast_equal_check_long() 780 compare_function(&result, op1, op2); in fast_equal_check_string() 786 if (Z_TYPE_P(op1) != Z_TYPE_P(op2)) { in fast_is_identical_function() 791 return zend_is_identical(op1, op2); in fast_is_identical_function() 801 return !zend_is_identical(op1, op2); in fast_is_not_identical_function() [all …]
|
H A D | zend_operators.c | 301 op2 = Z_REFVAL_P(op2); \ 952 op2 = Z_REFVAL_P(op2); in add_function_slow() 961 op2 = op1; in add_function_slow() 1023 op2 = Z_REFVAL_P(op2); in sub_function_slow() 1097 op2 = Z_REFVAL_P(op2); in mul_function() 1190 op2 = Z_REFVAL_P(op2); in pow_function() 1294 op2 = Z_REFVAL_P(op2); in div_function() 1389 op2 = Z_REFVAL_P(op2); in boolean_xor_function() 1813 op2 = Z_REFVAL_P(op2); in concat_function() 2073 op2 = Z_REFVAL_P(op2); in compare_function() [all …]
|
H A D | zend_vm_gen.php | 650 if (($op2 == 'TMP' || $op2 == 'VAR') && 652 $op2 = "TMPVAR"; 653 } else if (($op2 == 'TMP' || $op2 == 'VAR') && 660 $op2 = "ANY"; 696 if (($op2 == 'TMP' || $op2 == 'VAR') && 698 $op2 = "TMPVAR"; 699 } else if (($op2 == 'TMP' || $op2 == 'VAR') && 706 $op2 = "ANY"; 808 $op2_type[$op2], 810 $op2_free[$op2], [all …]
|
H A D | zend_vm_execute.h | 6190 op2 = EX_VAR(opline->op2.var); 6202 op2 = EX_VAR(opline->op2.var); 6214 op2 = EX_VAR(opline->op2.var); 6227 op2 = EX_VAR(opline->op2.var); 6241 op2 = EX_VAR(opline->op2.var); 6255 op2 = EX_VAR(opline->op2.var); 6269 op2 = EX_VAR(opline->op2.var); 6283 op2 = EX_VAR(opline->op2.var); 6297 op2 = EX_VAR(opline->op2.var); 6311 op2 = EX_VAR(opline->op2.var); [all …]
|
H A D | zend_vm_def.h | 61 op2 = GET_OP2_UNDEF_CV(op2, BP_VAR_R); 104 op2 = GET_OP2_UNDEF_CV(op2, BP_VAR_R); 150 op2 = GET_OP2_UNDEF_CV(op2, BP_VAR_R); 211 op2 = GET_OP2_UNDEF_CV(op2, BP_VAR_R); 239 op2 = GET_OP2_UNDEF_CV(op2, BP_VAR_R); 267 op2 = GET_OP2_UNDEF_CV(op2, BP_VAR_R); 343 op2 = GET_OP2_UNDEF_CV(op2, BP_VAR_R); 436 op2 = GET_OP2_UNDEF_CV(op2, BP_VAR_R); 494 op2 = GET_OP2_UNDEF_CV(op2, BP_VAR_R); 544 op2 = GET_OP2_UNDEF_CV(op2, BP_VAR_R); [all …]
|
H A D | zend_ini_parser.y | 67 static void zend_ini_do_op(char type, zval *result, zval *op1, zval *op2) in zend_ini_do_op() argument 75 i_op2 = op2 ? get_int_val(op2) : 0; in zend_ini_do_op() 117 static void zend_ini_add_string(zval *result, zval *op1, zval *op2) in zend_ini_add_string() argument 134 if (Z_TYPE_P(op2) != IS_STRING) { in zend_ini_add_string() 135 convert_to_string(op2); in zend_ini_add_string() 137 length = op1_len + (int)Z_STRLEN_P(op2); in zend_ini_add_string() 140 memcpy(Z_STRVAL_P(result) + op1_len, Z_STRVAL_P(op2), Z_STRLEN_P(op2) + 1); in zend_ini_add_string()
|
H A D | zend_opcode.c | 479 int nest_levels = opline->op2.num; in zend_get_brk_cont_target() 560 zval *val = CT_CONSTANT(opline->op2); in pass_two() 582 opline->op2.num = 0; in pass_two() 607 ZEND_PASS_TWO_UPDATE_JMP_TARGET(op_array, opline, opline->op2); in pass_two() 612 zend_op *call = &op_array->opcodes[opline->op2.opline_num - 1]; in pass_two() 619 ZEND_PASS_TWO_UPDATE_JMP_TARGET(op_array, opline, opline->op2); in pass_two() 631 ZEND_PASS_TWO_UPDATE_JMP_TARGET(op_array, opline, opline->op2); in pass_two() 644 HashTable *jumptable = Z_ARRVAL_P(CT_CONSTANT(opline->op2)); in pass_two() 660 ZEND_PASS_TWO_UPDATE_CONSTANT(op_array, opline, opline->op2); in pass_two() 662 …opline->op2.var = (uint32_t)(zend_intptr_t)ZEND_CALL_VAR_NUM(NULL, op_array->last_var + opline->op… in pass_two()
|
H A D | zend_ast.c | 441 zval op1, op2; in zend_ast_evaluate() local 453 ret = op(result, &op1, &op2); in zend_ast_evaluate() 455 zval_ptr_dtor_nogc(&op2); in zend_ast_evaluate() 469 ret = op(result, &op2, &op1); in zend_ast_evaluate() 471 zval_ptr_dtor_nogc(&op2); in zend_ast_evaluate() 523 zval_ptr_dtor_nogc(&op2); in zend_ast_evaluate() 543 zval_ptr_dtor_nogc(&op2); in zend_ast_evaluate() 594 zval_ptr_dtor_nogc(&op2); in zend_ast_evaluate() 603 zval_ptr_dtor_nogc(&op2); in zend_ast_evaluate() 633 zval_ptr_dtor_nogc(&op2); in zend_ast_evaluate() [all …]
|
/PHP-7.3/ext/opcache/Optimizer/ |
H A D | compact_literals.c | 83 uint32_t op2, in add_static_slot() argument 91 zval *prop_name = &op_array->literals[op2]; in add_static_slot() 525 opline->op2.constant = map[opline->op2.constant]; in zend_optimizer_compact_literals() 537 opline->op2.num = cache_size; in zend_optimizer_compact_literals() 543 opline->op2.num = cache_size; in zend_optimizer_compact_literals() 621 if (func_slot[opline->op2.constant] >= 0) { in zend_optimizer_compact_literals() 650 opline->op2.constant, in zend_optimizer_compact_literals() 693 opline->op2.constant, in zend_optimizer_compact_literals() 712 opline->op2.constant, in zend_optimizer_compact_literals() 736 opline->op2.constant, in zend_optimizer_compact_literals() [all …]
|
H A D | pass3.c | 98 && opline->op2.var == next_opline->op1.var && in zend_optimizer_pass3() 111 COPY_NODE(opline->op1, opline->op2); in zend_optimizer_pass3() 112 COPY_NODE(opline->op2, tmp); in zend_optimizer_pass3() 232 ZEND_SET_OP_JMP_ADDR(opline, opline->op2, target + 1); in zend_optimizer_pass3() 238 ZEND_SET_OP_JMP_ADDR(opline, opline->op2, target + 1); in zend_optimizer_pass3() 264 SET_UNUSED(opline->op2); in zend_optimizer_pass3() 297 ZEND_SET_OP_JMP_ADDR(opline, opline->op2, new_target); in zend_optimizer_pass3() 303 ZEND_SET_OP_JMP_ADDR(opline, opline->op2, target + 1); in zend_optimizer_pass3() 309 ZEND_SET_OP_JMP_ADDR(opline, opline->op2, target + 1); in zend_optimizer_pass3() 363 op->op2.var == opline->result.var) { in zend_optimizer_pass3() [all …]
|
H A D | optimize_func_calls.c | 37 Z_TYPE(op_array->literals[(opline)->op2.constant]) == IS_STRING) 141 SET_UNUSED(opline->op2); in zend_try_inline_call() 197 fcall->op2.constant = fcall->op2.constant + 1; in zend_optimize_func_calls() 202 literal_dtor(&op_array->literals[fcall->op2.constant]); in zend_optimize_func_calls() 203 literal_dtor(&op_array->literals[fcall->op2.constant + 2]); in zend_optimize_func_calls() 204 fcall->op2.constant = fcall->op2.constant + 1; in zend_optimize_func_calls() 255 if (ARG_MUST_BE_SENT_BY_REF(call_stack[call - 1].func, opline->op2.num)) { in zend_optimize_func_calls() 265 call_stack[call - 1].func_arg_num = opline->op2.num; in zend_optimize_func_calls() 273 if (ARG_SHOULD_BE_SENT_BY_REF(call_stack[call - 1].func, opline->op2.num)) { in zend_optimize_func_calls() 282 if (ARG_MUST_BE_SENT_BY_REF(call_stack[call - 1].func, opline->op2.num)) { in zend_optimize_func_calls() [all …]
|
H A D | sccp.c | 1091 if (op2) { in sccp_visit_instr() 1095 if (op2 && IS_BOT(op2)) { in sccp_visit_instr() 1125 if (!op2) { in sccp_visit_instr() 1282 if (op2) { in sccp_visit_instr() 1294 if (op2 && IS_BOT(op2)) { in sccp_visit_instr() 1321 if (!op2) { in sccp_visit_instr() 1376 if ((op1 && IS_BOT(op1)) || (op2 && IS_BOT(op2))) { in sccp_visit_instr() 1408 SKIP_IF_TOP(op2); in sccp_visit_instr() 1432 if (op2) { in sccp_visit_instr() 1446 && op2) { in sccp_visit_instr() [all …]
|
H A D | zend_optimizer.c | 88 || Z_TYPE_P(op2) == IS_ARRAY) in zend_optimizer_eval_binary_op() 89 && Z_TYPE_P(op1) != Z_TYPE_P(op2)) { in zend_optimizer_eval_binary_op() 96 if (zval_get_long(op2) == 0) { in zend_optimizer_eval_binary_op() 107 || Z_TYPE_P(op2) == IS_ARRAY) { in zend_optimizer_eval_binary_op() 114 if (zval_get_long(op2) < 0) { in zend_optimizer_eval_binary_op() 123 ret = binary_op(result, op1, op2); in zend_optimizer_eval_binary_op() 855 opline->op2.var == var) { in zend_optimizer_replace_by_const() 1303 opline->op2.jmp_addr = &op_array->opcodes[opline->op2.jmp_addr - old_opcodes]; in zend_redo_pass_two() 1307 opline->op2.jmp_addr = &op_array->opcodes[opline->op2.jmp_addr - old_opcodes]; in zend_redo_pass_two() 1392 opline->op2.jmp_addr = &op_array->opcodes[opline->op2.jmp_addr - old_opcodes]; in zend_redo_pass_two_ex() [all …]
|
H A D | zend_optimizer_internal.h | 30 #define ZEND_OP2_LITERAL(opline) (op_array)->literals[(opline)->op2.constant] 31 #define ZEND_OP2_JMP_ADDR(opline) OP_JMP_ADDR(opline, (opline)->op2) 42 #define SAME_VAR(op1, op2) (op1 ## _type == op2 ## _type && op1.var == op2.var) argument 78 int zend_optimizer_eval_binary_op(zval *result, zend_uchar opcode, zval *op1, zval *op2);
|
H A D | pass2.c | 151 SET_UNUSED(opline->op2); in zend_optimizer_pass2() 168 COPY_NODE(opline->op1, opline->op2); in zend_optimizer_pass2() 181 opline->op2.num = 0; in zend_optimizer_pass2() 184 opline->op2.num = 0; in zend_optimizer_pass2() 193 ZEND_SET_OP_JMP_ADDR(opline, opline->op2, ZEND_OP1_JMP_ADDR(opline + 1)); in zend_optimizer_pass2()
|
H A D | block_pass.c | 262 znode_op op2 = opline->op2; in zend_optimize_block() local 268 VAR_SOURCE(op2) = NULL; in zend_optimize_block() 476 SET_UNUSED(opline->op2); in zend_optimize_block() 488 SET_UNUSED(opline->op2); in zend_optimize_block() 567 src->op2.num = tmp; in zend_optimize_block() 585 src->op2.num = tmp; in zend_optimize_block() 751 opline->op2.var = 0; in zend_optimize_block() 761 opline->op2.var = 0; in zend_optimize_block() 1066 opline->op2.num = map[opline->op2.num]; in assemble_code_blocks() 1287 last_op->op2.num = 0; in zend_jmp_optimization() [all …]
|
H A D | dfa_pass.c | 738 opline->op2.num = 0; in zend_dfa_optimize_jmps() 745 opline->op2.num = 0; in zend_dfa_optimize_jmps() 769 opline->op2.num = 0; in zend_dfa_optimize_jmps() 776 opline->op2.num = 0; in zend_dfa_optimize_jmps() 802 opline->op2.num = 0; in zend_dfa_optimize_jmps() 809 opline->op2.num = 0; in zend_dfa_optimize_jmps() 818 opline->op1.num = opline->op2.num; in zend_dfa_optimize_jmps() 1140 opline->op1.var = opline->op2.var; in zend_dfa_optimize_op_array() 1142 opline->op2.var = 0; in zend_dfa_optimize_op_array() 1159 SET_UNUSED(opline->op2); in zend_dfa_optimize_op_array() [all …]
|
H A D | pass1_5.c | 81 SET_UNUSED(opline->op2); in zend_optimizer_pass1() 152 SET_UNUSED(opline->op2); in zend_optimizer_pass1() 179 SET_UNUSED(opline->op2); in zend_optimizer_pass1() 254 SET_UNUSED(opline->op2); in zend_optimizer_pass1() 276 if (send1_opline->op2.num == 2) { in zend_optimizer_pass1() 321 opline->op2.constant = send2_opline->op1.constant; in zend_optimizer_pass1() 376 SET_UNUSED(opline->op2); in zend_optimizer_pass1() 420 SET_UNUSED(opline->op2); in zend_optimizer_pass1() 440 SET_UNUSED(opline->op2); in zend_optimizer_pass1() 466 SET_UNUSED(opline->op2); in zend_optimizer_pass1()
|
H A D | zend_inference.h | 144 DEFINE_SSA_OP_HAS_RANGE(op2) in DEFINE_SSA_OP_MIN_RANGE() 145 DEFINE_SSA_OP_MIN_RANGE(op2) in DEFINE_SSA_OP_MIN_RANGE() 146 DEFINE_SSA_OP_MAX_RANGE(op2) in DEFINE_SSA_OP_MIN_RANGE() 147 DEFINE_SSA_OP_RANGE_UNDERFLOW(op2) in DEFINE_SSA_OP_MIN_RANGE() 148 DEFINE_SSA_OP_RANGE_OVERFLOW(op2) in DEFINE_SSA_OP_MIN_RANGE() 224 DEFINE_SSA_OP_INFO(op2) 227 DEFINE_SSA_OP_DEF_INFO(op2)
|
H A D | compact_vars.c | 43 zend_bitset_incl(used_vars, VAR_NUM(opline->op2.var)); in zend_optimizer_compact_vars() 91 opline->op2.var = NUM_VAR(vars_map[VAR_NUM(opline->op2.var)]); in zend_optimizer_compact_vars()
|
/PHP-7.3/Zend/tests/ |
H A D | bug37046.phpt | 14 echo "op2 $k\n"; 21 op2 0 22 op2 1
|
/PHP-7.3/ext/intl/collator/ |
H A D | collator_sort.c | 53 static int collator_regular_compare_function(zval *result, zval *op1, zval *op2) in collator_regular_compare_function() argument 67 str2_p = collator_convert_object_to_string( op2, &str2 ); in collator_regular_compare_function() 151 static int collator_numeric_compare_function(zval *result, zval *op1, zval *op2) in collator_numeric_compare_function() argument 163 if( Z_TYPE_P(op2) == IS_STRING ) in collator_numeric_compare_function() 165 num2_p = collator_convert_string_to_double( op2, &num2 ); in collator_numeric_compare_function() 166 op2 = num2_p; in collator_numeric_compare_function() 169 ZVAL_LONG(result, numeric_compare_function(op1, op2)); in collator_numeric_compare_function() 183 static int collator_icu_compare_function(zval *result, zval *op1, zval *op2) in collator_icu_compare_function() argument 192 str2_p = collator_make_printable_zval( op2, &str2 ); in collator_icu_compare_function()
|
H A D | collator_sort.h | 23 typedef int (*collator_compare_func_t)( zval *result, zval *op1, zval *op2 );
|
/PHP-7.3/ext/mbstring/oniguruma/src/ |
H A D | regsyntax.c | 266 onig_set_syntax_op2(OnigSyntaxType* syntax, unsigned int op2) in onig_set_syntax_op2() argument 268 syntax->op2 = op2; in onig_set_syntax_op2() 292 return syntax->op2; in onig_get_syntax_op2()
|
/PHP-7.3/ext/opcache/tests/ |
H A D | optimize_func_calls_001.phpt | 2 Don't create FETCH_DIM_R with UNUSED op2
|