/PHP-8.1/Zend/ |
H A D | zend_operators.h | 483 : "r"(&op1->value) in fast_long_increment_function() 494 : "r"(&op1->value) in fast_long_increment_function() 507 : "r"(&op1->value) in fast_long_increment_function() 534 Z_LVAL_P(op1)++; in fast_long_increment_function() 546 : "r"(&op1->value) in fast_long_decrement_function() 557 : "r"(&op1->value) in fast_long_decrement_function() 570 : "r"(&op1->value) in fast_long_decrement_function() 597 Z_LVAL_P(op1)--; in fast_long_decrement_function() 613 "r"(&op1->value), in fast_long_add_function() 631 "r"(&op1->value), in fast_long_add_function() [all …]
|
H A D | zend_operators.c | 388 op1 = Z_REFVAL_P(op1); \ 1406 op1 = Z_REFVAL_P(op1); in boolean_xor_function() 1453 op1 = Z_REFVAL_P(op1); in boolean_not_function() 1507 op1 = Z_REFVAL_P(op1); in bitwise_not_function() 1851 op1 = Z_REFVAL_P(op1); in concat_function() 2169 op1 = Z_REFVAL_P(op1); in zend_compare() 2447 Z_DVAL_P(op1) = Z_DVAL_P(op1) + 1; in increment_function() 2483 op1 = Z_REFVAL_P(op1); in increment_function() 2489 if (Z_OBJ_HANDLER_P(op1, do_operation)(ZEND_ADD, op1, op1, &op2) == SUCCESS) { in increment_function() 2515 Z_DVAL_P(op1) = Z_DVAL_P(op1) - 1; in decrement_function() [all …]
|
H A D | zend_vm_gen.php | 619 if (($op1 == 'TMP' || $op1 == 'VAR') && 621 $op1 = "TMPVAR"; 622 } else if (($op1 == 'TMP' || $op1 == 'VAR') && 629 $op1 = "ANY"; 665 if (($op1 == 'TMP' || $op1 == 'VAR') && 667 $op1 = "TMPVAR"; 668 } else if (($op1 == 'TMP' || $op1 == 'VAR') && 675 $op1 = "ANY"; 990 return (($op1 === 'UNUSED') || ($op1 === 'CV')) && ($op2 === 'CONST'); 1073 $op1 = "ANY"; [all …]
|
H A D | zend_vm_execute.h | 2639 op1 = Z_REFVAL_P(op1); in ZEND_ADD_ARRAY_UNPACK_SPEC_HANDLER() 7697 op1 = Z_REFVAL_P(op1); in ZEND_IN_ARRAY_SPEC_CONST_CONST_HANDLER() 7725 op1 = Z_REFVAL_P(op1); in ZEND_IN_ARRAY_SPEC_CONST_CONST_HANDLER() 10611 op1 = Z_REFVAL_P(op1); in ZEND_COUNT_SPEC_CONST_UNUSED_HANDLER() 10649 op1 = Z_REFVAL_P(op1); in ZEND_GET_CLASS_SPEC_CONST_UNUSED_HANDLER() 17856 op1 = Z_REFVAL_P(op1); in ZEND_COUNT_SPEC_TMPVAR_UNUSED_HANDLER() 17894 op1 = Z_REFVAL_P(op1); in ZEND_GET_CLASS_SPEC_TMPVAR_UNUSED_HANDLER() 19920 op1 = Z_REFVAL_P(op1); in ZEND_IN_ARRAY_SPEC_TMP_CONST_HANDLER() 19948 op1 = Z_REFVAL_P(op1); in ZEND_IN_ARRAY_SPEC_TMP_CONST_HANDLER() 25045 op1 = Z_REFVAL_P(op1); in ZEND_IN_ARRAY_SPEC_VAR_CONST_HANDLER() [all …]
|
H A D | zend_vm_def.h | 947 zval *op1; variable 6045 zval *op1; variable 6150 op1 = Z_REFVAL_P(op1); 8869 zval *op1 = EX_VAR(opline->op1.var); variable 8882 zval *op1 = EX_VAR(opline->op1.var); variable 8899 op1 = Z_INDIRECT_P(op1); 9028 zval *op1; variable 9048 op1 = Z_REFVAL_P(op1); 9076 op1 = Z_REFVAL_P(op1); 9136 op1 = Z_REFVAL_P(op1); [all …]
|
H A D | zend_ini_parser.y | 64 static void zend_ini_do_op(char type, zval *result, zval *op1, zval *op2) in zend_ini_do_op() argument 71 i_op1 = get_int_val(op1); in zend_ini_do_op() 112 static void zend_ini_add_string(zval *result, zval *op1, zval *op2) in zend_ini_add_string() argument 116 if (Z_TYPE_P(op1) != IS_STRING) { in zend_ini_add_string() 120 zend_string *str = zval_get_tmp_string(op1, &tmp_str); in zend_ini_add_string() 121 ZVAL_PSTRINGL(op1, ZSTR_VAL(str), ZSTR_LEN(str)); in zend_ini_add_string() 124 ZVAL_STR(op1, zval_get_string_func(op1)); in zend_ini_add_string() 127 op1_len = (int)Z_STRLEN_P(op1); in zend_ini_add_string() 134 ZVAL_NEW_STR(result, zend_string_extend(Z_STR_P(op1), length, ZEND_SYSTEM_INI)); in zend_ini_add_string()
|
H A D | zend_ast.c | 489 zval op1, op2; in zend_ast_evaluate() local 527 ret = op(result, &op1); in zend_ast_evaluate() 580 if (zend_is_true(&op1)) { in zend_ast_evaluate() 591 zval_ptr_dtor_nogc(&op1); in zend_ast_evaluate() 598 if (zend_is_true(&op1)) { in zend_ast_evaluate() 609 zval_ptr_dtor_nogc(&op1); in zend_ast_evaluate() 618 *result = op1; in zend_ast_evaluate() 642 *result = op1; in zend_ast_evaluate() 656 ZVAL_LONG(&op1, 0); in zend_ast_evaluate() 665 ZVAL_LONG(&op1, -1); in zend_ast_evaluate() [all …]
|
H A D | zend_object_handlers.h | 157 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 268 if (Z_TYPE_P(op1) != 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 D | pass3.c | 171 SAME_VAR(opline->op1, target->op1)) { in zend_optimizer_pass3() 177 SAME_VAR(opline->op1, target->op1)) { in zend_optimizer_pass3() 182 SAME_VAR(opline->op1, target->op1)) { in zend_optimizer_pass3() 222 SAME_VAR(target->op1, opline->op1))) { in zend_optimizer_pass3() 230 SAME_VAR(target->op1, opline->op1))) { in zend_optimizer_pass3() 237 SAME_VAR(target->op1, opline->op1))) { in zend_optimizer_pass3() 298 SAME_VAR(target->op1, opline->op1)) { in zend_optimizer_pass3() 303 SAME_VAR(target->op1, opline->op1)) { in zend_optimizer_pass3() 322 SAME_VAR(target->op1, opline->op1)) { in zend_optimizer_pass3() 327 SAME_VAR(target->op1, opline->op1)) { in zend_optimizer_pass3() [all …]
|
H A D | sccp.c | 447 if (Z_TYPE_P(op1) == IS_ARRAY || IS_PARTIAL_ARRAY(op1)) { in ct_eval_fetch_dim() 470 ZVAL_BOOL(result, op1 && Z_TYPE_P(op1) != IS_NULL); in ct_eval_isset_isempty() 484 if (Z_TYPE_P(op1) == IS_ARRAY || IS_PARTIAL_ARRAY(op1)) { in ct_eval_isset_dim() 791 if (Z_TYPE_P(op1) != IS_STRING && Z_TYPE_P(op1) != IS_LONG && Z_TYPE_P(op1) != IS_NULL) { in ct_eval_array_key_exists() 1234 if (op1) { in sccp_visit_instr() 1263 if ((op1 && IS_BOT(op1)) in sccp_visit_instr() 1366 if ((op1 && IS_BOT(op1)) || (op2 && IS_BOT(op2))) { in sccp_visit_instr() 1412 if (op1) { in sccp_visit_instr() 1470 if (op1 && IS_PARTIAL_OBJECT(op1) in sccp_visit_instr() 1518 if (op1) { in sccp_visit_instr() [all …]
|
H A D | block_pass.c | 159 znode_op op1 = opline->op1; in zend_optimize_block() local 162 COPY_NODE(opline->op1, src->op1); in zend_optimize_block() 224 COPY_NODE(opline->op1, src->op1); in zend_optimize_block() 479 COPY_NODE(opline->op1, src->op1); in zend_optimize_block() 487 COPY_NODE(opline->op1, src->op1); in zend_optimize_block() 617 COPY_NODE(opline->op1, src->op1); in zend_optimize_block() 626 COPY_NODE(opline->op1, src->op1); in zend_optimize_block() 663 COPY_NODE(opline->op1, src->op1); in zend_optimize_block() 746 COPY_NODE(opline->op1, src->op1); in zend_optimize_block() 775 COPY_NODE(opline->op1, src->op1); in zend_optimize_block() [all …]
|
H A D | zend_optimizer_internal.h | 28 #define ZEND_OP1_LITERAL(opline) (op_array)->literals[(opline)->op1.constant] 29 #define ZEND_OP1_JMP_ADDR(opline) OP_JMP_ADDR(opline, (opline)->op1) 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); 84 int zend_optimizer_eval_unary_op(zval *result, zend_uchar opcode, zval *op1); 85 int zend_optimizer_eval_cast(zval *result, uint32_t type, zval *op1); 86 int zend_optimizer_eval_strlen(zval *result, zval *op1);
|
H A D | compact_literals.c | 88 uint32_t op1, in add_static_slot() argument 94 zval *class_name = &op_array->literals[op1]; in add_static_slot() 521 opline->op1.constant = map[opline->op1.constant]; in zend_optimizer_compact_literals() 553 opline->op1.constant, in zend_optimizer_compact_literals() 660 opline->op1.constant, in zend_optimizer_compact_literals() 670 if (class_slot[opline->op1.constant] >= 0) { in zend_optimizer_compact_literals() 681 if (const_slot[opline->op1.constant] >= 0) { in zend_optimizer_compact_literals() 703 opline->op1.constant, in zend_optimizer_compact_literals() 731 opline->op1.constant, in zend_optimizer_compact_literals() 765 if (class_slot[opline->op1.constant] >= 0) { in zend_optimizer_compact_literals() [all …]
|
H A D | zend_optimizer.c | 67 return binary_op(result, op1, op2); in zend_optimizer_eval_binary_op() 79 return unary_op(result, op1); in zend_optimizer_eval_unary_op() 105 if (Z_TYPE_P(op1) != IS_ARRAY && Z_TYPE_P(op1) != IS_DOUBLE) { in zend_optimizer_eval_cast() 111 ZVAL_COPY(result, op1); in zend_optimizer_eval_cast() 121 if (Z_TYPE_P(op1) != IS_STRING) { in zend_optimizer_eval_strlen() 124 ZVAL_LONG(result, Z_STRLEN_P(op1)); in zend_optimizer_eval_strlen() 542 opline->op1.var == var) { in zend_optimizer_replace_by_const() 752 zval *op1 = CRT_CONSTANT(opline->op1); in get_class_entry_from_op1() local 753 if (Z_TYPE_P(op1) == IS_STRING) { in get_class_entry_from_op1() 1079 opline->op1.jmp_addr = &op_array->opcodes[opline->op1.jmp_addr - old_opcodes]; in zend_redo_pass_two() [all …]
|
H A D | dfa_pass.c | 376 && opline->op1.var == cv_var in opline_supports_assign_contraction() 500 call_info->caller_call_opline->op1.num = send_needly->op1.num; in zend_dfa_optimize_calls() 897 opline->op1.num = opline->op2.num; in zend_dfa_optimize_jmps() 1033 SET_UNUSED(opline->op1); in zend_dfa_optimize_jmps() 1115 op_array->opcodes[use].op1.var = cv; in zend_dfa_try_to_replace_result() 1272 opline->op1.var = opline->op2.var; in zend_dfa_optimize_op_array() 1294 opline->op1.var = opline->op2.var; in zend_dfa_optimize_op_array() 1339 opline->op2.var = opline->op1.var; in zend_dfa_optimize_op_array() 1559 src_var, opline->op1.var) in zend_dfa_optimize_op_array() 1670 opline->op1.var = opline->op2.var; in zend_dfa_optimize_op_array() [all …]
|
H A D | zend_dfg.c | 28 var_num = EX_VAR_TO_NUM(opline->op1.var); in _zend_dfg_add_use_def_op() 58 zend_bitset_incl(def, EX_VAR_TO_NUM(opline->op1.var)); in _zend_dfg_add_use_def_op() 73 var_num = EX_VAR_TO_NUM(next->op1.var); in _zend_dfg_add_use_def_op() 88 var_num = EX_VAR_TO_NUM(next->op1.var); in _zend_dfg_add_use_def_op() 103 var_num = EX_VAR_TO_NUM(next->op1.var); in _zend_dfg_add_use_def_op() 115 var_num = EX_VAR_TO_NUM(next->op1.var); in _zend_dfg_add_use_def_op() 127 var_num = EX_VAR_TO_NUM(next->op1.var); in _zend_dfg_add_use_def_op() 137 var_num = EX_VAR_TO_NUM(next->op1.var); in _zend_dfg_add_use_def_op()
|
H A D | zend_ssa.c | 199 return EX_VAR_TO_NUM(op->op1.var); in find_adjusted_tmp_var() 204 return EX_VAR_TO_NUM(op->op1.var); in find_adjusted_tmp_var() 212 return EX_VAR_TO_NUM(op->op1.var); in find_adjusted_tmp_var() 215 zv = CRT_CONSTANT_EX(op_array, op, op->op1); in find_adjusted_tmp_var() 227 return EX_VAR_TO_NUM(op->op1.var); in find_adjusted_tmp_var() 270 int var = EX_VAR_TO_NUM(opline->op1.var); in place_essa_pis() 278 int var = EX_VAR_TO_NUM(opline->op1.var); in place_essa_pis() 308 var1 = EX_VAR_TO_NUM((opline-1)->op1.var); in place_essa_pis() 442 int var = EX_VAR_TO_NUM((opline-1)->op1.var); in place_essa_pis() 464 int var = EX_VAR_TO_NUM((opline-1)->op1.var); in place_essa_pis() [all …]
|
H A D | pass1.c | 218 ctx->script, Z_STR(op_array->literals[opline->op1.constant + 1])); in zend_optimizer_pass1() 225 (opline->op1.num & ZEND_FETCH_CLASS_MASK) == ZEND_FETCH_CLASS_SELF) { in zend_optimizer_pass1() 232 ((opline - 1)->op1.num & ZEND_FETCH_CLASS_MASK) == ZEND_FETCH_CLASS_SELF) && in zend_optimizer_pass1() 233 (opline - 1)->result.var == opline->op1.var) { in zend_optimizer_pass1() 334 opline->op1.constant = send1_opline->op1.constant; in zend_optimizer_pass1() 335 opline->op2.constant = send2_opline->op1.constant; in zend_optimizer_pass1() 540 (opline + 1)->op1.var == opline->result.var && in zend_optimizer_pass1() 555 (opline + 1)->op1 = (opline + 1)->op2; in zend_optimizer_pass1() 606 COPY_NODE(opline->op1, opline->op2); in zend_optimizer_pass1() 626 ZEND_SET_OP_JMP_ADDR(opline, opline->op1, target_opline); in zend_optimizer_pass1()
|
H A D | compact_vars.c | 39 zend_bitset_incl(used_vars, VAR_NUM(opline->op1.var)); in zend_optimizer_compact_vars() 87 opline->op1.var = NUM_VAR(vars_map[VAR_NUM(opline->op1.var)]); in zend_optimizer_compact_vars()
|
H A D | zend_inference.h | 133 DEFINE_SSA_OP_HAS_RANGE(op1) 134 DEFINE_SSA_OP_MIN_RANGE(op1) in DEFINE_SSA_OP_MIN_RANGE() argument 135 DEFINE_SSA_OP_MAX_RANGE(op1) in DEFINE_SSA_OP_MIN_RANGE() 136 DEFINE_SSA_OP_RANGE_UNDERFLOW(op1) in DEFINE_SSA_OP_MIN_RANGE() 137 DEFINE_SSA_OP_RANGE_OVERFLOW(op1) in DEFINE_SSA_OP_MIN_RANGE() 220 DEFINE_SSA_OP_INFO(op1) 223 DEFINE_SSA_OP_DEF_INFO(op1) in DEFINE_SSA_OP_INFO()
|
/PHP-8.1/Zend/tests/ |
H A D | bug37046.phpt | 11 echo "op1 $k\n"; 20 op1 0 23 op1 1
|
/PHP-8.1/ext/intl/collator/ |
H A D | collator_sort.c | 51 static int collator_regular_compare_function(zval *result, zval *op1, zval *op2) in collator_regular_compare_function() argument 62 str1_p = collator_convert_object_to_string( op1, &str1 ); in collator_regular_compare_function() 136 static int collator_numeric_compare_function(zval *result, zval *op1, zval *op2) in collator_numeric_compare_function() argument 142 if( Z_TYPE_P(op1) == IS_STRING ) in collator_numeric_compare_function() 144 num1_p = collator_convert_string_to_double( op1, &num1 ); in collator_numeric_compare_function() 145 op1 = num1_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 171 zend_string *str1 = collator_zval_to_string(op1); in collator_icu_compare_function()
|
H A D | collator_sort.h | 21 typedef int (*collator_compare_func_t)( zval *result, zval *op1, zval *op2 );
|
/PHP-8.1/ext/standard/ |
H A D | php_string.h | 62 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);
|
/PHP-8.1/ext/opcache/tests/opt/ |
H A D | inference_008.phpt | 2 Type inference 008: ASSIGN_DIM with invalid op1
|