Home
last modified time | relevance | path

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

123

/PHP-8.3/Zend/
H A Dzend_operators.h658 "r"(&op2->value), in fast_long_add_function()
676 "r"(&op2->value), in fast_long_add_function()
696 "r"(&op2->value), in fast_long_add_function()
746 "r"(&op2->value), in fast_long_sub_function()
764 "r"(&op2->value), in fast_long_sub_function()
784 "r"(&op2->value), in fast_long_sub_function()
846 return zend_compare(op1, op2) == 0; in fast_equal_check_function()
854 return zend_compare(op1, op2) == 0; in fast_equal_check_long()
862 return zend_compare(op1, op2) == 0; in fast_equal_check_string()
872 return zend_is_identical(op1, op2); in fast_is_identical_function()
[all …]
H A Dzend_operators.c520 op2 = Z_REFVAL_P(op2); \
1117 ZVAL_DEREF(op2); in add_function_slow()
1535 op2 = Z_REFVAL_P(op2); in boolean_xor_function()
1659 longer = op2; in bitwise_or_function()
1741 longer = op2; in bitwise_and_function()
1823 longer = op2; in bitwise_xor_function()
1990 op2 = Z_REFVAL_P(op2); in concat_function()
2316 op2 = Z_REFVAL_P(op2); in zend_compare()
2327 return Z_OBJ_HANDLER_P(op2, compare)(op1, op2); in zend_compare()
2674 zval op2; in increment_function() local
[all …]
H A Dzend_vm_gen.php600 if (($op2 == 'TMP' || $op2 == 'VAR') &&
602 $op2 = "TMPVAR";
603 } else if (($op2 == 'TMP' || $op2 == 'VAR') &&
610 $op2 = "ANY";
649 if (($op2 == 'TMP' || $op2 == 'VAR') &&
651 $op2 = "TMPVAR";
652 } else if (($op2 == 'TMP' || $op2 == 'VAR') &&
659 $op2 = "ANY";
1015 if ($op2 === "CONST") {
1037 $op2 = "ANY";
[all …]
H A Dzend_vm_execute.h7949 op2 = EX_VAR(opline->op2.var); in ZEND_ADD_SPEC_CONST_TMPVARCV_HANDLER()
7987 op2 = EX_VAR(opline->op2.var); in ZEND_SUB_SPEC_CONST_TMPVARCV_HANDLER()
8024 op2 = EX_VAR(opline->op2.var); in ZEND_MOD_SPEC_CONST_TMPVARCV_HANDLER()
8051 op2 = EX_VAR(opline->op2.var); in ZEND_SL_SPEC_CONST_TMPVARCV_HANDLER()
8072 op2 = EX_VAR(opline->op2.var); in ZEND_SR_SPEC_CONST_TMPVARCV_HANDLER()
8092 op2 = EX_VAR(opline->op2.var); in ZEND_IS_SMALLER_SPEC_CONST_TMPVARCV_HANDLER()
8135 op2 = EX_VAR(opline->op2.var); in ZEND_IS_SMALLER_SPEC_CONST_TMPVARCV_JMPZ_HANDLER()
8178 op2 = EX_VAR(opline->op2.var); in ZEND_IS_SMALLER_SPEC_CONST_TMPVARCV_JMPNZ_HANDLER()
8221 op2 = EX_VAR(opline->op2.var); in ZEND_IS_SMALLER_OR_EQUAL_SPEC_CONST_TMPVARCV_HANDLER()
8268 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
454 zval *op1, *op2; variable
469 zval *op1, *op2; variable
483 zval *op1, *op2; variable
520 zval *op1, *op2; variable
600 zval *op1, *op2; variable
[all …]
H A Dzend_ini_parser.y65 static void zend_ini_do_op(char type, zval *result, zval *op1, zval *op2) in zend_ini_do_op() argument
73 i_op2 = op2 ? get_int_val(op2) : 0; in zend_ini_do_op()
118 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 Dzend_ast.c537 zval op1, op2; in zend_ast_evaluate_inner() local
553 zval_ptr_dtor_nogc(&op2); in zend_ast_evaluate_inner()
569 zval_ptr_dtor_nogc(&op2); in zend_ast_evaluate_inner()
637 zval_ptr_dtor_nogc(&op2); in zend_ast_evaluate_inner()
657 zval_ptr_dtor_nogc(&op2); in zend_ast_evaluate_inner()
708 zval_ptr_dtor_nogc(&op2); in zend_ast_evaluate_inner()
717 zval_ptr_dtor_nogc(&op2); in zend_ast_evaluate_inner()
799 zval_ptr_dtor_nogc(&op2); in zend_ast_evaluate_inner()
842 zval_ptr_dtor_nogc(&op2); in zend_ast_evaluate_inner()
867 zval_ptr_dtor_nogc(&op2); in zend_ast_evaluate_inner()
[all …]
/PHP-8.3/Zend/Optimizer/
H A Dcompact_literals.c99 zval *prop_name = &op_array->literals[op2]; in add_static_slot()
179 LITERAL_INFO(opline->op2.constant, 2); in zend_optimizer_compact_literals()
182 LITERAL_INFO(opline->op2.constant, 3); in zend_optimizer_compact_literals()
189 LITERAL_INFO(opline->op2.constant, 2); in zend_optimizer_compact_literals()
497 opline->op2.constant = map[opline->op2.constant]; in zend_optimizer_compact_literals()
515 opline->op2.num = cache_size; in zend_optimizer_compact_literals()
525 opline->op2.constant, in zend_optimizer_compact_literals()
634 opline->op2.constant, in zend_optimizer_compact_literals()
679 opline->op2.constant, in zend_optimizer_compact_literals()
705 opline->op2.constant, in zend_optimizer_compact_literals()
[all …]
H A Doptimize_func_calls.c126 SET_UNUSED(opline->op2); in zend_try_inline_call()
200 fcall->op2.constant = fcall->op2.constant + 1; in zend_optimize_func_calls()
207 literal_dtor(&op_array->literals[fcall->op2.constant]); in zend_optimize_func_calls()
208 literal_dtor(&op_array->literals[fcall->op2.constant + 2]); in zend_optimize_func_calls()
209 fcall->op2.constant = fcall->op2.constant + 1; in zend_optimize_func_calls()
275 if (has_known_send_mode(&call_stack[call - 1], opline->op2.num)) { in zend_optimize_func_calls()
288 if (has_known_send_mode(&call_stack[call - 1], opline->op2.num)) { in zend_optimize_func_calls()
289 call_stack[call - 1].func_arg_num = opline->op2.num; in zend_optimize_func_calls()
310 if (has_known_send_mode(&call_stack[call - 1], opline->op2.num)) { in zend_optimize_func_calls()
325 if (has_known_send_mode(&call_stack[call - 1], opline->op2.num)) { in zend_optimize_func_calls()
[all …]
H A Dsccp.c741 if (Z_TYPE_P(op2) != IS_ARRAY && !IS_PARTIAL_ARRAY(op2)) { in ct_eval_array_key_exists()
905 if (op2) { in sccp_visit_instr()
909 if (op2 && IS_BOT(op2)) { in sccp_visit_instr()
937 if (!op2) { in sccp_visit_instr()
1100 if (op2) { in sccp_visit_instr()
1112 if (op2 && IS_BOT(op2)) { in sccp_visit_instr()
1137 if (!op2) { in sccp_visit_instr()
1228 if ((op1 && IS_BOT(op1)) || (op2 && IS_BOT(op2))) { in sccp_visit_instr()
1261 SKIP_IF_TOP(op2); in sccp_visit_instr()
1277 if (op2) { in sccp_visit_instr()
[all …]
H A Dzend_optimizer.c58 if (zend_binary_op_produces_error(opcode, op1, op2)) { in zend_optimizer_eval_binary_op()
63 return binary_op(result, op1, op2); in zend_optimizer_eval_binary_op()
218 SET_UNUSED(opline->op2); in zend_optimizer_convert_to_free_op1()
223 SET_UNUSED(opline->op2); in zend_optimizer_convert_to_free_op1()
328 opline->op2.num = alloc_cache_slots(op_array, 1); in zend_optimizer_update_op1_const()
696 opline->op2.var == var) { in zend_optimizer_replace_by_const()
1160 opline->op2.jmp_addr = &op_array->opcodes[opline->op2.jmp_addr - old_opcodes]; in zend_redo_pass_two()
1164 opline->op2.jmp_addr = &op_array->opcodes[opline->op2.jmp_addr - old_opcodes]; in zend_redo_pass_two()
1281 opline->op2.jmp_addr = &op_array->opcodes[opline->op2.jmp_addr - old_opcodes]; in zend_redo_pass_two_ex()
1285 opline->op2.jmp_addr = &op_array->opcodes[opline->op2.jmp_addr - old_opcodes]; in zend_redo_pass_two_ex()
[all …]
H A Ddfa_pass.c799 opline->op2.num = 0; in zend_dfa_optimize_jmps()
806 opline->op2.num = 0; in zend_dfa_optimize_jmps()
830 opline->op2.num = 0; in zend_dfa_optimize_jmps()
837 opline->op2.num = 0; in zend_dfa_optimize_jmps()
974 SET_UNUSED(opline->op2); in zend_dfa_optimize_jmps()
1213 opline->op2.num = 0; in zend_dfa_optimize_op_array()
1262 opline->op2.num = 0; in zend_dfa_optimize_op_array()
1631 opline->op1.var = opline->op2.var; in zend_dfa_optimize_op_array()
1633 opline->op2.var = 0; in zend_dfa_optimize_op_array()
1651 SET_UNUSED(opline->op2); in zend_dfa_optimize_op_array()
[all …]
H A Dzend_optimizer_internal.h32 #define ZEND_OP2_LITERAL(opline) (op_array)->literals[(opline)->op2.constant]
33 #define ZEND_OP2_JMP_ADDR(opline) OP_JMP_ADDR(opline, (opline)->op2)
44 #define SAME_VAR(op1, op2) (op1 ## _type == op2 ## _type && op1.var == op2.var) argument
86 zend_result zend_optimizer_eval_binary_op(zval *result, uint8_t opcode, zval *op1, zval *op2);
H A Dblock_pass.c198 znode_op op2 = opline->op2; in zend_optimize_block() local
203 VAR_SOURCE(op2) = NULL; in zend_optimize_block()
454 SET_UNUSED(opline->op2); in zend_optimize_block()
466 SET_UNUSED(opline->op2); in zend_optimize_block()
545 src->op2.num = tmp; in zend_optimize_block()
563 src->op2.num = tmp; in zend_optimize_block()
655 opline->op2.num = 0; in zend_optimize_block()
763 opline->op2.var = 0; in zend_optimize_block()
773 opline->op2.var = 0; in zend_optimize_block()
1092 opline->op2.num = map[opline->op2.num]; in assemble_code_blocks()
[all …]
H A Dpass1.c55 SET_UNUSED(opline->op2); in replace_by_const_or_qm_assign()
206 if (send1_opline->op2.num == 2) { in zend_optimizer_pass1()
248 opline->op2.constant = send2_opline->op1.constant; in zend_optimizer_pass1()
306 opline->op2.num = 0; in zend_optimizer_pass1()
314 opline->op2.num = 0; in zend_optimizer_pass1()
334 COPY_NODE(opline->op1, opline->op2); in zend_optimizer_pass1()
335 opline->op2.num = 0; in zend_optimizer_pass1()
H A Dzend_inference.h127 DEFINE_SSA_OP_HAS_RANGE(op2)
128 DEFINE_SSA_OP_MIN_RANGE(op2)
129 DEFINE_SSA_OP_MAX_RANGE(op2)
130 DEFINE_SSA_OP_RANGE_UNDERFLOW(op2)
131 DEFINE_SSA_OP_RANGE_OVERFLOW(op2)
192 DEFINE_SSA_OP_INFO(op2) in DEFINE_SSA_OP_INFO() argument
195 DEFINE_SSA_OP_DEF_INFO(op2) in DEFINE_SSA_OP_INFO()
H A Dpass3.c125 ZEND_SET_OP_JMP_ADDR(opline, opline->op2, target); in zend_optimizer_pass3()
156 ZEND_SET_OP_JMP_ADDR(opline, opline->op2, target); in zend_optimizer_pass3()
226 ZEND_SET_OP_JMP_ADDR(opline, opline->op2, target); in zend_optimizer_pass3()
232 opline->op2.num = 0; in zend_optimizer_pass3()
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()
/PHP-8.3/ext/ffi/
H A Dphp_ffi.h241 void zend_ffi_expr_bool_or(zend_ffi_val *val, zend_ffi_val *op2);
242 void zend_ffi_expr_bool_and(zend_ffi_val *val, zend_ffi_val *op2);
243 void zend_ffi_expr_bw_or(zend_ffi_val *val, zend_ffi_val *op2);
244 void zend_ffi_expr_bw_xor(zend_ffi_val *val, zend_ffi_val *op2);
245 void zend_ffi_expr_bw_and(zend_ffi_val *val, zend_ffi_val *op2);
248 void zend_ffi_expr_is_less(zend_ffi_val *val, zend_ffi_val *op2);
254 void zend_ffi_expr_add(zend_ffi_val *val, zend_ffi_val *op2);
255 void zend_ffi_expr_sub(zend_ffi_val *val, zend_ffi_val *op2);
256 void zend_ffi_expr_mul(zend_ffi_val *val, zend_ffi_val *op2);
257 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.c1855 ZVAL_DEREF(op2); in zend_ffi_cdata_do_operation()
1869 if (Z_TYPE_P(op2) == IS_OBJECT && Z_OBJCE_P(op2) == zend_ffi_cdata_ce) { in zend_ffi_cdata_do_operation()
7132 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
7148 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
7161 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
7176 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
7198 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
7213 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
7255 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
7271 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
[all …]
/PHP-8.3/Zend/tests/
H A Dbug37046.phpt14 echo "op2 $k\n";
21 op2 0
22 op2 1
/PHP-8.3/ext/zend_test/
H A Dobject_handlers.c46 static void donc_add(zval *result, zval *op1, zval *op2) in donc_add() argument
55 if (IS_DONC(op2)) { in donc_add()
56 val_2 = Z_LVAL_P(OBJ_PROP_NUM(Z_OBJ_P(op2), 0)); in donc_add()
58 val_2 = zval_get_long(op2); in donc_add()
63 static void donc_mul(zval *result, zval *op1, zval *op2) in donc_mul() argument
72 if (IS_DONC(op2)) { in donc_mul()
73 val_2 = Z_LVAL_P(OBJ_PROP_NUM(Z_OBJ_P(op2), 0)); in donc_mul()
75 val_2 = zval_get_long(op2); in donc_mul()
81 static zend_result donc_do_operation(zend_uchar opcode, zval *result, zval *op1, zval *op2) in donc_do_operation() argument
93 donc_add(result, op1, op2); in donc_do_operation()
[all …]
/PHP-8.3/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 );

Completed in 306 milliseconds

123