Home
last modified time | relevance | path

Searched refs:op2 (Results 1 – 25 of 53) sorted by relevance

123

/PHP-7.1/Zend/
H A Dzend_operators.h544 "r"(&op2->value), in fast_long_add_function()
567 "r"(&op2->value), in fast_long_add_function()
637 "r"(&op2->value), in fast_long_sub_function()
664 "r"(&op2->value), in fast_long_sub_function()
714 compare_function(&result, op1, op2); in fast_equal_check_function()
724 compare_function(&result, op1, op2); in fast_equal_check_long()
732 if (Z_STR_P(op1) == Z_STR_P(op2)) { in fast_equal_check_string()
744 compare_function(&result, op1, op2); in fast_equal_check_string()
755 return zend_is_identical(op1, op2); in fast_is_identical_function()
765 return !zend_is_identical(op1, op2); in fast_is_not_identical_function()
[all …]
H A Dzend_operators.c279 op2 = Z_REFVAL_P(op2); \
952 op2 = Z_REFVAL_P(op2); in add_function()
999 op2 = Z_REFVAL_P(op2); in sub_function()
1051 op2 = Z_REFVAL_P(op2); in mul_function()
1134 op2 = Z_REFVAL_P(op2); in pow_function()
1219 op2 = Z_REFVAL_P(op2); in div_function()
1305 op2 = Z_REFVAL_P(op2); in boolean_xor_function()
1721 op2 = Z_REFVAL_P(op2); in concat_function()
1977 op2 = Z_REFVAL_P(op2); in compare_function()
2028 op_free = Z_OBJ_HT_P(op2)->get(op2, &rv); in compare_function()
[all …]
H A Dzend_vm_execute.h4147 op2 = EX_CONSTANT(opline->op2);
4190 op2 = EX_CONSTANT(opline->op2);
4233 op2 = EX_CONSTANT(opline->op2);
4280 op2 = EX_CONSTANT(opline->op2);
4294 op2 = EX_CONSTANT(opline->op2);
4332 op2 = EX_CONSTANT(opline->op2);
4360 op2 = EX_CONSTANT(opline->op2);
4389 op2 = EX_CONSTANT(opline->op2);
4404 op2 = EX_CONSTANT(opline->op2);
4465 op2 = EX_CONSTANT(opline->op2);
[all …]
H A Dzend_vm_gen.php637 $op2 = "ANY";
656 $op2 = "ANY";
752 $op2_type[$op2],
754 $op2_free[$op2],
776 $op2_free_op[$op2],
1121 if ($op2 != "ANY") {
1123 if ($op2 == "TMP" || $op2 == "VAR") {
1125 $op2 = "TMPVAR";
1129 $op2 = "ANY";
1135 $op2 = "ANY";
[all …]
H A Dzend_vm_def.h63 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);
205 op2 = GET_OP2_UNDEF_CV(op2, BP_VAR_R);
233 op2 = GET_OP2_UNDEF_CV(op2, BP_VAR_R);
261 op2 = GET_OP2_UNDEF_CV(op2, BP_VAR_R);
438 op2 = GET_OP2_UNDEF_CV(op2, BP_VAR_R);
506 op2 = GET_OP2_UNDEF_CV(op2, BP_VAR_R);
556 op2 = GET_OP2_UNDEF_CV(op2, BP_VAR_R);
606 op2 = GET_OP2_UNDEF_CV(op2, BP_VAR_R);
[all …]
H A Dzend_ini_parser.y53 static void zend_ini_do_op(char type, zval *result, zval *op1, zval *op2) in zend_ini_do_op() argument
66 if (op2) { in zend_ini_do_op()
67 if (IS_LONG == Z_TYPE_P(op2)) { in zend_ini_do_op()
68 i_op2 = Z_LVAL_P(op2); in zend_ini_do_op()
70 i_op2 = atoi(Z_STRVAL_P(op2)); in zend_ini_do_op()
71 zend_string_free(Z_STR_P(op2)); in zend_ini_do_op()
117 static void zend_ini_add_string(zval *result, zval *op1, zval *op2) in zend_ini_add_string() argument
133 if (Z_TYPE_P(op2) != IS_STRING) { in zend_ini_add_string()
134 convert_to_string(op2); in zend_ini_add_string()
136 length = op1_len + (int)Z_STRLEN_P(op2); in zend_ini_add_string()
[all …]
H A Dzend_ast.c233 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 Dzend_compile.c657 opline->op2.num++; in zend_start_live_range_ex()
2148 if (op2 == NULL) { in zend_emit_op()
2151 SET_NODE(opline->op2, op2); in zend_emit_op()
2174 if (op2 == NULL) { in zend_emit_op_tmp()
2177 SET_NODE(opline->op2, op2); in zend_emit_op_tmp()
2300 if (op2 == NULL) { in zend_delayed_emit_op()
2303 SET_NODE(tmp_opline.op2, op2); in zend_delayed_emit_op()
3600 opline->op2.num = i; in zend_compile_func_cuf()
6553 && !is_numeric_string(Z_STRVAL_P(op2), Z_STRLEN_P(op2), NULL, NULL, 0)) { in zend_binary_op_produces_numeric_string_error()
6579 fn(result, op1, op2); in zend_try_ct_eval_binary_op()
[all …]
H A Dzend_opcode.c536 int nest_levels = opline->op2.num; in zend_get_brk_cont_target()
595 opline->op2.num = 0; in pass_two()
620 ZEND_PASS_TWO_UPDATE_JMP_TARGET(op_array, opline, opline->op2); in pass_two()
625 zend_op *call = &op_array->opcodes[opline->op2.opline_num - 1]; in pass_two()
632 ZEND_PASS_TWO_UPDATE_JMP_TARGET(op_array, opline, opline->op2); in pass_two()
656 ZEND_PASS_TWO_UPDATE_CONSTANT(op_array, opline->op2); in pass_two()
658 …opline->op2.var = (uint32_t)(zend_intptr_t)ZEND_CALL_VAR_NUM(NULL, op_array->last_var + opline->op… in pass_two()
/PHP-7.1/ext/opcache/Optimizer/
H A Doptimize_func_calls.c37 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 Dcompact_literals.c140 LITERAL_INFO(opline->op2.constant, LITERAL_FUNC, 1, 1, 1); in zend_optimizer_compact_literals()
143 LITERAL_INFO(opline->op2.constant, LITERAL_FUNC, 1, 1, 2); in zend_optimizer_compact_literals()
157 opline->op2.constant, in zend_optimizer_compact_literals()
171 opline->op2.constant, in zend_optimizer_compact_literals()
197 opline->op2.constant, in zend_optimizer_compact_literals()
216 opline->op2, in zend_optimizer_compact_literals()
253 opline->op2.constant, in zend_optimizer_compact_literals()
276 opline->op2.constant, in zend_optimizer_compact_literals()
303 if (opline->op2.num != (uint32_t)-1) { in zend_optimizer_compact_literals()
304 opline->op2.num = cache_size; in zend_optimizer_compact_literals()
[all …]
H A Dzend_optimizer_internal.h34 #define ZEND_OP2(opline) (opline)->op2
35 #define ZEND_OP2_LITERAL(opline) (op_array)->literals[(opline)->op2.constant]
36 #define ZEND_OP2_JMP_ADDR(opline) OP_JMP_ADDR(opline, (opline)->op2)
47 #define SAME_VAR(op1, op2) (op1 ## _type == op2 ## _type && op1.var == op2.var) argument
H A Dpass3.c113 COPY_NODE(opline->op1, opline->op2); in zend_optimizer_pass3()
114 COPY_NODE(opline->op2, tmp); in zend_optimizer_pass3()
195 ZEND_SET_OP_JMP_ADDR(opline, opline->op2, ZEND_OP1_JMP_ADDR(target)); in zend_optimizer_pass3()
214 ZEND_SET_OP_JMP_ADDR(opline, opline->op2, ZEND_OP1_JMP_ADDR(target)); in zend_optimizer_pass3()
220 ZEND_SET_OP_JMP_ADDR(opline, opline->op2, ZEND_OP2_JMP_ADDR(target)); in zend_optimizer_pass3()
225 ZEND_SET_OP_JMP_ADDR(opline, opline->op2, ZEND_OP2_JMP_ADDR(target)); in zend_optimizer_pass3()
233 ZEND_SET_OP_JMP_ADDR(opline, opline->op2, target + 1); in zend_optimizer_pass3()
239 ZEND_SET_OP_JMP_ADDR(opline, opline->op2, target + 1); in zend_optimizer_pass3()
265 SET_UNUSED(opline->op2); in zend_optimizer_pass3()
294 ZEND_SET_OP_JMP_ADDR(opline, opline->op2, new_target); in zend_optimizer_pass3()
[all …]
H A Dpass2.c151 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 Dzend_optimizer.c95 opline->op2.var += sizeof(zval); in zend_optimizer_lookup_cv()
255 opline->op2.constant = zend_optimizer_add_literal(op_array, val); in zend_optimizer_update_op2_const()
401 opline->op2.num = map[opline->op2.num]; in zend_optimizer_remove_live_range()
599 zend_string *function_name = Z_STR_P(GET_OP(op2)); in zend_optimizer_get_called_func()
617 zval *function_name = GET_OP(op2) + 1; in zend_optimizer_get_called_func()
637 zend_string *func_name = Z_STR_P(GET_OP(op2) + 1); in zend_optimizer_get_called_func()
646 zend_string *method_name = Z_STR_P(GET_OP(op2) + 1); in zend_optimizer_get_called_func()
825 ZEND_PASS_TWO_UNDO_CONSTANT(op_array, opline->op2); in zend_revert_pass_two()
842 ZEND_PASS_TWO_UPDATE_CONSTANT(op_array, opline->op2); in zend_redo_pass_two()
870 ZEND_PASS_TWO_UPDATE_CONSTANT(op_array, opline->op2); in zend_redo_pass_two_ex()
[all …]
H A Dblock_pass.c188 znode_op op2 = opline->op2; in zend_optimize_block() local
194 VAR_SOURCE(op2) = NULL; in zend_optimize_block()
392 SET_UNUSED(opline->op2); in zend_optimize_block()
475 src->op2.num = tmp; in zend_optimize_block()
492 src->op2.num = tmp; in zend_optimize_block()
648 opline->op2.var = 0; in zend_optimize_block()
657 opline->op2.var = 0; in zend_optimize_block()
943 opline->op2.num = map[opline->op2.num]; in assemble_code_blocks()
993 opline->op2.num = map[opline->op2.num]; in assemble_code_blocks()
1184 last_op->op2.num = 0; in zend_jmp_optimization()
[all …]
H A Ddfa_pass.c367 && (opline->op2_type != IS_CV || opline->op2.var != cv_var); in opline_supports_assign_contraction()
413 zval *zv = CT_CONSTANT_EX(op_array, opline->op2.constant); in zend_dfa_optimize_op_array()
416 opline->op2.constant = zend_optimizer_add_literal(op_array, &tmp); in zend_dfa_optimize_op_array()
460 zval *zv = CT_CONSTANT_EX(op_array, opline->op2.constant); in zend_dfa_optimize_op_array()
462 opline->op2.constant = zend_optimizer_add_literal(op_array, &tmp); in zend_dfa_optimize_op_array()
544 opline->op1.var = opline->op2.var; in zend_dfa_optimize_op_array()
546 opline->op2.var = 0; in zend_dfa_optimize_op_array()
557 && Z_LVAL_P(CT_CONSTANT_EX(op_array, opline->op2.constant)) == 1 in zend_dfa_optimize_op_array()
564 SET_UNUSED(opline->op2); in zend_dfa_optimize_op_array()
571 && Z_LVAL_P(CT_CONSTANT_EX(op_array, opline->op2.constant)) == 1 in zend_dfa_optimize_op_array()
[all …]
H A Dzend_inference.h141 DEFINE_SSA_OP_HAS_RANGE(op2) in DEFINE_SSA_OP_MIN_RANGE()
142 DEFINE_SSA_OP_MIN_RANGE(op2) in DEFINE_SSA_OP_MIN_RANGE()
143 DEFINE_SSA_OP_MAX_RANGE(op2) in DEFINE_SSA_OP_MIN_RANGE()
144 DEFINE_SSA_OP_RANGE_UNDERFLOW(op2) in DEFINE_SSA_OP_MIN_RANGE()
145 DEFINE_SSA_OP_RANGE_OVERFLOW(op2) in DEFINE_SSA_OP_MIN_RANGE()
222 DEFINE_SSA_OP_INFO(op2)
225 DEFINE_SSA_OP_DEF_INFO(op2)
H A Dzend_ssa.c188 zv = CRT_CONSTANT(op->op2); in find_adjusted_tmp_var()
199 return EX_VAR_TO_NUM(op->op2.var); in find_adjusted_tmp_var()
204 zv = CRT_CONSTANT(op->op2); in find_adjusted_tmp_var()
280 var2 = EX_VAR_TO_NUM((opline-1)->op2.var); in place_essa_pis()
298 zval *zv = CRT_CONSTANT((opline-1)->op2); in place_essa_pis()
469 val = CRT_CONSTANT((opline-1)->op2); in place_essa_pis()
471 var = EX_VAR_TO_NUM((opline-1)->op2.var); in place_essa_pis()
584 var[EX_VAR_TO_NUM(opline->op2.var)] = ssa_vars_count; in zend_ssa_rename()
595 var[EX_VAR_TO_NUM(opline->op2.var)] = ssa_vars_count; in zend_ssa_rename()
610 var[EX_VAR_TO_NUM(opline->op2.var)] = ssa_vars_count; in zend_ssa_rename()
[all …]
/PHP-7.1/Zend/tests/
H A Dbug37046.phpt14 echo "op2 $k\n";
21 op2 0
22 op2 1
/PHP-7.1/ext/intl/collator/
H A Dcollator_sort.c53 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 Dcollator_sort.h23 typedef int (*collator_compare_func_t)( zval *result, zval *op1, zval *op2 );
/PHP-7.1/ext/mbstring/oniguruma/
H A Dregsyntax.c245 onig_set_syntax_op2(OnigSyntaxType* syntax, unsigned int op2) in onig_set_syntax_op2() argument
247 syntax->op2 = op2; in onig_set_syntax_op2()
271 return syntax->op2; in onig_get_syntax_op2()
/PHP-7.1/ext/opcache/tests/
H A Doptimize_func_calls_001.phpt2 Don't create FETCH_DIM_R with UNUSED op2
/PHP-7.1/ext/standard/
H A Dphp_string.h144 PHPAPI int string_natural_compare_function_ex(zval *result, zval *op1, zval *op2, zend_bool case_in…
145 PHPAPI int string_natural_compare_function(zval *result, zval *op1, zval *op2);
146 PHPAPI int string_natural_case_compare_function(zval *result, zval *op1, zval *op2);

Completed in 266 milliseconds

123