Lines Matching refs:op2
51 zval *op1, *op2, *result; variable
55 op2 = GET_OP2_ZVAL_PTR_UNDEF(BP_VAR_R);
59 if (EXPECTED(Z_TYPE_INFO_P(op2) == IS_LONG)) {
61 fast_long_add_function(result, op1, op2);
63 } else if (EXPECTED(Z_TYPE_INFO_P(op2) == IS_DOUBLE)) {
65 d2 = Z_DVAL_P(op2);
69 if (EXPECTED(Z_TYPE_INFO_P(op2) == IS_DOUBLE)) {
71 d2 = Z_DVAL_P(op2);
76 } else if (EXPECTED(Z_TYPE_INFO_P(op2) == IS_LONG)) {
78 d2 = (double)Z_LVAL_P(op2);
83 ZEND_VM_DISPATCH_TO_HELPER(zend_add_helper, op_1, op1, op_2, op2);
111 zval *op1, *op2, *result; variable
115 op2 = GET_OP2_ZVAL_PTR_UNDEF(BP_VAR_R);
119 if (EXPECTED(Z_TYPE_INFO_P(op2) == IS_LONG)) {
121 fast_long_sub_function(result, op1, op2);
123 } else if (EXPECTED(Z_TYPE_INFO_P(op2) == IS_DOUBLE)) {
125 d2 = Z_DVAL_P(op2);
129 if (EXPECTED(Z_TYPE_INFO_P(op2) == IS_DOUBLE)) {
131 d2 = Z_DVAL_P(op2);
136 } else if (EXPECTED(Z_TYPE_INFO_P(op2) == IS_LONG)) {
138 d2 = (double)Z_LVAL_P(op2);
143 ZEND_VM_DISPATCH_TO_HELPER(zend_sub_helper, op_1, op1, op_2, op2);
171 zval *op1, *op2, *result; variable
175 op2 = GET_OP2_ZVAL_PTR_UNDEF(BP_VAR_R);
179 if (EXPECTED(Z_TYPE_INFO_P(op2) == IS_LONG)) {
183 …ZEND_SIGNED_MULTIPLY_LONG(Z_LVAL_P(op1), Z_LVAL_P(op2), Z_LVAL_P(result), Z_DVAL_P(result), overfl…
186 } else if (EXPECTED(Z_TYPE_INFO_P(op2) == IS_DOUBLE)) {
188 d2 = Z_DVAL_P(op2);
192 if (EXPECTED(Z_TYPE_INFO_P(op2) == IS_DOUBLE)) {
194 d2 = Z_DVAL_P(op2);
199 } else if (EXPECTED(Z_TYPE_INFO_P(op2) == IS_LONG)) {
201 d2 = (double)Z_LVAL_P(op2);
206 ZEND_VM_DISPATCH_TO_HELPER(zend_mul_helper, op_1, op1, op_2, op2);
213 zval *op1, *op2; variable
217 op2 = GET_OP2_ZVAL_PTR(BP_VAR_R);
218 fast_div_function(EX_VAR(opline->result.var), op1, op2);
259 zval *op1, *op2, *result; variable
262 op2 = GET_OP2_ZVAL_PTR_UNDEF(BP_VAR_R);
266 if (EXPECTED(Z_TYPE_INFO_P(op2) == IS_LONG)) {
268 if (UNEXPECTED(Z_LVAL_P(op2) == 0)) {
270 } else if (UNEXPECTED(Z_LVAL_P(op2) == -1)) {
274 ZVAL_LONG(result, Z_LVAL_P(op1) % Z_LVAL_P(op2));
280 ZEND_VM_DISPATCH_TO_HELPER(zend_mod_helper, op_1, op1, op_2, op2);
308 zval *op1, *op2; variable
311 op2 = GET_OP2_ZVAL_PTR_UNDEF(BP_VAR_R);
315 && EXPECTED(Z_TYPE_INFO_P(op2) == IS_LONG)
316 && EXPECTED((zend_ulong)Z_LVAL_P(op2) < SIZEOF_ZEND_LONG * 8)) {
319 (zend_long) ((zend_ulong) Z_LVAL_P(op1) << Z_LVAL_P(op2)));
323 ZEND_VM_DISPATCH_TO_HELPER(zend_shift_left_helper, op_1, op1, op_2, op2);
351 zval *op1, *op2; variable
354 op2 = GET_OP2_ZVAL_PTR_UNDEF(BP_VAR_R);
358 && EXPECTED(Z_TYPE_INFO_P(op2) == IS_LONG)
359 && EXPECTED((zend_ulong)Z_LVAL_P(op2) < SIZEOF_ZEND_LONG * 8)) {
360 ZVAL_LONG(EX_VAR(opline->result.var), Z_LVAL_P(op1) >> Z_LVAL_P(op2));
364 ZEND_VM_DISPATCH_TO_HELPER(zend_shift_right_helper, op_1, op1, op_2, op2);
371 zval *op1, *op2; variable
375 op2 = GET_OP2_ZVAL_PTR(BP_VAR_R);
376 pow_function(EX_VAR(opline->result.var), op1, op2);
386 zval *op1, *op2; variable
389 op2 = GET_OP2_ZVAL_PTR_UNDEF(BP_VAR_R);
392 (OP2_TYPE == IS_CONST || EXPECTED(Z_TYPE_P(op2) == IS_STRING))) {
394 zend_string *op2_str = Z_STR_P(op2);
447 if (OP2_TYPE == IS_CV && UNEXPECTED(Z_TYPE_P(op2) == IS_UNDEF)) {
448 op2 = ZVAL_UNDEFINED_OP2();
450 concat_function(EX_VAR(opline->result.var), op1, op2);
461 zval *op1, *op2; variable
466 op2 = GET_OP2_ZVAL_PTR_DEREF(BP_VAR_R);
467 result = fast_is_identical_function(op1, op2);
479 zval *op1, *op2; variable
484 op2 = GET_OP2_ZVAL_PTR_DEREF(BP_VAR_R);
485 result = fast_is_not_identical_function(op1, op2);
529 zval *op1, *op2; variable
533 op2 = GET_OP2_ZVAL_PTR_UNDEF(BP_VAR_R);
537 if (EXPECTED(Z_TYPE_P(op2) == IS_LONG)) {
538 if (EXPECTED(Z_LVAL_P(op1) == Z_LVAL_P(op2))) {
549 } else if (EXPECTED(Z_TYPE_P(op2) == IS_DOUBLE)) {
551 d2 = Z_DVAL_P(op2);
555 if (EXPECTED(Z_TYPE_P(op2) == IS_DOUBLE)) {
557 d2 = Z_DVAL_P(op2);
564 } else if (EXPECTED(Z_TYPE_P(op2) == IS_LONG)) {
566 d2 = (double)Z_LVAL_P(op2);
570 if (EXPECTED(Z_TYPE_P(op2) == IS_STRING)) {
571 int result = zend_fast_equal_strings(Z_STR_P(op1), Z_STR_P(op2));
576 zval_ptr_dtor_str(op2);
585 ZEND_VM_DISPATCH_TO_HELPER(zend_is_equal_helper, op_1, op1, op_2, op2);
624 zval *op1, *op2; variable
628 op2 = GET_OP2_ZVAL_PTR_UNDEF(BP_VAR_R);
632 if (EXPECTED(Z_TYPE_P(op2) == IS_LONG)) {
633 if (EXPECTED(Z_LVAL_P(op1) != Z_LVAL_P(op2))) {
644 } else if (EXPECTED(Z_TYPE_P(op2) == IS_DOUBLE)) {
646 d2 = Z_DVAL_P(op2);
650 if (EXPECTED(Z_TYPE_P(op2) == IS_DOUBLE)) {
652 d2 = Z_DVAL_P(op2);
659 } else if (EXPECTED(Z_TYPE_P(op2) == IS_LONG)) {
661 d2 = (double)Z_LVAL_P(op2);
665 if (EXPECTED(Z_TYPE_P(op2) == IS_STRING)) {
666 int result = zend_fast_equal_strings(Z_STR_P(op1), Z_STR_P(op2));
671 zval_ptr_dtor_str(op2);
680 ZEND_VM_DISPATCH_TO_HELPER(zend_is_not_equal_helper, op_1, op1, op_2, op2);
719 zval *op1, *op2; variable
723 op2 = GET_OP2_ZVAL_PTR_UNDEF(BP_VAR_R);
727 if (EXPECTED(Z_TYPE_INFO_P(op2) == IS_LONG)) {
728 if (EXPECTED(Z_LVAL_P(op1) < Z_LVAL_P(op2))) {
739 } else if (EXPECTED(Z_TYPE_INFO_P(op2) == IS_DOUBLE)) {
741 d2 = Z_DVAL_P(op2);
745 if (EXPECTED(Z_TYPE_INFO_P(op2) == IS_DOUBLE)) {
747 d2 = Z_DVAL_P(op2);
754 } else if (EXPECTED(Z_TYPE_INFO_P(op2) == IS_LONG)) {
756 d2 = (double)Z_LVAL_P(op2);
760 ZEND_VM_DISPATCH_TO_HELPER(zend_is_smaller_helper, op_1, op1, op_2, op2);
799 zval *op1, *op2; variable
803 op2 = GET_OP2_ZVAL_PTR_UNDEF(BP_VAR_R);
807 if (EXPECTED(Z_TYPE_INFO_P(op2) == IS_LONG)) {
808 if (EXPECTED(Z_LVAL_P(op1) <= Z_LVAL_P(op2))) {
819 } else if (EXPECTED(Z_TYPE_INFO_P(op2) == IS_DOUBLE)) {
821 d2 = Z_DVAL_P(op2);
825 if (EXPECTED(Z_TYPE_INFO_P(op2) == IS_DOUBLE)) {
827 d2 = Z_DVAL_P(op2);
834 } else if (EXPECTED(Z_TYPE_INFO_P(op2) == IS_LONG)) {
836 d2 = (double)Z_LVAL_P(op2);
840 ZEND_VM_DISPATCH_TO_HELPER(zend_is_smaller_or_equal_helper, op_1, op1, op_2, op2);
847 zval *op1, *op2; variable
851 op2 = GET_OP2_ZVAL_PTR(BP_VAR_R);
852 compare_function(EX_VAR(opline->result.var), op1, op2);
883 zval *op1, *op2; variable
886 op2 = GET_OP2_ZVAL_PTR_UNDEF(BP_VAR_R);
890 && EXPECTED(Z_TYPE_INFO_P(op2) == IS_LONG)) {
891 ZVAL_LONG(EX_VAR(opline->result.var), Z_LVAL_P(op1) | Z_LVAL_P(op2));
895 ZEND_VM_DISPATCH_TO_HELPER(zend_bw_or_helper, op_1, op1, op_2, op2);
923 zval *op1, *op2; variable
926 op2 = GET_OP2_ZVAL_PTR_UNDEF(BP_VAR_R);
930 && EXPECTED(Z_TYPE_INFO_P(op2) == IS_LONG)) {
931 ZVAL_LONG(EX_VAR(opline->result.var), Z_LVAL_P(op1) & Z_LVAL_P(op2));
935 ZEND_VM_DISPATCH_TO_HELPER(zend_bw_and_helper, op_1, op1, op_2, op2);
963 zval *op1, *op2; variable
966 op2 = GET_OP2_ZVAL_PTR_UNDEF(BP_VAR_R);
970 && EXPECTED(Z_TYPE_INFO_P(op2) == IS_LONG)) {
971 ZVAL_LONG(EX_VAR(opline->result.var), Z_LVAL_P(op1) ^ Z_LVAL_P(op2));
975 ZEND_VM_DISPATCH_TO_HELPER(zend_bw_xor_helper, op_1, op1, op_2, op2);
982 zval *op1, *op2; variable
986 op2 = GET_OP2_ZVAL_PTR(BP_VAR_R);
987 boolean_xor_function(EX_VAR(opline->result.var), op1, op2);
1061 function_name = RT_CONSTANT(opline, opline->op2); in ZEND_VM_COLD_HELPER()
3003 ZEND_VM_JMP_EX(OP_JMP_ADDR(opline, opline->op2), 0);
3010 opline = OP_JMP_ADDR(opline, opline->op2);
3025 ZEND_VM_JMP_EX(OP_JMP_ADDR(opline, opline->op2), 0);
3039 opline = OP_JMP_ADDR(opline, opline->op2);
3066 ZEND_VM_JMP_EX(OP_JMP_ADDR(opline, opline->op2), 0);
3073 opline = OP_JMP_ADDR(opline, opline->op2);
3100 ZEND_VM_JMP_EX(OP_JMP_ADDR(opline, opline->op2), 0);
3111 opline = OP_JMP_ADDR(opline, opline->op2);
3127 ZEND_VM_JMP_EX(OP_JMP_ADDR(opline, opline->op2), 0);
3144 opline = OP_JMP_ADDR(opline, opline->op2);
3179 zval *op1, *op2; variable
3184 op2 = GET_OP2_ZVAL_PTR_UNDEF(BP_VAR_R);
3186 (OP2_TYPE == IS_CONST || EXPECTED(Z_TYPE_P(op2) == IS_STRING))) {
3188 zend_string *op2_str = Z_STR_P(op2);
3246 op2_str = Z_STR_P(op2);
3247 } else if (EXPECTED(Z_TYPE_P(op2) == IS_STRING)) {
3248 op2_str = zend_string_copy(Z_STR_P(op2));
3250 if (OP2_TYPE == IS_CV && UNEXPECTED(Z_TYPE_P(op2) == IS_UNDEF)) {
3253 op2_str = zval_get_string_func(op2);
3259 if (UNEXPECTED(Z_REFCOUNTED_P(op2))) {
3558 … Z_STR_P(function_name), ((OP2_TYPE == IS_CONST) ? (RT_CONSTANT(opline, opline->op2) + 1) : NULL));
3687 … Z_STR_P(function_name), ((OP2_TYPE == IS_CONST) ? (RT_CONSTANT(opline, opline->op2) + 1) : NULL));
3765 function_name = (zval*)RT_CONSTANT(opline, opline->op2);
3924 func_name = (zval *)RT_CONSTANT(opline, opline->op2);
3957 fname = (zval*)RT_CONSTANT(opline, opline->op2);
4248 zend_verify_missing_return_type(EX(func), CACHE_ADDR(opline->op2.num));
4286 zend_verify_return_type(EX(func), retval_ptr, CACHE_ADDR(opline->op2.num));
4597 ZEND_VM_JMP_EX(OP_JMP_ADDR(opline, opline->op2), 0);
4619 ZEND_VM_JMP_EX(OP_JMP_ADDR(opline, opline->op2), 0);
4658 uint32_t arg_num = opline->op2.num; in ZEND_VM_COLD_HELPER()
4673 uint32_t arg_num = opline->op2.num;
4757 uint32_t arg_num = opline->op2.num;
4825 uint32_t arg_num = opline->op2.num;
4871 uint32_t arg_num = opline->op2.num;
5106 zval *op2 = GET_OP2_ZVAL_PTR(BP_VAR_R);
5109 zend_long len = zval_get_long(op2);
5202 if (UNEXPECTED(ARG_MUST_BE_SENT_BY_REF(EX(call)->func, opline->op2.num))) {
5203 zend_param_must_be_ref(EX(call)->func, opline->op2.num);
5226 …if (UNEXPECTED(!zend_verify_recv_arg_type(EX(func), arg_num, param, NULL, CACHE_ADDR(opline->op2.n…
5245 zval *default_value = RT_CONSTANT(opline, opline->op2);
5272 zval *default_value = RT_CONSTANT(opline, opline->op2);
5306 zend_verify_variadic_arg_type(EX(func), arg_num, param, NULL, CACHE_ADDR(opline->op2.num)); in ZEND_HASH_FILL_PACKED()
5386 zval *op1, *op2; variable
5390 op2 = GET_OP2_ZVAL_PTR_UNDEF(BP_VAR_R);
5392 if (EXPECTED(Z_TYPE_P(op2) == IS_LONG)) {
5393 if (EXPECTED(Z_LVAL_P(op1) == Z_LVAL_P(op2))) {
5404 } else if (EXPECTED(Z_TYPE_P(op2) == IS_DOUBLE)) {
5406 d2 = Z_DVAL_P(op2);
5410 if (EXPECTED(Z_TYPE_P(op2) == IS_DOUBLE)) {
5412 d2 = Z_DVAL_P(op2);
5419 } else if (EXPECTED(Z_TYPE_P(op2) == IS_LONG)) {
5421 d2 = (double)Z_LVAL_P(op2);
5425 if (EXPECTED(Z_TYPE_P(op2) == IS_STRING)) {
5426 int result = zend_fast_equal_strings(Z_STR_P(op1), Z_STR_P(op2));
5435 ZEND_VM_DISPATCH_TO_HELPER(zend_case_helper, op_1, op1, op_2, op2);
5448 ce = CACHED_PTR(opline->op2.num);
5456 CACHE_PTR(opline->op2.num, ce);
5588 …zend_quick_get_constant(RT_CONSTANT(opline, opline->op2) + 1, opline->op1.num OPLINE_CC EXECUTE_DA…
5633 zv = zend_hash_find_ex(&ce->constants_table, Z_STR_P(RT_CONSTANT(opline, opline->op2)), 1);
5638 …tring(Z_ACCESS_FLAGS(c->value)), ZSTR_VAL(ce->name), Z_STRVAL_P(RT_CONSTANT(opline, opline->op2)));
5652 …d_throw_error(NULL, "Undefined class constant '%s'", Z_STRVAL_P(RT_CONSTANT(opline, opline->op2)));
6124 …ch_class_by_name(Z_STR_P(RT_CONSTANT(opline, opline->op2)), Z_STR_P(RT_CONSTANT(opline, opline->op…
6133 ce = zend_fetch_class(NULL, opline->op2.num);
6140 ce = Z_CE_P(EX_VAR(opline->op2.var));
6330 ZEND_VM_JMP(OP_JMP_ADDR(opline, opline->op2));
6343 ZEND_VM_JMP_EX(OP_JMP_ADDR(opline, opline->op2), 0);
6353 ZEND_VM_JMP(OP_JMP_ADDR(opline, opline->op2));
6424 ZEND_VM_JMP(OP_JMP_ADDR(opline, opline->op2));
6441 ZEND_VM_JMP_EX(OP_JMP_ADDR(opline, opline->op2), 0);
6455 ZEND_VM_JMP(OP_JMP_ADDR(opline, opline->op2));
6598 zval *variable_ptr = EX_VAR(opline->op2.var);
6601 zval *res = EX_VAR(opline->op2.var);
6775 zval *variable_ptr = EX_VAR(opline->op2.var);
6786 ZVAL_REF(EX_VAR(opline->op2.var), Z_REF_P(value));
7171 ZEND_VM_JMP_EX(OP_JMP_ADDR(opline, opline->op2), 0);
7211 ZEND_VM_JMP_EX(OP_JMP_ADDR(opline, opline->op2), 0);
7298 …T(opline, opline->op1), (OP2_TYPE == IS_CONST) ? Z_STR_P(RT_CONSTANT(opline, opline->op2)) : NULL);
7319 if (zend_do_link_class(ce, Z_STR_P(RT_CONSTANT(opline, opline->op2))) == FAILURE) {
7360 …if (zend_do_link_class(ce, (OP2_TYPE == IS_CONST) ? Z_STR_P(RT_CONSTANT(opline, opline->op2)) : NU…
7411 …ch_class_by_name(Z_STR_P(RT_CONSTANT(opline, opline->op2)), Z_STR_P(RT_CONSTANT(opline, opline->op…
7417 ce = zend_fetch_class(NULL, opline->op2.num);
7425 ce = Z_CE_P(EX_VAR(opline->op2.var));
7487 zval *return_value = EX_VAR(EX(func)->op_array.opcodes[Z_OPLINE_NUM_P(fast_call)].op2.var); in ZEND_VM_HELPER()
7956 zval *return_value = EX_VAR(EX(func)->op_array.opcodes[Z_OPLINE_NUM_P(fast_call)].op2.var);
7997 current_try_catch_offset = opline->op2.num;
8209 zend_op *target = OP_JMP_ADDR(opline, opline->op2);
8615 HashTable *ht = Z_ARRVAL_P(RT_CONSTANT(opline, opline->op2));
8889 zval *op1, *op2, *result; variable
8892 op2 = GET_OP2_ZVAL_PTR_UNDEF(BP_VAR_R);
8894 ZVAL_LONG(result, Z_LVAL_P(op1) + Z_LVAL_P(op2));
8901 zval *op1, *op2, *result; variable
8904 op2 = GET_OP2_ZVAL_PTR_UNDEF(BP_VAR_R);
8906 fast_long_add_function(result, op1, op2);
8913 zval *op1, *op2, *result; variable
8916 op2 = GET_OP2_ZVAL_PTR_UNDEF(BP_VAR_R);
8918 ZVAL_DOUBLE(result, Z_DVAL_P(op1) + Z_DVAL_P(op2));
8925 zval *op1, *op2, *result; variable
8928 op2 = GET_OP2_ZVAL_PTR_UNDEF(BP_VAR_R);
8930 ZVAL_LONG(result, Z_LVAL_P(op1) - Z_LVAL_P(op2));
8937 zval *op1, *op2, *result; variable
8940 op2 = GET_OP2_ZVAL_PTR_UNDEF(BP_VAR_R);
8942 fast_long_sub_function(result, op1, op2);
8949 zval *op1, *op2, *result; variable
8952 op2 = GET_OP2_ZVAL_PTR_UNDEF(BP_VAR_R);
8954 ZVAL_DOUBLE(result, Z_DVAL_P(op1) - Z_DVAL_P(op2));
8961 zval *op1, *op2, *result; variable
8964 op2 = GET_OP2_ZVAL_PTR_UNDEF(BP_VAR_R);
8966 ZVAL_LONG(result, Z_LVAL_P(op1) * Z_LVAL_P(op2));
8973 zval *op1, *op2, *result; variable
8977 op2 = GET_OP2_ZVAL_PTR_UNDEF(BP_VAR_R);
8979 …ZEND_SIGNED_MULTIPLY_LONG(Z_LVAL_P(op1), Z_LVAL_P(op2), Z_LVAL_P(result), Z_DVAL_P(result), overfl…
8987 zval *op1, *op2, *result; variable
8990 op2 = GET_OP2_ZVAL_PTR_UNDEF(BP_VAR_R);
8992 ZVAL_DOUBLE(result, Z_DVAL_P(op1) * Z_DVAL_P(op2));
8999 zval *op1, *op2; variable
9003 op2 = GET_OP2_ZVAL_PTR_UNDEF(BP_VAR_R);
9004 result = (Z_LVAL_P(op1) == Z_LVAL_P(op2));
9013 zval *op1, *op2; variable
9017 op2 = GET_OP2_ZVAL_PTR_UNDEF(BP_VAR_R);
9018 result = (Z_DVAL_P(op1) == Z_DVAL_P(op2));
9027 zval *op1, *op2; variable
9031 op2 = GET_OP2_ZVAL_PTR_UNDEF(BP_VAR_R);
9032 result = (Z_LVAL_P(op1) != Z_LVAL_P(op2));
9041 zval *op1, *op2; variable
9045 op2 = GET_OP2_ZVAL_PTR_UNDEF(BP_VAR_R);
9046 result = (Z_DVAL_P(op1) != Z_DVAL_P(op2));
9055 zval *op1, *op2; variable
9059 op2 = GET_OP2_ZVAL_PTR_UNDEF(BP_VAR_R);
9060 result = (Z_LVAL_P(op1) < Z_LVAL_P(op2));
9069 zval *op1, *op2; variable
9073 op2 = GET_OP2_ZVAL_PTR_UNDEF(BP_VAR_R);
9074 result = (Z_DVAL_P(op1) < Z_DVAL_P(op2));
9083 zval *op1, *op2; variable
9087 op2 = GET_OP2_ZVAL_PTR_UNDEF(BP_VAR_R);
9088 result = (Z_LVAL_P(op1) <= Z_LVAL_P(op2));
9097 zval *op1, *op2; variable
9101 op2 = GET_OP2_ZVAL_PTR_UNDEF(BP_VAR_R);
9102 result = (Z_DVAL_P(op1) <= Z_DVAL_P(op2));
9308 ZEND_VM_HOT_TYPE_SPEC_HANDLER(ZEND_SEND_VAR_EX, op->op2.num <= MAX_ARG_FLAG_NUM && (op1_info & (MAY…
9313 uint32_t arg_num = opline->op2.num;
9343 ZEND_VM_HOT_TYPE_SPEC_HANDLER(ZEND_SEND_VAL_EX, op->op2.num <= MAX_ARG_FLAG_NUM && op->op1_type == …
9348 uint32_t arg_num = opline->op2.num;
9405 variable_ptr = EX_VAR(opline->op2.var);