Home
last modified time | relevance | path

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

123

/PHP-8.0/Zend/
H A Dzend_operators.h654 "r"(&op2->value), in fast_long_add_function()
672 "r"(&op2->value), in fast_long_add_function()
692 "r"(&op2->value), in fast_long_add_function()
764 "r"(&op2->value), in fast_long_sub_function()
782 "r"(&op2->value), in fast_long_sub_function()
802 "r"(&op2->value), in fast_long_sub_function()
869 return zend_compare(op1, op2) == 0; in fast_equal_check_function()
877 return zend_compare(op1, op2) == 0; in fast_equal_check_long()
885 return zend_compare(op1, op2) == 0; in fast_equal_check_string()
895 return zend_is_identical(op1, op2); in fast_is_identical_function()
[all …]
H A Dzend_operators.c405 op2 = Z_REFVAL_P(op2); \
993 ZVAL_DEREF(op2); in add_function_slow()
1411 op2 = Z_REFVAL_P(op2); in boolean_xor_function()
1524 longer = op2; in bitwise_or_function()
1606 longer = op2; in bitwise_and_function()
1688 longer = op2; in bitwise_xor_function()
1848 op2 = Z_REFVAL_P(op2); in concat_function()
2146 op2 = Z_REFVAL_P(op2); in zend_compare()
2157 return Z_OBJ_HANDLER_P(op2, compare)(op1, op2); in zend_compare()
2459 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";
681 if (($op2 == 'TMP' || $op2 == 'VAR') &&
683 $op2 = "TMPVAR";
684 } else if (($op2 == 'TMP' || $op2 == 'VAR') &&
691 $op2 = "ANY";
1050 if ($op2 === "CONST") {
1072 $op2 = "ANY";
[all …]
H A Dzend_vm_execute.h7525 op2 = EX_VAR(opline->op2.var); in ZEND_ADD_SPEC_CONST_TMPVARCV_HANDLER()
7563 op2 = EX_VAR(opline->op2.var); in ZEND_SUB_SPEC_CONST_TMPVARCV_HANDLER()
7600 op2 = EX_VAR(opline->op2.var); in ZEND_MOD_SPEC_CONST_TMPVARCV_HANDLER()
7627 op2 = EX_VAR(opline->op2.var); in ZEND_SL_SPEC_CONST_TMPVARCV_HANDLER()
7648 op2 = EX_VAR(opline->op2.var); in ZEND_SR_SPEC_CONST_TMPVARCV_HANDLER()
7668 op2 = EX_VAR(opline->op2.var); in ZEND_IS_SMALLER_SPEC_CONST_TMPVARCV_HANDLER()
7711 op2 = EX_VAR(opline->op2.var); in ZEND_IS_SMALLER_SPEC_CONST_TMPVARCV_JMPZ_HANDLER()
7754 op2 = EX_VAR(opline->op2.var); in ZEND_IS_SMALLER_SPEC_CONST_TMPVARCV_JMPNZ_HANDLER()
7797 op2 = EX_VAR(opline->op2.var); in ZEND_IS_SMALLER_OR_EQUAL_SPEC_CONST_TMPVARCV_HANDLER()
7844 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()
/PHP-8.0/ext/opcache/Optimizer/
H A Dcompact_literals.c90 uint32_t op2, in add_static_slot() argument
96 zval *prop_name = &op_array->literals[op2]; in add_static_slot()
533 opline->op2.constant = map[opline->op2.constant]; in zend_optimizer_compact_literals()
551 opline->op2.num = cache_size; in zend_optimizer_compact_literals()
561 opline->op2.constant, in zend_optimizer_compact_literals()
641 if (func_slot[opline->op2.constant] >= 0) { in zend_optimizer_compact_literals()
670 opline->op2.constant, in zend_optimizer_compact_literals()
700 if (const_slot[opline->op2.constant] >= 0) { in zend_optimizer_compact_literals()
713 opline->op2.constant, in zend_optimizer_compact_literals()
739 opline->op2.constant, in zend_optimizer_compact_literals()
[all …]
H A Doptimize_func_calls.c37 Z_TYPE(op_array->literals[(opline)->op2.constant]) == IS_STRING)
143 SET_UNUSED(opline->op2); in zend_try_inline_call()
202 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()
265 if (ARG_MUST_BE_SENT_BY_REF(call_stack[call - 1].func, opline->op2.num)) { in zend_optimize_func_calls()
281 call_stack[call - 1].func_arg_num = opline->op2.num; in zend_optimize_func_calls()
294 if (ARG_SHOULD_BE_SENT_BY_REF(call_stack[call - 1].func, opline->op2.num)) { in zend_optimize_func_calls()
308 if (ARG_MUST_BE_SENT_BY_REF(call_stack[call - 1].func, opline->op2.num)) { in zend_optimize_func_calls()
[all …]
H A Dsccp.c772 if (Z_TYPE_P(op2) != IS_ARRAY && !IS_PARTIAL_ARRAY(op2)) { in ct_eval_array_key_exists()
1065 if (op2) { in sccp_visit_instr()
1069 if (op2 && IS_BOT(op2)) { in sccp_visit_instr()
1097 if (!op2) { in sccp_visit_instr()
1258 if (op2) { in sccp_visit_instr()
1270 if (op2 && IS_BOT(op2)) { in sccp_visit_instr()
1295 if (!op2) { in sccp_visit_instr()
1386 if ((op1 && IS_BOT(op1)) || (op2 && IS_BOT(op2))) { in sccp_visit_instr()
1419 SKIP_IF_TOP(op2); in sccp_visit_instr()
1435 if (op2) { in sccp_visit_instr()
[all …]
H A Dpass3.c122 (opline-1)->op2.num = 0; in zend_optimizer_pass3()
125 (opline-1)->op2.num = 0; in zend_optimizer_pass3()
135 ZEND_SET_OP_JMP_ADDR((opline-1), (opline-1)->op2, target); in zend_optimizer_pass3()
156 ZEND_SET_OP_JMP_ADDR(opline, opline->op2, target); in zend_optimizer_pass3()
193 ZEND_SET_OP_JMP_ADDR(opline, opline->op2, target); in zend_optimizer_pass3()
200 opline->op2.num = 0; in zend_optimizer_pass3()
203 opline->op2.num = 0; in zend_optimizer_pass3()
279 ZEND_SET_OP_JMP_ADDR(opline, opline->op2, target); in zend_optimizer_pass3()
285 opline->op2.num = 0; in zend_optimizer_pass3()
312 ZEND_SET_OP_JMP_ADDR(opline, opline->op2, target); in zend_optimizer_pass3()
[all …]
H A Dzend_optimizer.c57 if (zend_binary_op_produces_error(opcode, op1, op2)) { in zend_optimizer_eval_binary_op()
63 ret = binary_op(result, op1, op2); in zend_optimizer_eval_binary_op()
235 opline->op2.num = alloc_cache_slots(op_array, 1); in zend_optimizer_update_op1_const()
353 (opline + 1)->op2.var == opline->result.var) { in zend_optimizer_update_op2_const()
664 opline->op2.var == var) { in zend_optimizer_replace_by_const()
817 zval *function_name = CRT_CONSTANT(opline->op2) + 1; in zend_optimizer_get_called_func()
1122 opline->op2.jmp_addr = &op_array->opcodes[opline->op2.jmp_addr - old_opcodes]; in zend_redo_pass_two()
1126 opline->op2.jmp_addr = &op_array->opcodes[opline->op2.jmp_addr - old_opcodes]; in zend_redo_pass_two()
1245 opline->op2.jmp_addr = &op_array->opcodes[opline->op2.jmp_addr - old_opcodes]; in zend_redo_pass_two_ex()
1249 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 Ddfa_pass.c804 opline->op2.num = 0; in zend_dfa_optimize_jmps()
811 opline->op2.num = 0; in zend_dfa_optimize_jmps()
835 opline->op2.num = 0; in zend_dfa_optimize_jmps()
842 opline->op2.num = 0; in zend_dfa_optimize_jmps()
868 opline->op2.num = 0; in zend_dfa_optimize_jmps()
875 opline->op2.num = 0; in zend_dfa_optimize_jmps()
1252 opline->op2.num = 0; in zend_dfa_optimize_op_array()
1283 opline->op2.num = 0; in zend_dfa_optimize_op_array()
1612 opline->op2.var = 0; in zend_dfa_optimize_op_array()
1630 SET_UNUSED(opline->op2); in zend_dfa_optimize_op_array()
[all …]
H A Dpass1.c99 SET_UNUSED(opline->op2); in zend_optimizer_pass1()
195 SET_UNUSED(opline->op2); in zend_optimizer_pass1()
222 SET_UNUSED(opline->op2); in zend_optimizer_pass1()
297 SET_UNUSED(opline->op2); in zend_optimizer_pass1()
412 SET_UNUSED(opline->op2); in zend_optimizer_pass1()
455 SET_UNUSED(opline->op2); in zend_optimizer_pass1()
474 SET_UNUSED(opline->op2); in zend_optimizer_pass1()
499 SET_UNUSED(opline->op2); in zend_optimizer_pass1()
607 opline->op2.num = 0; in zend_optimizer_pass1()
615 opline->op2.num = 0; in zend_optimizer_pass1()
[all …]
H A Dblock_pass.c189 znode_op op2 = opline->op2; in zend_optimize_block() local
194 VAR_SOURCE(op2) = NULL; in zend_optimize_block()
519 src->op2.num = tmp; in zend_optimize_block()
537 src->op2.num = tmp; in zend_optimize_block()
676 opline->op2.num = 0; in zend_optimize_block()
784 opline->op2.var = 0; in zend_optimize_block()
794 opline->op2.var = 0; in zend_optimize_block()
1124 opline->op2.num = map[opline->op2.num]; in assemble_code_blocks()
1350 last_op->op2.num = 0; in zend_jmp_optimization()
1353 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.h142 DEFINE_SSA_OP_HAS_RANGE(op2) in DEFINE_SSA_OP_MIN_RANGE()
143 DEFINE_SSA_OP_MIN_RANGE(op2) in DEFINE_SSA_OP_MIN_RANGE()
144 DEFINE_SSA_OP_MAX_RANGE(op2) in DEFINE_SSA_OP_MIN_RANGE()
145 DEFINE_SSA_OP_RANGE_UNDERFLOW(op2) in DEFINE_SSA_OP_MIN_RANGE()
146 DEFINE_SSA_OP_RANGE_OVERFLOW(op2) in DEFINE_SSA_OP_MIN_RANGE()
225 DEFINE_SSA_OP_INFO(op2) in DEFINE_SSA_OP_INFO() argument
228 DEFINE_SSA_OP_DEF_INFO(op2) in DEFINE_SSA_OP_INFO()
/PHP-8.0/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.c1784 ZVAL_DEREF(op2); in zend_ffi_cdata_do_operation()
1798 if (Z_TYPE_P(op2) == IS_OBJECT && Z_OBJCE_P(op2) == zend_ffi_cdata_ce) { in zend_ffi_cdata_do_operation()
6672 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
6688 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
6701 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
6716 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
6738 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
6753 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
6795 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
6811 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
[all …]
/PHP-8.0/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-8.0/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
176 str2_p = collator_make_printable_zval( op2, &str2 ); in collator_icu_compare_function()
H A Dcollator_sort.h21 typedef int (*collator_compare_func_t)( zval *result, zval *op1, zval *op2 );
/PHP-8.0/ext/standard/
H A Dphp_string.h62 PHPAPI int string_natural_compare_function_ex(zval *result, zval *op1, zval *op2, zend_bool case_in…
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 297 milliseconds

123