Home
last modified time | relevance | path

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

123

/PHP-7.4/Zend/
H A Dzend_operators.h647 "r"(&op2->value), in fast_long_add_function()
665 "r"(&op2->value), in fast_long_add_function()
685 "r"(&op2->value), in fast_long_add_function()
757 "r"(&op2->value), in fast_long_sub_function()
775 "r"(&op2->value), in fast_long_sub_function()
795 "r"(&op2->value), in fast_long_sub_function()
863 compare_function(&result, op1, op2); in fast_equal_check_function()
873 compare_function(&result, op1, op2); in fast_equal_check_long()
883 compare_function(&result, op1, op2); in fast_equal_check_string()
894 return zend_is_identical(op1, op2); in fast_is_identical_function()
[all …]
H A Dzend_operators.c301 op2 = Z_REFVAL_P(op2); \
983 op2 = Z_REFVAL_P(op2); in add_function_slow()
992 op2 = op1; in add_function_slow()
1054 op2 = Z_REFVAL_P(op2); in sub_function_slow()
1128 op2 = Z_REFVAL_P(op2); in mul_function()
1221 op2 = Z_REFVAL_P(op2); in pow_function()
1328 op2 = Z_REFVAL_P(op2); in div_function()
1423 op2 = Z_REFVAL_P(op2); in boolean_xor_function()
1848 op2 = Z_REFVAL_P(op2); in concat_function()
2106 op2 = Z_REFVAL_P(op2); in compare_function()
[all …]
H A Dzend_vm_gen.php677 if (($op2 == 'TMP' || $op2 == 'VAR') &&
679 $op2 = "TMPVAR";
680 } else if (($op2 == 'TMP' || $op2 == 'VAR') &&
682 $op2 = "TMPVARCV";
685 $op2 = "TMPVARCV";
687 $op2 = "ANY";
725 if (($op2 == 'TMP' || $op2 == 'VAR') &&
727 $op2 = "TMPVAR";
728 } else if (($op2 == 'TMP' || $op2 == 'VAR') &&
735 $op2 = "ANY";
[all …]
H A Dzend_vm_execute.h6742 op2 = EX_VAR(opline->op2.var); in ZEND_ADD_SPEC_CONST_TMPVARCV_HANDLER()
6781 op2 = EX_VAR(opline->op2.var); in ZEND_SUB_SPEC_CONST_TMPVARCV_HANDLER()
6819 op2 = EX_VAR(opline->op2.var); in ZEND_MOD_SPEC_CONST_TMPVARCV_HANDLER()
6847 op2 = EX_VAR(opline->op2.var); in ZEND_SL_SPEC_CONST_TMPVARCV_HANDLER()
6869 op2 = EX_VAR(opline->op2.var); in ZEND_SR_SPEC_CONST_TMPVARCV_HANDLER()
6890 op2 = EX_VAR(opline->op2.var); in ZEND_IS_SMALLER_SPEC_CONST_TMPVARCV_HANDLER()
6938 op2 = EX_VAR(opline->op2.var); in ZEND_IS_SMALLER_SPEC_CONST_TMPVARCV_JMPZ_HANDLER()
6986 op2 = EX_VAR(opline->op2.var); in ZEND_IS_SMALLER_SPEC_CONST_TMPVARCV_JMPNZ_HANDLER()
7034 op2 = EX_VAR(opline->op2.var); in ZEND_IS_SMALLER_OR_EQUAL_SPEC_CONST_TMPVARCV_HANDLER()
7082 op2 = EX_VAR(opline->op2.var); in ZEND_IS_SMALLER_OR_EQUAL_SPEC_CONST_TMPVARCV_JMPZ_HANDLER()
[all …]
H A Dzend_vm_def.h213 zval *op1, *op2; variable
308 zval *op1, *op2; variable
351 zval *op1, *op2; variable
371 zval *op1, *op2; variable
386 zval *op1, *op2; variable
461 zval *op1, *op2; variable
479 zval *op1, *op2; variable
529 zval *op1, *op2; variable
624 zval *op1, *op2; variable
719 zval *op1, *op2; variable
[all …]
H A Dzend_ini_parser.y67 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()
/PHP-7.4/ext/opcache/Optimizer/
H A Dcompact_literals.c84 uint32_t op2, in add_static_slot() argument
92 zval *prop_name = &op_array->literals[op2]; in add_static_slot()
510 opline->op2.constant = map[opline->op2.constant]; in zend_optimizer_compact_literals()
522 opline->op2.num = cache_size; in zend_optimizer_compact_literals()
528 opline->op2.num = cache_size; in zend_optimizer_compact_literals()
537 opline->op2.constant, in zend_optimizer_compact_literals()
617 if (func_slot[opline->op2.constant] >= 0) { in zend_optimizer_compact_literals()
646 opline->op2.constant, in zend_optimizer_compact_literals()
689 opline->op2.constant, in zend_optimizer_compact_literals()
715 opline->op2.constant, in zend_optimizer_compact_literals()
[all …]
H A Dpass3.c98 && 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()
197 ZEND_SET_OP_JMP_ADDR(opline, opline->op2, target + 1); in zend_optimizer_pass3()
203 ZEND_SET_OP_JMP_ADDR(opline, opline->op2, target + 1); in zend_optimizer_pass3()
229 SET_UNUSED(opline->op2); in zend_optimizer_pass3()
262 ZEND_SET_OP_JMP_ADDR(opline, opline->op2, new_target); in zend_optimizer_pass3()
268 ZEND_SET_OP_JMP_ADDR(opline, opline->op2, target + 1); in zend_optimizer_pass3()
274 ZEND_SET_OP_JMP_ADDR(opline, opline->op2, target + 1); in zend_optimizer_pass3()
328 op->op2.var == opline->result.var) { in zend_optimizer_pass3()
[all …]
H A Doptimize_func_calls.c37 Z_TYPE(op_array->literals[(opline)->op2.constant]) == IS_STRING)
149 SET_UNUSED(opline->op2); in zend_try_inline_call()
205 fcall->op2.constant = fcall->op2.constant + 1; in zend_optimize_func_calls()
210 literal_dtor(&op_array->literals[fcall->op2.constant]); in zend_optimize_func_calls()
211 literal_dtor(&op_array->literals[fcall->op2.constant + 2]); in zend_optimize_func_calls()
212 fcall->op2.constant = fcall->op2.constant + 1; in zend_optimize_func_calls()
263 if (ARG_MUST_BE_SENT_BY_REF(call_stack[call - 1].func, opline->op2.num)) { in zend_optimize_func_calls()
273 call_stack[call - 1].func_arg_num = opline->op2.num; in zend_optimize_func_calls()
281 if (ARG_SHOULD_BE_SENT_BY_REF(call_stack[call - 1].func, opline->op2.num)) { in zend_optimize_func_calls()
290 if (ARG_MUST_BE_SENT_BY_REF(call_stack[call - 1].func, opline->op2.num)) { in zend_optimize_func_calls()
[all …]
H A Dsccp.c762 if (Z_TYPE_P(op2) != IS_ARRAY && !IS_PARTIAL_ARRAY(op2)) { in ct_eval_array_key_exists()
1121 if (op2) { in sccp_visit_instr()
1125 if (op2 && IS_BOT(op2)) { in sccp_visit_instr()
1153 if (!op2) { in sccp_visit_instr()
1319 if (op2) { in sccp_visit_instr()
1331 if (op2 && IS_BOT(op2)) { in sccp_visit_instr()
1356 if (!op2) { in sccp_visit_instr()
1447 if ((op1 && IS_BOT(op1)) || (op2 && IS_BOT(op2))) { in sccp_visit_instr()
1479 SKIP_IF_TOP(op2); in sccp_visit_instr()
1495 if (op2) { in sccp_visit_instr()
[all …]
H A Dzend_optimizer.c69 || Z_TYPE_P(op2) == IS_ARRAY) in zend_optimizer_eval_binary_op()
70 && Z_TYPE_P(op1) != Z_TYPE_P(op2)) { in zend_optimizer_eval_binary_op()
77 if (zval_get_long(op2) == 0) { in zend_optimizer_eval_binary_op()
88 || Z_TYPE_P(op2) == IS_ARRAY) { in zend_optimizer_eval_binary_op()
95 if (zval_get_long(op2) < 0) { in zend_optimizer_eval_binary_op()
104 ret = binary_op(result, op1, op2); in zend_optimizer_eval_binary_op()
683 opline->op2.var == var) { in zend_optimizer_replace_by_const()
1142 opline->op2.jmp_addr = &op_array->opcodes[opline->op2.jmp_addr - old_opcodes]; in zend_redo_pass_two()
1146 opline->op2.jmp_addr = &op_array->opcodes[opline->op2.jmp_addr - old_opcodes]; in zend_redo_pass_two()
1229 opline->op2.jmp_addr = &op_array->opcodes[opline->op2.jmp_addr - old_opcodes]; in zend_redo_pass_two_ex()
[all …]
H A Dzend_optimizer_internal.h30 #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
83 int zend_optimizer_eval_binary_op(zval *result, zend_uchar opcode, zval *op1, zval *op2);
H A Dpass2.c158 SET_UNUSED(opline->op2); in zend_optimizer_pass2()
175 COPY_NODE(opline->op1, opline->op2); in zend_optimizer_pass2()
188 opline->op2.num = 0; in zend_optimizer_pass2()
191 opline->op2.num = 0; in zend_optimizer_pass2()
200 ZEND_SET_OP_JMP_ADDR(opline, opline->op2, ZEND_OP1_JMP_ADDR(opline + 1)); in zend_optimizer_pass2()
H A Ddfa_pass.c754 opline->op2.num = 0; in zend_dfa_optimize_jmps()
761 opline->op2.num = 0; in zend_dfa_optimize_jmps()
785 opline->op2.num = 0; in zend_dfa_optimize_jmps()
792 opline->op2.num = 0; in zend_dfa_optimize_jmps()
818 opline->op2.num = 0; in zend_dfa_optimize_jmps()
825 opline->op2.num = 0; in zend_dfa_optimize_jmps()
930 SET_UNUSED(opline->op2); in zend_dfa_optimize_jmps()
959 SET_UNUSED(opline->op2); in zend_dfa_optimize_jmps()
1241 opline->op2.var = 0; in zend_dfa_optimize_op_array()
1259 SET_UNUSED(opline->op2); in zend_dfa_optimize_op_array()
[all …]
H A Dpass1_5.c82 SET_UNUSED(opline->op2); in zend_optimizer_pass1()
153 SET_UNUSED(opline->op2); in zend_optimizer_pass1()
180 SET_UNUSED(opline->op2); in zend_optimizer_pass1()
255 SET_UNUSED(opline->op2); in zend_optimizer_pass1()
277 if (send1_opline->op2.num == 2) { in zend_optimizer_pass1()
377 SET_UNUSED(opline->op2); in zend_optimizer_pass1()
421 SET_UNUSED(opline->op2); in zend_optimizer_pass1()
441 SET_UNUSED(opline->op2); in zend_optimizer_pass1()
467 SET_UNUSED(opline->op2); in zend_optimizer_pass1()
552 (opline + 1)->op1 = (opline + 1)->op2; in zend_optimizer_pass1()
[all …]
H A Dblock_pass.c266 znode_op op2 = opline->op2; in zend_optimize_block() local
271 VAR_SOURCE(op2) = NULL; in zend_optimize_block()
479 SET_UNUSED(opline->op2); in zend_optimize_block()
491 SET_UNUSED(opline->op2); in zend_optimize_block()
570 src->op2.num = tmp; in zend_optimize_block()
588 src->op2.num = tmp; in zend_optimize_block()
754 opline->op2.var = 0; in zend_optimize_block()
764 opline->op2.var = 0; in zend_optimize_block()
1075 opline->op2.num = map[opline->op2.num]; in assemble_code_blocks()
1259 last_op->op2.num = 0; in zend_jmp_optimization()
[all …]
H A Dcompact_vars.c43 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()
H A Dzend_inference.h144 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) in DEFINE_SSA_OP_INFO() argument
227 DEFINE_SSA_OP_DEF_INFO(op2) in DEFINE_SSA_OP_INFO()
/PHP-7.4/ext/ffi/
H A Dphp_ffi.h242 void zend_ffi_expr_bool_or(zend_ffi_val *val, zend_ffi_val *op2);
243 void zend_ffi_expr_bool_and(zend_ffi_val *val, zend_ffi_val *op2);
244 void zend_ffi_expr_bw_or(zend_ffi_val *val, zend_ffi_val *op2);
245 void zend_ffi_expr_bw_xor(zend_ffi_val *val, zend_ffi_val *op2);
246 void zend_ffi_expr_bw_and(zend_ffi_val *val, zend_ffi_val *op2);
249 void zend_ffi_expr_is_less(zend_ffi_val *val, zend_ffi_val *op2);
255 void zend_ffi_expr_add(zend_ffi_val *val, zend_ffi_val *op2);
256 void zend_ffi_expr_sub(zend_ffi_val *val, zend_ffi_val *op2);
257 void zend_ffi_expr_mul(zend_ffi_val *val, zend_ffi_val *op2);
258 void zend_ffi_expr_div(zend_ffi_val *val, zend_ffi_val *op2);
[all …]
H A Dffi.g576 expression(&op2)
584 {zend_ffi_val op2;}
593 {zend_ffi_val op2;}
602 {zend_ffi_val op2;}
611 {zend_ffi_val op2;}
620 {zend_ffi_val op2;}
629 {zend_ffi_val op2;}
641 {zend_ffi_val op2;}
659 {zend_ffi_val op2;}
671 {zend_ffi_val op2;}
[all …]
H A Dffi.c1758 ZVAL_DEREF(op2); in zend_ffi_cdata_do_operation()
1772 if (Z_TYPE_P(op2) == IS_OBJECT && Z_OBJCE_P(op2) == zend_ffi_cdata_ce) { in zend_ffi_cdata_do_operation()
6746 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
6762 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
6775 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
6790 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
6812 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
6827 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
6869 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
6885 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
[all …]
/PHP-7.4/Zend/tests/
H A Dbug37046.phpt14 echo "op2 $k\n";
21 op2 0
22 op2 1
H A Dfe_fetch_op2_live_range.phpt2 FE_FETCH op2 is a def and needs special live range handling
/PHP-7.4/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 );

Completed in 325 milliseconds

123