/PHP-7.2/Zend/ |
H A D | zend_operators.h | 587 "r"(&op2->value), in fast_long_add_function() 610 "r"(&op2->value), in fast_long_add_function() 694 "r"(&op2->value), in fast_long_sub_function() 721 "r"(&op2->value), in fast_long_sub_function() 771 compare_function(&result, op1, op2); in fast_equal_check_function() 781 compare_function(&result, op1, op2); in fast_equal_check_long() 789 if (Z_STR_P(op1) == Z_STR_P(op2)) { in fast_equal_check_string() 801 compare_function(&result, op1, op2); in fast_equal_check_string() 812 return zend_is_identical(op1, op2); in fast_is_identical_function() 822 return !zend_is_identical(op1, op2); in fast_is_not_identical_function() [all …]
|
H A D | zend_operators.c | 285 op2 = Z_REFVAL_P(op2); \ 934 op2 = Z_REFVAL_P(op2); in add_function() 984 op2 = Z_REFVAL_P(op2); in sub_function() 1039 op2 = Z_REFVAL_P(op2); in mul_function() 1125 op2 = Z_REFVAL_P(op2); in pow_function() 1222 op2 = Z_REFVAL_P(op2); in div_function() 1311 op2 = Z_REFVAL_P(op2); in boolean_xor_function() 1735 op2 = Z_REFVAL_P(op2); in concat_function() 1994 op2 = Z_REFVAL_P(op2); in compare_function() 2045 op_free = Z_OBJ_HT_P(op2)->get(op2, &rv); in compare_function() [all …]
|
H A D | zend_vm_execute.h | 4125 op2 = EX_CONSTANT(opline->op2); 4168 op2 = EX_CONSTANT(opline->op2); 4211 op2 = EX_CONSTANT(opline->op2); 4258 op2 = EX_CONSTANT(opline->op2); 4272 op2 = EX_CONSTANT(opline->op2); 4311 op2 = EX_CONSTANT(opline->op2); 4339 op2 = EX_CONSTANT(opline->op2); 4368 op2 = EX_CONSTANT(opline->op2); 4382 op2 = EX_CONSTANT(opline->op2); 4448 op2 = EX_CONSTANT(opline->op2); [all …]
|
H A D | zend_vm_gen.php | 641 $op2 = "ANY"; 664 $op2 = "ANY"; 760 $op2_type[$op2], 762 $op2_free[$op2], 784 $op2_free_op[$op2], 1155 if ($op2 != "ANY") { 1157 if ($op2 == "TMP" || $op2 == "VAR") { 1159 $op2 = "TMPVAR"; 1163 $op2 = "ANY"; 1169 $op2 = "ANY"; [all …]
|
H A D | zend_vm_def.h | 63 op2 = GET_OP2_UNDEF_CV(op2, BP_VAR_R); 106 op2 = GET_OP2_UNDEF_CV(op2, BP_VAR_R); 152 op2 = GET_OP2_UNDEF_CV(op2, BP_VAR_R); 206 op2 = GET_OP2_UNDEF_CV(op2, BP_VAR_R); 234 op2 = GET_OP2_UNDEF_CV(op2, BP_VAR_R); 262 op2 = GET_OP2_UNDEF_CV(op2, BP_VAR_R); 340 op2 = GET_OP2_UNDEF_CV(op2, BP_VAR_R); 443 op2 = GET_OP2_UNDEF_CV(op2, BP_VAR_R); 511 op2 = GET_OP2_UNDEF_CV(op2, BP_VAR_R); 561 op2 = GET_OP2_UNDEF_CV(op2, BP_VAR_R); [all …]
|
H A D | zend_ini_parser.y | 69 static void zend_ini_do_op(char type, zval *result, zval *op1, zval *op2) in zend_ini_do_op() argument 77 i_op2 = op2 ? get_int_val(op2) : 0; in zend_ini_do_op() 119 static void zend_ini_add_string(zval *result, zval *op1, zval *op2) in zend_ini_add_string() argument 135 if (Z_TYPE_P(op2) != IS_STRING) { in zend_ini_add_string() 136 convert_to_string(op2); in zend_ini_add_string() 138 length = op1_len + (int)Z_STRLEN_P(op2); in zend_ini_add_string() 141 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_ast.c | 233 zval op1, op2; in zend_ast_evaluate() local 245 ret = op(result, &op1, &op2); in zend_ast_evaluate() 247 zval_dtor(&op2); in zend_ast_evaluate() 261 ret = op(result, &op2, &op1); in zend_ast_evaluate() 263 zval_dtor(&op2); in zend_ast_evaluate() 310 zval_dtor(&op2); in zend_ast_evaluate() 330 zval_dtor(&op2); in zend_ast_evaluate() 381 zval_dtor(&op2); in zend_ast_evaluate() 390 zval_dtor(&op2); in zend_ast_evaluate() 415 zval_dtor(&op2); in zend_ast_evaluate() [all …]
|
H A D | zend_compile.c | 675 opline->op2.num++; in zend_start_live_range_ex() 2145 if (op2 == NULL) { in zend_emit_op() 2148 SET_NODE(opline->op2, op2); in zend_emit_op() 2171 if (op2 == NULL) { in zend_emit_op_tmp() 2174 SET_NODE(opline->op2, op2); in zend_emit_op_tmp() 2299 if (op2 == NULL) { in zend_delayed_emit_op() 2302 SET_NODE(tmp_opline.op2, op2); in zend_delayed_emit_op() 3624 opline->op2.num = i; in zend_compile_func_cuf() 6902 && !is_numeric_string(Z_STRVAL_P(op2), Z_STRLEN_P(op2), NULL, NULL, 0)) { in zend_binary_op_produces_numeric_string_error() 6928 fn(result, op1, op2); in zend_try_ct_eval_binary_op() [all …]
|
/PHP-7.2/ext/opcache/Optimizer/ |
H A D | optimize_func_calls.c | 37 Z_TYPE(op_array->literals[(opline)->op2.constant]) == IS_STRING) 140 SET_UNUSED(opline->op2); in zend_try_inline_call() 194 …Z_CACHE_SLOT(op_array->literals[fcall->op2.constant + 1]) = Z_CACHE_SLOT(op_array->literals[fcall-… in zend_optimize_func_calls() 196 fcall->op2.constant = fcall->op2.constant + 1; in zend_optimize_func_calls() 201 …Z_CACHE_SLOT(op_array->literals[fcall->op2.constant + 1]) = Z_CACHE_SLOT(op_array->literals[fcall-… 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 if (ARG_SHOULD_BE_SENT_BY_REF(call_stack[call - 1].func, opline->op2.num)) { in zend_optimize_func_calls() [all …]
|
H A D | pass3.c | 94 && opline->op2.var == next_opline->op1.var && in zend_optimizer_pass3() 109 COPY_NODE(opline->op1, opline->op2); in zend_optimizer_pass3() 110 COPY_NODE(opline->op2, tmp); in zend_optimizer_pass3() 229 ZEND_SET_OP_JMP_ADDR(opline, opline->op2, target + 1); in zend_optimizer_pass3() 235 ZEND_SET_OP_JMP_ADDR(opline, opline->op2, target + 1); in zend_optimizer_pass3() 261 SET_UNUSED(opline->op2); in zend_optimizer_pass3() 294 ZEND_SET_OP_JMP_ADDR(opline, opline->op2, new_target); in zend_optimizer_pass3() 300 ZEND_SET_OP_JMP_ADDR(opline, opline->op2, target + 1); in zend_optimizer_pass3() 306 ZEND_SET_OP_JMP_ADDR(opline, opline->op2, target + 1); in zend_optimizer_pass3() 360 op->op2.var == opline->result.var) { in zend_optimizer_pass3() [all …]
|
H A D | compact_literals.c | 141 LITERAL_INFO(opline->op2.constant, LITERAL_FUNC, 1, 1, 1); in zend_optimizer_compact_literals() 144 LITERAL_INFO(opline->op2.constant, LITERAL_FUNC, 1, 1, 2); in zend_optimizer_compact_literals() 158 opline->op2.constant, in zend_optimizer_compact_literals() 172 opline->op2.constant, in zend_optimizer_compact_literals() 198 opline->op2.constant, in zend_optimizer_compact_literals() 217 opline->op2, in zend_optimizer_compact_literals() 254 opline->op2.constant, in zend_optimizer_compact_literals() 277 opline->op2.constant, in zend_optimizer_compact_literals() 304 if (opline->op2.num != (uint32_t)-1) { in zend_optimizer_compact_literals() 305 opline->op2.num = cache_size; in zend_optimizer_compact_literals() [all …]
|
H A D | sccp.c | 935 if ((op1 && IS_BOT(op1)) || (op2 && IS_BOT(op2))) { in sccp_visit_instr() 967 SKIP_IF_TOP(op2); in sccp_visit_instr() 996 SKIP_IF_TOP(op2); in sccp_visit_instr() 1077 SKIP_IF_TOP(op2); in sccp_visit_instr() 1089 SKIP_IF_TOP(op2); in sccp_visit_instr() 1100 SKIP_IF_TOP(op2); in sccp_visit_instr() 1142 SKIP_IF_TOP(op2); in sccp_visit_instr() 1156 SKIP_IF_TOP(op2); in sccp_visit_instr() 1184 if (op2) { in sccp_visit_instr() 1185 SKIP_IF_TOP(op2); in sccp_visit_instr() [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 | 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() 510 opline->op2.num = map[opline->op2.num]; in zend_optimizer_remove_live_range() 711 opline->op2.var == var) { in zend_optimizer_replace_by_const() 846 zend_string *function_name = Z_STR_P(GET_OP(op2)); in zend_optimizer_get_called_func() 864 zval *function_name = GET_OP(op2) + 1; in zend_optimizer_get_called_func() [all …]
|
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 | compact_vars.c | 43 zend_bitset_incl(used_cvs, VAR_NUM(opline->op2.var)); in zend_optimizer_compact_vars() 77 opline->op2.var = NUM_VAR(cv_map[VAR_NUM(opline->op2.var)]); in zend_optimizer_compact_vars() 79 opline->op2.var -= sizeof(zval) * tmp_offset; in zend_optimizer_compact_vars()
|
H A D | block_pass.c | 258 znode_op op2 = opline->op2; in zend_optimize_block() local 264 VAR_SOURCE(op2) = NULL; in zend_optimize_block() 470 SET_UNUSED(opline->op2); in zend_optimize_block() 553 src->op2.num = tmp; in zend_optimize_block() 570 src->op2.num = tmp; in zend_optimize_block() 729 opline->op2.var = 0; in zend_optimize_block() 738 opline->op2.var = 0; in zend_optimize_block() 1035 opline->op2.num = map[opline->op2.num]; in assemble_code_blocks() 1085 opline->op2.num = map[opline->op2.num]; in assemble_code_blocks() 1277 last_op->op2.num = 0; in zend_jmp_optimization() [all …]
|
H A D | dfa_pass.c | 344 && (opline->op2_type != IS_CV || opline->op2.var != cv_var); in opline_supports_assign_contraction() 519 opline->op2.num = 0; in zend_dfa_optimize_jmps() 530 opline->op1.num = opline->op2.num; in zend_dfa_optimize_jmps() 624 zval *zv = CT_CONSTANT_EX(op_array, opline->op2.constant); in zend_dfa_optimize_op_array() 671 zval *zv = CT_CONSTANT_EX(op_array, opline->op2.constant); in zend_dfa_optimize_op_array() 765 opline->op1.var = opline->op2.var; in zend_dfa_optimize_op_array() 767 opline->op2.var = 0; in zend_dfa_optimize_op_array() 777 && Z_LVAL_P(CT_CONSTANT_EX(op_array, opline->op2.constant)) == 1 in zend_dfa_optimize_op_array() 784 SET_UNUSED(opline->op2); in zend_dfa_optimize_op_array() 791 && Z_LVAL_P(CT_CONSTANT_EX(op_array, opline->op2.constant)) == 1 in zend_dfa_optimize_op_array() [all …]
|
H A D | pass1_5.c | 84 SET_UNUSED(opline->op2); in zend_optimizer_pass1() 228 SET_UNUSED(opline->op2); in zend_optimizer_pass1() 255 SET_UNUSED(opline->op2); in zend_optimizer_pass1() 332 SET_UNUSED(opline->op2); in zend_optimizer_pass1() 354 if (send1_opline->op2.num == 2) { in zend_optimizer_pass1() 399 opline->op2.constant = send2_opline->op1.constant; in zend_optimizer_pass1() 454 SET_UNUSED(opline->op2); in zend_optimizer_pass1() 498 SET_UNUSED(opline->op2); in zend_optimizer_pass1() 518 SET_UNUSED(opline->op2); in zend_optimizer_pass1() 544 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() 226 DEFINE_SSA_OP_INFO(op2) 229 DEFINE_SSA_OP_DEF_INFO(op2)
|
/PHP-7.2/Zend/tests/ |
H A D | bug37046.phpt | 14 echo "op2 $k\n"; 21 op2 0 22 op2 1
|
/PHP-7.2/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.2/ext/mbstring/oniguruma/src/ |
H A D | regsyntax.c | 247 onig_set_syntax_op2(OnigSyntaxType* syntax, unsigned int op2) in onig_set_syntax_op2() argument 249 syntax->op2 = op2; in onig_set_syntax_op2() 273 return syntax->op2; in onig_get_syntax_op2()
|
/PHP-7.2/ext/opcache/tests/ |
H A D | optimize_func_calls_001.phpt | 2 Don't create FETCH_DIM_R with UNUSED op2
|