Home
last modified time | relevance | path

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

123

/PHP-8.1/Zend/
H A Dzend_operators.h614 "r"(&op2->value), in fast_long_add_function()
632 "r"(&op2->value), in fast_long_add_function()
652 "r"(&op2->value), in fast_long_add_function()
724 "r"(&op2->value), in fast_long_sub_function()
742 "r"(&op2->value), in fast_long_sub_function()
762 "r"(&op2->value), in fast_long_sub_function()
824 return zend_compare(op1, op2) == 0; in fast_equal_check_function()
832 return zend_compare(op1, op2) == 0; in fast_equal_check_long()
840 return zend_compare(op1, op2) == 0; in fast_equal_check_string()
850 return zend_is_identical(op1, op2); in fast_is_identical_function()
[all …]
H A Dzend_operators.c411 op2 = Z_REFVAL_P(op2); \
1008 ZVAL_DEREF(op2); in add_function_slow()
1426 op2 = Z_REFVAL_P(op2); in boolean_xor_function()
1550 longer = op2; in bitwise_or_function()
1632 longer = op2; in bitwise_and_function()
1714 longer = op2; in bitwise_xor_function()
1874 op2 = Z_REFVAL_P(op2); in concat_function()
2172 op2 = Z_REFVAL_P(op2); in zend_compare()
2183 return Z_OBJ_HANDLER_P(op2, compare)(op1, op2); in zend_compare()
2487 zval op2; in increment_function() local
[all …]
H A Dzend_vm_gen.php633 if (($op2 == 'TMP' || $op2 == 'VAR') &&
635 $op2 = "TMPVAR";
636 } else if (($op2 == 'TMP' || $op2 == 'VAR') &&
643 $op2 = "ANY";
682 if (($op2 == 'TMP' || $op2 == 'VAR') &&
684 $op2 = "TMPVAR";
685 } else if (($op2 == 'TMP' || $op2 == 'VAR') &&
692 $op2 = "ANY";
1052 if ($op2 === "CONST") {
1074 $op2 = "ANY";
[all …]
H A Dzend_vm_execute.h7753 op2 = EX_VAR(opline->op2.var); in ZEND_ADD_SPEC_CONST_TMPVARCV_HANDLER()
7791 op2 = EX_VAR(opline->op2.var); in ZEND_SUB_SPEC_CONST_TMPVARCV_HANDLER()
7828 op2 = EX_VAR(opline->op2.var); in ZEND_MOD_SPEC_CONST_TMPVARCV_HANDLER()
7855 op2 = EX_VAR(opline->op2.var); in ZEND_SL_SPEC_CONST_TMPVARCV_HANDLER()
7876 op2 = EX_VAR(opline->op2.var); in ZEND_SR_SPEC_CONST_TMPVARCV_HANDLER()
7896 op2 = EX_VAR(opline->op2.var); in ZEND_IS_SMALLER_SPEC_CONST_TMPVARCV_HANDLER()
7939 op2 = EX_VAR(opline->op2.var); in ZEND_IS_SMALLER_SPEC_CONST_TMPVARCV_JMPZ_HANDLER()
7982 op2 = EX_VAR(opline->op2.var); in ZEND_IS_SMALLER_SPEC_CONST_TMPVARCV_JMPNZ_HANDLER()
8025 op2 = EX_VAR(opline->op2.var); in ZEND_IS_SMALLER_OR_EQUAL_SPEC_CONST_TMPVARCV_HANDLER()
8072 op2 = EX_VAR(opline->op2.var); in ZEND_IS_SMALLER_OR_EQUAL_SPEC_CONST_TMPVARCV_JMPZ_HANDLER()
[all …]
H A Dzend_vm_def.h209 zval *op1, *op2; variable
302 zval *op1, *op2; variable
344 zval *op1, *op2; variable
363 zval *op1, *op2; variable
377 zval *op1, *op2; variable
451 zval *op1, *op2; variable
466 zval *op1, *op2; variable
480 zval *op1, *op2; variable
517 zval *op1, *op2; variable
597 zval *op1, *op2; variable
[all …]
H A Dzend_ini_parser.y64 static void zend_ini_do_op(char type, zval *result, zval *op1, zval *op2) in zend_ini_do_op() argument
72 i_op2 = op2 ? get_int_val(op2) : 0; in zend_ini_do_op()
112 static void zend_ini_add_string(zval *result, zval *op1, zval *op2) in zend_ini_add_string() argument
129 if (Z_TYPE_P(op2) != IS_STRING) { in zend_ini_add_string()
130 convert_to_string(op2); in zend_ini_add_string()
132 length = op1_len + (int)Z_STRLEN_P(op2); in zend_ini_add_string()
135 memcpy(Z_STRVAL_P(result) + op1_len, Z_STRVAL_P(op2), Z_STRLEN_P(op2) + 1); in zend_ini_add_string()
H A Dzend_object_handlers.h157 typedef int (*zend_object_do_operation_t)(zend_uchar opcode, zval *result, zval *op1, zval *op2);
267 #define ZEND_COMPARE_OBJECTS_FALLBACK(op1, op2) \ argument
269 Z_TYPE_P(op2) != IS_OBJECT || \
270 Z_OBJ_HT_P(op1)->compare != Z_OBJ_HT_P(op2)->compare) { \
271 return zend_std_compare_objects(op1, op2); \
/PHP-8.1/Zend/Optimizer/
H A Dcompact_literals.c89 uint32_t op2, in add_static_slot() argument
95 zval *prop_name = &op_array->literals[op2]; in add_static_slot()
524 opline->op2.constant = map[opline->op2.constant]; in zend_optimizer_compact_literals()
542 opline->op2.num = cache_size; in zend_optimizer_compact_literals()
552 opline->op2.constant, in zend_optimizer_compact_literals()
632 if (func_slot[opline->op2.constant] >= 0) { in zend_optimizer_compact_literals()
661 opline->op2.constant, in zend_optimizer_compact_literals()
691 if (const_slot[opline->op2.constant] >= 0) { in zend_optimizer_compact_literals()
704 opline->op2.constant, in zend_optimizer_compact_literals()
730 opline->op2.constant, in zend_optimizer_compact_literals()
[all …]
H A Doptimize_func_calls.c36 Z_TYPE(op_array->literals[(opline)->op2.constant]) == IS_STRING)
143 SET_UNUSED(opline->op2); in zend_try_inline_call()
217 fcall->op2.constant = fcall->op2.constant + 1; in zend_optimize_func_calls()
224 literal_dtor(&op_array->literals[fcall->op2.constant]); in zend_optimize_func_calls()
225 literal_dtor(&op_array->literals[fcall->op2.constant + 2]); in zend_optimize_func_calls()
226 fcall->op2.constant = fcall->op2.constant + 1; in zend_optimize_func_calls()
292 if (has_known_send_mode(&call_stack[call - 1], opline->op2.num)) { in zend_optimize_func_calls()
308 if (has_known_send_mode(&call_stack[call - 1], opline->op2.num)) { in zend_optimize_func_calls()
309 call_stack[call - 1].func_arg_num = opline->op2.num; in zend_optimize_func_calls()
330 if (has_known_send_mode(&call_stack[call - 1], opline->op2.num)) { in zend_optimize_func_calls()
[all …]
H A Dsccp.c788 if (Z_TYPE_P(op2) != IS_ARRAY && !IS_PARTIAL_ARRAY(op2)) { in ct_eval_array_key_exists()
1045 if (op2) { in sccp_visit_instr()
1049 if (op2 && IS_BOT(op2)) { in sccp_visit_instr()
1077 if (!op2) { in sccp_visit_instr()
1238 if (op2) { in sccp_visit_instr()
1250 if (op2 && IS_BOT(op2)) { in sccp_visit_instr()
1275 if (!op2) { in sccp_visit_instr()
1366 if ((op1 && IS_BOT(op1)) || (op2 && IS_BOT(op2))) { in sccp_visit_instr()
1399 SKIP_IF_TOP(op2); in sccp_visit_instr()
1415 if (op2) { in sccp_visit_instr()
[all …]
H A Dpass3.c121 (opline-1)->op2.num = 0; in zend_optimizer_pass3()
124 (opline-1)->op2.num = 0; in zend_optimizer_pass3()
134 ZEND_SET_OP_JMP_ADDR((opline-1), (opline-1)->op2, target); in zend_optimizer_pass3()
155 ZEND_SET_OP_JMP_ADDR(opline, opline->op2, target); in zend_optimizer_pass3()
192 ZEND_SET_OP_JMP_ADDR(opline, opline->op2, target); in zend_optimizer_pass3()
199 opline->op2.num = 0; in zend_optimizer_pass3()
202 opline->op2.num = 0; in zend_optimizer_pass3()
278 ZEND_SET_OP_JMP_ADDR(opline, opline->op2, target); in zend_optimizer_pass3()
284 opline->op2.num = 0; in zend_optimizer_pass3()
311 ZEND_SET_OP_JMP_ADDR(opline, opline->op2, target); in zend_optimizer_pass3()
[all …]
H A Dzend_optimizer.c62 if (zend_binary_op_produces_error(opcode, op1, op2)) { in zend_optimizer_eval_binary_op()
67 return binary_op(result, op1, op2); in zend_optimizer_eval_binary_op()
232 opline->op2.num = alloc_cache_slots(op_array, 1); in zend_optimizer_update_op1_const()
357 (opline + 1)->op2.var == opline->result.var) { in zend_optimizer_update_op2_const()
634 opline->op2.var == var) { in zend_optimizer_replace_by_const()
789 zval *function_name = CRT_CONSTANT(opline->op2) + 1; in zend_optimizer_get_called_func()
1094 opline->op2.jmp_addr = &op_array->opcodes[opline->op2.jmp_addr - old_opcodes]; in zend_redo_pass_two()
1098 opline->op2.jmp_addr = &op_array->opcodes[opline->op2.jmp_addr - old_opcodes]; in zend_redo_pass_two()
1217 opline->op2.jmp_addr = &op_array->opcodes[opline->op2.jmp_addr - old_opcodes]; in zend_redo_pass_two_ex()
1221 opline->op2.jmp_addr = &op_array->opcodes[opline->op2.jmp_addr - old_opcodes]; in zend_redo_pass_two_ex()
[all …]
H A Dpass1.c99 SET_UNUSED(opline->op2); in zend_optimizer_pass1()
171 SET_UNUSED(opline->op2); in zend_optimizer_pass1()
198 SET_UNUSED(opline->op2); in zend_optimizer_pass1()
269 SET_UNUSED(opline->op2); in zend_optimizer_pass1()
383 SET_UNUSED(opline->op2); in zend_optimizer_pass1()
426 SET_UNUSED(opline->op2); in zend_optimizer_pass1()
445 SET_UNUSED(opline->op2); in zend_optimizer_pass1()
470 SET_UNUSED(opline->op2); in zend_optimizer_pass1()
578 opline->op2.num = 0; in zend_optimizer_pass1()
586 opline->op2.num = 0; in zend_optimizer_pass1()
[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 Ddfa_pass.c817 opline->op2.num = 0; in zend_dfa_optimize_jmps()
824 opline->op2.num = 0; in zend_dfa_optimize_jmps()
848 opline->op2.num = 0; in zend_dfa_optimize_jmps()
855 opline->op2.num = 0; in zend_dfa_optimize_jmps()
881 opline->op2.num = 0; in zend_dfa_optimize_jmps()
888 opline->op2.num = 0; in zend_dfa_optimize_jmps()
1274 opline->op2.num = 0; in zend_dfa_optimize_op_array()
1323 opline->op2.num = 0; in zend_dfa_optimize_op_array()
1672 opline->op2.var = 0; in zend_dfa_optimize_op_array()
1690 SET_UNUSED(opline->op2); in zend_dfa_optimize_op_array()
[all …]
H A Dblock_pass.c198 znode_op op2 = opline->op2; in zend_optimize_block() local
203 VAR_SOURCE(op2) = NULL; in zend_optimize_block()
538 src->op2.num = tmp; in zend_optimize_block()
556 src->op2.num = tmp; in zend_optimize_block()
695 opline->op2.num = 0; in zend_optimize_block()
803 opline->op2.var = 0; in zend_optimize_block()
813 opline->op2.var = 0; in zend_optimize_block()
1135 opline->op2.num = map[opline->op2.num]; in assemble_code_blocks()
1361 last_op->op2.num = 0; in zend_jmp_optimization()
1364 last_op->op2.num = 0; in zend_jmp_optimization()
[all …]
H A Dcompact_vars.c42 zend_bitset_incl(used_vars, VAR_NUM(opline->op2.var)); in zend_optimizer_compact_vars()
90 opline->op2.var = NUM_VAR(vars_map[VAR_NUM(opline->op2.var)]); in zend_optimizer_compact_vars()
H A Dzend_inference.h138 DEFINE_SSA_OP_HAS_RANGE(op2) in DEFINE_SSA_OP_MIN_RANGE()
139 DEFINE_SSA_OP_MIN_RANGE(op2) in DEFINE_SSA_OP_MIN_RANGE()
140 DEFINE_SSA_OP_MAX_RANGE(op2) in DEFINE_SSA_OP_MIN_RANGE()
141 DEFINE_SSA_OP_RANGE_UNDERFLOW(op2) in DEFINE_SSA_OP_MIN_RANGE()
142 DEFINE_SSA_OP_RANGE_OVERFLOW(op2) in DEFINE_SSA_OP_MIN_RANGE()
221 DEFINE_SSA_OP_INFO(op2) in DEFINE_SSA_OP_INFO() argument
224 DEFINE_SSA_OP_DEF_INFO(op2) in DEFINE_SSA_OP_INFO()
/PHP-8.1/ext/ffi/
H A Dphp_ffi.h240 void zend_ffi_expr_bool_or(zend_ffi_val *val, zend_ffi_val *op2);
241 void zend_ffi_expr_bool_and(zend_ffi_val *val, zend_ffi_val *op2);
242 void zend_ffi_expr_bw_or(zend_ffi_val *val, zend_ffi_val *op2);
243 void zend_ffi_expr_bw_xor(zend_ffi_val *val, zend_ffi_val *op2);
244 void zend_ffi_expr_bw_and(zend_ffi_val *val, zend_ffi_val *op2);
247 void zend_ffi_expr_is_less(zend_ffi_val *val, zend_ffi_val *op2);
253 void zend_ffi_expr_add(zend_ffi_val *val, zend_ffi_val *op2);
254 void zend_ffi_expr_sub(zend_ffi_val *val, zend_ffi_val *op2);
255 void zend_ffi_expr_mul(zend_ffi_val *val, zend_ffi_val *op2);
256 void zend_ffi_expr_div(zend_ffi_val *val, zend_ffi_val *op2);
[all …]
H A Dffi.g572 expression(&op2)
580 {zend_ffi_val op2;}
589 {zend_ffi_val op2;}
598 {zend_ffi_val op2;}
607 {zend_ffi_val op2;}
616 {zend_ffi_val op2;}
625 {zend_ffi_val op2;}
637 {zend_ffi_val op2;}
655 {zend_ffi_val op2;}
667 {zend_ffi_val op2;}
[all …]
H A Dffi.c1791 ZVAL_DEREF(op2); in zend_ffi_cdata_do_operation()
1805 if (Z_TYPE_P(op2) == IS_OBJECT && Z_OBJCE_P(op2) == zend_ffi_cdata_ce) { in zend_ffi_cdata_do_operation()
7028 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
7044 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
7057 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
7072 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
7094 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
7109 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
7151 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
7167 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
[all …]
/PHP-8.1/Zend/tests/
H A Dbug37046.phpt14 echo "op2 $k\n";
21 op2 0
22 op2 1
/PHP-8.1/ext/intl/collator/
H A Dcollator_sort.c51 static int collator_regular_compare_function(zval *result, zval *op1, zval *op2) in collator_regular_compare_function() argument
64 str2_p = collator_convert_object_to_string( op2, &str2 ); in collator_regular_compare_function()
136 static int collator_numeric_compare_function(zval *result, zval *op1, zval *op2) in collator_numeric_compare_function() argument
148 if( Z_TYPE_P(op2) == IS_STRING ) in collator_numeric_compare_function()
150 num2_p = collator_convert_string_to_double( op2, &num2 ); in collator_numeric_compare_function()
151 op2 = num2_p; in collator_numeric_compare_function()
154 ZVAL_LONG(result, numeric_compare_function(op1, op2)); in collator_numeric_compare_function()
168 static int collator_icu_compare_function(zval *result, zval *op1, zval *op2) in collator_icu_compare_function() argument
172 zend_string *str2 = collator_zval_to_string(op2); in collator_icu_compare_function()
H A Dcollator_sort.h21 typedef int (*collator_compare_func_t)( zval *result, zval *op1, zval *op2 );
/PHP-8.1/ext/standard/
H A Dphp_string.h62 PHPAPI int string_natural_compare_function_ex(zval *result, zval *op1, zval *op2, bool case_insensi…
63 PHPAPI int string_natural_compare_function(zval *result, zval *op1, zval *op2);
64 PHPAPI int string_natural_case_compare_function(zval *result, zval *op1, zval *op2);

Completed in 305 milliseconds

123