/PHP-8.1/ext/ffi/ |
H A D | ffi_parser.c | 3131 zend_ffi_val op2, op3; in parse_conditional_expression() local 3147 zend_ffi_val op2; in parse_logical_or_expression() local 3158 zend_ffi_val op2; in parse_logical_and_expression() local 3169 zend_ffi_val op2; in parse_inclusive_or_expression() local 3180 zend_ffi_val op2; in parse_exclusive_or_expression() local 3191 zend_ffi_val op2; in parse_and_expression() local 3202 zend_ffi_val op2; in parse_equality_expression() local 3219 zend_ffi_val op2; in parse_relational_expression() local 3244 zend_ffi_val op2; in parse_shift_expression() local 3261 zend_ffi_val op2; in parse_additive_expression() local [all …]
|
/PHP-8.1/Zend/tests/ |
H A D | fe_fetch_op2_live_range.phpt | 2 FE_FETCH op2 is a def and needs special live range handling
|
H A D | runtime_compile_time_binary_operands.phpt | 109 function prepareBinaryLine($op1, $op2, $cmp, $operator) { 111 $op2_p = makeParam($op2);
|
/PHP-8.1/ext/opcache/tests/ |
H A D | optimize_func_calls_001.phpt | 2 Don't create FETCH_DIM_R with UNUSED op2
|
/PHP-8.1/Zend/Optimizer/ |
H A D | zend_dfg.c | 37 var_num = EX_VAR_TO_NUM(opline->op2.var); in _zend_dfg_add_use_def_op() 54 zend_bitset_incl(def, EX_VAR_TO_NUM(opline->op2.var)); in _zend_dfg_add_use_def_op() 63 zend_bitset_incl(def, EX_VAR_TO_NUM(opline->op2.var)); in _zend_dfg_add_use_def_op() 227 zend_bitset_incl(def, EX_VAR_TO_NUM(opline->op2.var)); in _zend_dfg_add_use_def_op() 231 zend_bitset_incl(def, EX_VAR_TO_NUM(opline->op2.var)); in _zend_dfg_add_use_def_op()
|
H A D | zend_cfg.c | 337 zv = CRT_CONSTANT(opline->op2); in zend_build_cfg() 365 BB_START(OP_JMP_ADDR(opline, opline->op2) - op_array->opcodes); in zend_build_cfg() 379 BB_START(OP_JMP_ADDR(opline, opline->op2) - op_array->opcodes); in zend_build_cfg() 384 BB_START(OP_JMP_ADDR(opline, opline->op2) - op_array->opcodes); in zend_build_cfg() 395 BB_START(OP_JMP_ADDR(opline, opline->op2) - op_array->opcodes); in zend_build_cfg() 402 HashTable *jumptable = Z_ARRVAL_P(CRT_CONSTANT(opline->op2)); in zend_build_cfg() 524 block->successors[0] = block_map[OP_JMP_ADDR(opline, opline->op2) - op_array->opcodes]; in zend_build_cfg() 536 block->successors[0] = block_map[OP_JMP_ADDR(opline, opline->op2) - op_array->opcodes]; in zend_build_cfg() 542 block->successors[0] = block_map[OP_JMP_ADDR(opline, opline->op2) - op_array->opcodes]; in zend_build_cfg() 558 block->successors[0] = block_map[OP_JMP_ADDR(opline, opline->op2) - op_array->opcodes]; in zend_build_cfg() [all …]
|
H A D | optimize_temp_vars_5.c | 142 currT = VAR_NUM(opline->op2.var) - offset; in zend_optimize_temporary_variables() 148 opline->op2.var = NUM_VAR(map_T[currT] + offset); in zend_optimize_temporary_variables()
|
H A D | ssa_integrity.c | 228 if (VAR_NUM(opline->op2.var) != ssa->vars[ssa_op->op2_use].var) { in ssa_verify_integrity() 230 VAR(ssa_op->op2_use), VAR_NUM(opline->op2.var), INSTR(i)); in ssa_verify_integrity() 267 if (VAR_NUM(opline->op2.var) != ssa->vars[ssa_op->op2_def].var) { in ssa_verify_integrity() 269 VAR(ssa_op->op2_def), VAR_NUM(opline->op2.var), INSTR(i)); in ssa_verify_integrity()
|
H A D | zend_ssa.c | 208 zv = CRT_CONSTANT_EX(op_array, op, op->op2); in find_adjusted_tmp_var() 219 return EX_VAR_TO_NUM(op->op2.var); in find_adjusted_tmp_var() 224 zv = CRT_CONSTANT_EX(op_array, op, op->op2); in find_adjusted_tmp_var() 315 var2 = EX_VAR_TO_NUM((opline-1)->op2.var); in place_essa_pis() 318 op_array, build_flags, opline, (opline-1)->op2.var, &val1); in place_essa_pis() 497 var = EX_VAR_TO_NUM((opline-1)->op2.var); in place_essa_pis() 553 ssa_ops[k].op2_use = var[EX_VAR_TO_NUM(opline->op2.var)]; in _zend_ssa_rename_op() 567 var[EX_VAR_TO_NUM(opline->op2.var)] = ssa_vars_count; in _zend_ssa_rename_op() 582 var[EX_VAR_TO_NUM(opline->op2.var)] = ssa_vars_count; in _zend_ssa_rename_op() 749 var[EX_VAR_TO_NUM(opline->op2.var)] = ssa_vars_count; in _zend_ssa_rename_op() [all …]
|
H A D | zend_dump.c | 636 zval *op = CRT_CONSTANT(opline->op2); in zend_dump_op() 667 …zend_dump_ssa_var(op_array, ssa, ssa_var_num, opline->op2_type, EX_VAR_TO_NUM(opline->op2.var), du… in zend_dump_op() 670 zend_dump_var(op_array, opline->op2_type, EX_VAR_TO_NUM(opline->op2.var)); in zend_dump_op() 674 zend_dump_var(op_array, opline->op2_type, EX_VAR_TO_NUM(opline->op2.var)); in zend_dump_op() 680 …zend_dump_ssa_var(op_array, ssa, ssa_var_num, opline->op2_type, EX_VAR_TO_NUM(opline->op2.var), du… in zend_dump_op() 690 fprintf(stderr, " %04u", (uint32_t)(OP_JMP_ADDR(opline, opline->op2) - op_array->opcodes)); in zend_dump_op() 694 zend_dump_unused_op(opline, opline->op2, op2_flags); in zend_dump_op()
|
/PHP-8.1/Zend/ |
H A D | zend_opcode.c | 671 int nest_levels = opline->op2.num; in zend_get_brk_cont_target() 940 uint32_t var_num = EX_VAR_TO_NUM(opline->op2.var) - var_offset; in zend_calc_live_ranges() 1054 zval *val = CT_CONSTANT(opline->op2); in pass_two() 1076 opline->op2.num = 0; in pass_two() 1102 ZEND_PASS_TWO_UPDATE_JMP_TARGET(op_array, opline, opline->op2); in pass_two() 1107 zend_op *call = &op_array->opcodes[opline->op2.opline_num - 1]; in pass_two() 1114 ZEND_PASS_TWO_UPDATE_JMP_TARGET(op_array, opline, opline->op2); in pass_two() 1124 ZEND_PASS_TWO_UPDATE_JMP_TARGET(op_array, opline, opline->op2); in pass_two() 1138 HashTable *jumptable = Z_ARRVAL_P(CT_CONSTANT(opline->op2)); in pass_two() 1154 ZEND_PASS_TWO_UPDATE_CONSTANT(op_array, opline, opline->op2); in pass_two() [all …]
|
H A D | zend_ast.c | 489 zval op1, op2; in zend_ast_evaluate() local 501 ret = op(result, &op1, &op2); in zend_ast_evaluate() 503 zval_ptr_dtor_nogc(&op2); in zend_ast_evaluate() 517 ret = op(result, &op2, &op1); in zend_ast_evaluate() 519 zval_ptr_dtor_nogc(&op2); in zend_ast_evaluate() 587 zval_ptr_dtor_nogc(&op2); in zend_ast_evaluate() 607 zval_ptr_dtor_nogc(&op2); in zend_ast_evaluate() 658 zval_ptr_dtor_nogc(&op2); in zend_ast_evaluate() 667 zval_ptr_dtor_nogc(&op2); in zend_ast_evaluate() 710 zval_ptr_dtor_nogc(&op2); in zend_ast_evaluate() [all …]
|
H A D | zend_compile.c | 2121 if (op2 != NULL) { in zend_emit_op() 2122 SET_NODE(opline->op2, op2); in zend_emit_op() 2141 if (op2 != NULL) { in zend_emit_op_tmp() 2142 SET_NODE(opline->op2, op2); in zend_emit_op_tmp() 2273 if (op2 != NULL) { in zend_delayed_emit_op() 2274 SET_NODE(tmp_opline.op2, op2); in zend_delayed_emit_op() 4110 opline->op2.num = i; in zend_compile_func_cuf() 5140 opline->op2.num = depth; in zend_compile_break_continue() 8434 && !is_numeric_string(Z_STRVAL_P(op2), Z_STRLEN_P(op2), NULL, NULL, 0)) { in zend_binary_op_produces_error() 8465 fn(result, op1, op2); in zend_try_ct_eval_binary_op() [all …]
|
H A D | zend_execute.c | 275 return zval_undefined_cv(EX(opline)->op2.var EXECUTE_DATA_CC); in _zval_undefined_op2() 1432 return zend_binary_ops[opcode - ZEND_ADD](ret, op1, op2); in zend_binary_op() 1643 if (opline->op2_type == IS_VAR && opline->op2.var == var) { in zend_wrong_string_offset_error() 3290 zval *class_name = RT_CONSTANT(opline, opline->op2); in zend_fetch_static_property_address_ex() 3306 ce = zend_fetch_class(NULL, opline->op2.num); in zend_fetch_static_property_address_ex() 3312 ce = Z_CE_P(EX_VAR(opline->op2.var)); in zend_fetch_static_property_address_ex() 4172 num_args = opline->op2.num; in zend_unfinished_calls_gc() 4305 ZEND_CALL_NUM_ARGS(call) = opline->op2.num; in cleanup_unfinished_calls() 4548 op->op1 = op->op2; in zend_swap_operands() 4550 op->op2 = tmp; in zend_swap_operands() [all …]
|
/PHP-8.1/ext/opcache/jit/ |
H A D | zend_jit_helpers.c | 1378 zend_jit_undefined_op_helper(opline->op2.var); in zend_jit_fetch_dim_obj_helper() 1483 zend_jit_undefined_op_helper(opline->op2.var); in zend_jit_assign_dim_helper() 1556 zend_jit_undefined_op_helper(opline->op2.var); in zend_jit_assign_dim_helper() 1576 zend_jit_undefined_op_helper(opline->op2.var); in zend_jit_assign_dim_op_helper() 1633 size_t op2_len = Z_STRLEN_P(op2); in zend_jit_fast_assign_concat_helper() 1648 if (UNEXPECTED(Z_STR_P(op1) == Z_STR_P(op2))) { in zend_jit_fast_assign_concat_helper() 1649 ZVAL_NEW_STR(op2, result_str); in zend_jit_fast_assign_concat_helper() 1667 size_t op2_len = Z_STRLEN_P(op2); in zend_jit_fast_concat_helper() 1689 size_t op2_len = Z_STRLEN_P(op2); in zend_jit_fast_concat_tmp_helper() 2172 var = opline->op2.var; in zend_jit_assign_cv_to_typed_ref() [all …]
|
H A D | zend_jit_internal.h | 184 OP_ADDR(opline, op2_type, op2) 197 OP_REG_ADDR(opline, op2_type, op2, op2_use) 206 OP_REG_ADDR(opline, op2_type, op2, op2_def) 709 return OP_JMP_ADDR(opline, opline->op2); in zend_jit_trace_get_exit_opline() 710 } else if (trace->opline == OP_JMP_ADDR(opline, opline->op2)) { in zend_jit_trace_get_exit_opline()
|
H A D | zend_jit_trace.c | 487 uint32_t arg_num = opline->op2.num; in zend_jit_trace_send_type() 1112 zval *zv = RT_CONSTANT(opline, opline->op2); in is_checked_guard() 1146 zval *zv = RT_CONSTANT(opline, opline->op2); in is_checked_guard() 1965 if (opline->op2.num > MAX_ARG_FLAG_NUM) { in zend_jit_trace_build_tssa() 2048 || opline->op2.num > MAX_ARG_FLAG_NUM) { in zend_jit_trace_build_tssa() 3692 if (!zend_jit_free_op(Dst, op, -1, op->op2.var)) { in zend_jit_trace_deoptimization() 5112 && opline->op2.num > MAX_ARG_FLAG_NUM) { in zend_jit_trace() 5158 && opline->op2.num > MAX_ARG_FLAG_NUM) { in zend_jit_trace() 5214 || opline->op2.num > MAX_ARG_FLAG_NUM) { in zend_jit_trace() 6435 || opline->op1.var != opline->op2.var)) { in zend_jit_trace() [all …]
|
H A D | zend_jit_vm_helpers.c | 276 … zend_throw_error(NULL, "Undefined constant \"%s\"", Z_STRVAL_P(RT_CONSTANT(opline, opline->op2))); in _zend_quick_get_constant() 674 zval *zv = EX_VAR(opline->op2.var); 753 dim = RT_CONSTANT(opline, opline->op2); 755 dim = EX_VAR(opline->op2.var); 800 && Z_TYPE_P(RT_CONSTANT(opline, opline->op2)) == IS_STRING 801 && Z_STRVAL_P(RT_CONSTANT(opline, opline->op2))[0] != '\0') { 803 zend_string *prop_name = Z_STR_P(RT_CONSTANT(opline, opline->op2));
|
H A D | zend_jit_x86.dasc | 298 | mem_ins prefix [addr], op2 301 | mem_ins prefix [tmp_reg], op2 304 | mem_ins prefix [addr], op2 558 | avx_ins op1, op2 560 | sse_ins op1, op2 1803 | mov eax, dword OP:RX->op2.var 1818 | mov eax, dword OP:RX->op2.var 1969 | mov r0, aword OP:r0->op2.zv 1973 | mov eax, dword OP:r0->op2.var 2029 | mov r0, aword OP:r0->op2.zv [all …]
|
/PHP-8.1/ext/opcache/tests/opt/ |
H A D | sccp_024.phpt | 2 SCCP 024: Const replacing to op2 of INSTANCEOF
|
/PHP-8.1/ext/gmp/ |
H A D | gmp.c | 332 static void shift_operator_helper(gmp_binary_ui_op_t op, zval *return_value, zval *op1, zval *op2, … in shift_operator_helper() argument 333 zend_long shift = zval_get_long(op2); in shift_operator_helper() 355 result, op1, op2, op, uop, check_b_zero, /* is_operator */ true); \ 369 static int gmp_do_operation_ex(zend_uchar opcode, zval *result, zval *op1, zval *op2) /* {{{ */ in gmp_do_operation_ex() argument 379 shift_operator_helper(mpz_pow_ui, result, op1, op2, opcode); in gmp_do_operation_ex() 386 shift_operator_helper(mpz_mul_2exp, result, op1, op2, opcode); in gmp_do_operation_ex() 389 shift_operator_helper(mpz_fdiv_q_2exp, result, op1, op2, opcode); in gmp_do_operation_ex() 406 static int gmp_do_operation(zend_uchar opcode, zval *result, zval *op1, zval *op2) /* {{{ */ in gmp_do_operation() argument 416 retval = gmp_do_operation_ex(opcode, result, op1, op2); in gmp_do_operation() 426 static int gmp_compare(zval *op1, zval *op2) /* {{{ */ in gmp_compare() argument [all …]
|
/PHP-8.1/ext/com_dotnet/tests/ |
H A D | variants.phpt | 29 foreach ($values as $op2) { 33 echo "$op: " . call_user_func('variant_' . $op, $v, $op2) . "\n"; 36 echo "\tvariant_$op($v, $op2)\n";
|
H A D | variants_x64.phpt | 32 foreach ($values as $op2) { 36 echo "$op: " . call_user_func('variant_' . $op, $v, $op2) . "\n"; 39 echo "\tvariant_$op($v, $op2)\n";
|
/PHP-8.1/ext/opcache/ |
H A D | zend_persist.c | 543 …opline->op2.zv = (zval*)((char*)opline->op2.zv + ((char*)op_array->literals - (char*)orig_literals… in zend_persist_op_array_ex() 559 opline->op2.constant = in zend_persist_op_array_ex() 562 (int32_t)opline->op2.constant) - orig_literals)) - in zend_persist_op_array_ex() 587 opline->op2.jmp_addr = &new_opcodes[opline->op2.jmp_addr - op_array->opcodes]; in zend_persist_op_array_ex() 591 opline->op2.jmp_addr = &new_opcodes[opline->op2.jmp_addr - op_array->opcodes]; in zend_persist_op_array_ex()
|
H A D | zend_file_cache.c | 514 SERIALIZE_PTR(opline->op2.zv); 521 opline->op2.constant = RT_CONSTANT(opline, opline->op2) - literals; 543 SERIALIZE_PTR(opline->op2.jmp_addr); 547 SERIALIZE_PTR(opline->op2.jmp_addr); 1315 UNSERIALIZE_PTR(opline->op2.zv); 1322 ZEND_PASS_TWO_UPDATE_CONSTANT(op_array, opline, opline->op2); 1344 UNSERIALIZE_PTR(opline->op2.jmp_addr); 1348 UNSERIALIZE_PTR(opline->op2.jmp_addr);
|