/php-src/Zend/ |
H A D | zend_compile.c | 2238 if (op2 != NULL) { in zend_emit_op() 2239 SET_NODE(opline->op2, op2); in zend_emit_op() 2258 if (op2 != NULL) { in zend_emit_op_tmp() 2259 SET_NODE(opline->op2, op2); in zend_emit_op_tmp() 2392 if (op2 != NULL) { in zend_delayed_emit_op() 2393 SET_NODE(tmp_opline.op2, op2); in zend_delayed_emit_op() 4287 opline->op2.num = i; in zend_compile_func_cuf() 5512 opline->op2.num = depth; in zend_compile_break_continue() 8986 && !is_numeric_string(Z_STRVAL_P(op2), Z_STRLEN_P(op2), NULL, NULL, 0)) { in zend_binary_op_produces_error() 9017 fn(result, op1, op2); in zend_try_ct_eval_binary_op() [all …]
|
H A D | zend_execute.c | 289 return zval_undefined_cv(EX(opline)->op2.var EXECUTE_DATA_CC); in _zval_undefined_op2() 1562 return zend_binary_ops[opcode - ZEND_ADD](ret, op1, op2); in zend_binary_op() 3368 zval *class_name = RT_CONSTANT(opline, opline->op2); in zend_fetch_static_property_address_ex() 3384 ce = zend_fetch_class(NULL, opline->op2.num); in zend_fetch_static_property_address_ex() 3390 ce = Z_CE_P(EX_VAR(opline->op2.var)); in zend_fetch_static_property_address_ex() 4265 num_args = opline->op2.num; in zend_unfinished_calls_gc() 4400 ZEND_CALL_NUM_ARGS(call) = opline->op2.num; in cleanup_unfinished_calls() 4644 op->op1 = op->op2; in zend_swap_operands() 4646 op->op2 = tmp; in zend_swap_operands() 5183 zval *default_value = RT_CONSTANT(opline, opline->op2); in zend_handle_undef_args() [all …]
|
H A D | zend_compile.h | 42 SET_UNUSED((opline)->op2); \ 139 znode_op op2; member 1242 ZEND_API bool zend_binary_op_produces_error(uint32_t opcode, const zval *op1, const zval *op2);
|
H A D | zend_inheritance.c | 951 zval *zv = RT_CONSTANT(precv, precv->op2); in zend_get_function_declaration() 1694 if (UNEXPECTED(Z_TYPE_P(op2) == IS_CONSTANT_AST)) { in check_trait_property_or_constant_value_compatibility() 1695 ZVAL_COPY_OR_DUP(&op2_tmp, op2); in check_trait_property_or_constant_value_compatibility() 1700 op2 = &op2_tmp; in check_trait_property_or_constant_value_compatibility() 1703 is_compatible = fast_is_identical_function(op1, op2); in check_trait_property_or_constant_value_compatibility() 1708 if (op2 == &op2_tmp) { in check_trait_property_or_constant_value_compatibility() 2516 zval *op1, *op2; in zend_do_traits_property_binding() local 2520 op2 = &traits[i]->default_static_members_table[property_info->offset]; in zend_do_traits_property_binding() 2522 ZVAL_DEINDIRECT(op2); in zend_do_traits_property_binding() 2525 op2 = &traits[i]->default_properties_table[OBJ_PROP_TO_NUM(property_info->offset)]; in zend_do_traits_property_binding() [all …]
|
/php-src/ext/opcache/jit/ir/ |
H A D | ir.h | 367 #define IR_OP_ENUM(name, flags, op1, op2, op3) IR_ ## name, argument 472 ir_ref op2, 698 ir_ref ir_emit(ir_ctx *ctx, uint32_t opt, ir_ref op1, ir_ref op2, ir_ref op3); 702 ir_ref ir_emit2(ir_ctx *ctx, uint32_t opt, ir_ref op1, ir_ref op2); 703 ir_ref ir_emit3(ir_ctx *ctx, uint32_t opt, ir_ref op1, ir_ref op2, ir_ref op3); 715 ctx->ir_base[ref].op2 = val; in ir_set_op2() 735 ir_ref ir_fold(ir_ctx *ctx, uint32_t opt, ir_ref op1, ir_ref op2, ir_ref op3); 739 ir_ref ir_fold2(ir_ctx *ctx, uint32_t opt, ir_ref op1, ir_ref op2); 740 ir_ref ir_fold3(ir_ctx *ctx, uint32_t opt, ir_ref op1, ir_ref op2, ir_ref op3);
|
H A D | ir_cfg.c | 1356 if (insn1->op2) { in ir_schedule_blocks_bottom_up() 1357 prob1 = insn1->op2; in ir_schedule_blocks_bottom_up() 1358 if (insn2->op2) { in ir_schedule_blocks_bottom_up() 1359 prob2 = insn2->op2; in ir_schedule_blocks_bottom_up() 1368 } else if (insn2->op2) { in ir_schedule_blocks_bottom_up() 1369 prob2 = insn2->op2; in ir_schedule_blocks_bottom_up() 1465 prob = insn->op2; in ir_schedule_blocks_bottom_up() 1715 prob = insn->op2; in ir_schedule_blocks_top_down() 1723 prob = insn->op2; in ir_schedule_blocks_top_down() 1806 if (!start_insn->op2) start_insn->op2 = 1; in ir_schedule_blocks() [all …]
|
H A D | ir_ra.c | 1728 insn->op1 = insn->op2; in ir_swap_operands() 1729 insn->op2 = tmp; in ir_swap_operands() 1753 if (insn->op2 > 0 && ctx->vregs[insn->op2]) { in ir_swap_operands() 1754 ival = ctx->live_intervals[ctx->vregs[insn->op2]]; in ir_swap_operands() 1822 if (ctx->vregs[insn->op2] && ctx->vregs[insn->op2] != ctx->vregs[i]) { in ir_try_swap_operands() 1937 if (input_insn->op2 == use in ir_coalesce() 1996 && insn->op2 > 0 in ir_coalesce() 1998 && insn->op1 != insn->op2) { in ir_coalesce() 3422 IR_ASSERT(ctx->ir_base[insn->op2].op == IR_VAR); in ir_ival_spill_for_fuse_load() 3539 ir_insn *val = &ctx->ir_base[insn->op2]; in ir_linear_scan() [all …]
|
H A D | gen_ir_fold_hash.c | 253 #define IR_OP_ADD(name, flags, op1, op2, op3) \ in main() argument
|
/php-src/Zend/Optimizer/ |
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() 314 var2 = EX_VAR_TO_NUM((opline-1)->op2.var); in place_essa_pis() 496 var = EX_VAR_TO_NUM((opline-1)->op2.var); in place_essa_pis() 552 ssa_ops[k].op2_use = var[EX_VAR_TO_NUM(opline->op2.var)]; in _zend_ssa_rename_op() 566 var[EX_VAR_TO_NUM(opline->op2.var)] = ssa_vars_count; in _zend_ssa_rename_op() 581 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() 756 var[EX_VAR_TO_NUM(opline->op2.var)] = ssa_vars_count; in _zend_ssa_rename_op() [all …]
|
H A D | ssa_integrity.c | 267 if (VAR_NUM(opline->op2.var) != ssa->vars[ssa_op->op2_use].var) { in ssa_verify_integrity() 269 VAR(ssa_op->op2_use), VAR_NUM(opline->op2.var), INSTR(i)); in ssa_verify_integrity() 310 if (VAR_NUM(opline->op2.var) != ssa->vars[ssa_op->op2_def].var) { in ssa_verify_integrity() 312 VAR(ssa_op->op2_def), VAR_NUM(opline->op2.var), INSTR(i)); in ssa_verify_integrity()
|
H A D | zend_dump.c | 659 zval *op = CRT_CONSTANT(opline->op2); in zend_dump_op() 690 …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() 693 zend_dump_var(op_array, opline->op2_type, EX_VAR_TO_NUM(opline->op2.var)); in zend_dump_op() 697 zend_dump_var(op_array, opline->op2_type, EX_VAR_TO_NUM(opline->op2.var)); in zend_dump_op() 703 …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() 713 fprintf(stderr, " %04u", (uint32_t)(OP_JMP_ADDR(opline, opline->op2) - op_array->opcodes)); in zend_dump_op() 717 zend_dump_unused_op(opline, opline->op2, op2_flags); in zend_dump_op()
|
H A D | zend_call_graph.c | 151 uint32_t num = opline->op2.num; in zend_analyze_calls()
|
H A D | zend_inference.c | 2452 Z_STR_P(CRT_CONSTANT(opline->op2)), in zend_fetch_prop_info() 2468 int fetch_type = opline->op2.num & ZEND_FETCH_CLASS_MASK; in zend_fetch_static_prop_info() 2483 zval *zv = CRT_CONSTANT(opline->op2); in zend_fetch_static_prop_info() 3374 zval *zv = CRT_CONSTANT(opline->op2); in _zend_update_type_info() 4276 return (opline->opcode == ZEND_ADD && Z_LVAL_P(op2) == 0) in is_effective_op1_double_cast() 4277 || (opline->opcode == ZEND_SUB && Z_LVAL_P(op2) == 0) in is_effective_op1_double_cast() 4278 || (opline->opcode == ZEND_MUL && Z_LVAL_P(op2) == 1) in is_effective_op1_double_cast() 4279 || (opline->opcode == ZEND_DIV && Z_LVAL_P(op2) == 1); in is_effective_op1_double_cast() 4375 zval *zv = CRT_CONSTANT(opline->op2); in can_convert_to_double() 4463 zval *value = CRT_CONSTANT(opline->op2); in zend_type_narrowing() [all …]
|
H A D | escape_analysis.c | 201 && Z_TYPE_P(CRT_CONSTANT(opline->op2)) == IS_ARRAY) { in is_allocation_def()
|
/php-src/ext/opcache/jit/ |
H A D | zend_jit_ir.c | 3510 phi->op1 = phi->op2; in _zend_jit_fix_merges() 3511 phi->op2 = 1; in _zend_jit_fix_merges() 4945 op2 = ir_INT2D(op2); in zend_jit_math_long_long() 4970 ir_ref op1, op2, ref; in zend_jit_math_long_double() local 5004 ir_ref op1, op2, ref; in zend_jit_math_double_long() local 5041 ir_ref op1, op2, ref; in zend_jit_math_double_double() local 5575 ir_ref op1, op2; in zend_jit_long_math_helper() local 6918 ir_ref op1, op2, ref; in zend_jit_cmp() local 6946 op2 = zend_jit_zval_check_undef(jit, op2, opline->op2.var, NULL, 0); in zend_jit_cmp() 7050 op2 = zend_jit_zval_check_undef(jit, op2, opline->op2.var, opline, 0); in zend_jit_identical() [all …]
|
H A D | zend_jit_trace.c | 456 uint32_t arg_num = opline->op2.num; in zend_jit_trace_send_type() 1176 zval *zv = RT_CONSTANT(opline, opline->op2); in is_checked_guard() 1210 zval *zv = RT_CONSTANT(opline, opline->op2); in is_checked_guard() 2047 if (opline->op2.num > MAX_ARG_FLAG_NUM) { in zend_jit_trace_build_tssa() 2130 || opline->op2.num > MAX_ARG_FLAG_NUM) { in zend_jit_trace_build_tssa() 3574 if (!zend_jit_free_op(jit, op, -1, op->op2.var)) { in zend_jit_trace_deoptimization() 5185 && opline->op2.num > MAX_ARG_FLAG_NUM) { in zend_jit_trace() 5231 && opline->op2.num > MAX_ARG_FLAG_NUM) { in zend_jit_trace() 5287 || opline->op2.num > MAX_ARG_FLAG_NUM) { in zend_jit_trace() 6585 || opline->op1.var != opline->op2.var)) { in zend_jit_trace() [all …]
|
H A D | zend_jit_internal.h | 88 OP_ADDR(opline, op2_type, op2) 97 OP_REG_ADDR(opline, ssa_op, op2_type, op2, op2_use) 106 OP_REG_ADDR(opline, ssa_op, op2_type, op2, op2_def) 656 return OP_JMP_ADDR(opline, opline->op2); in zend_jit_trace_get_exit_opline() 657 } else if (trace->opline == OP_JMP_ADDR(opline, opline->op2)) { in zend_jit_trace_get_exit_opline()
|
H A D | zend_jit.c | 516 && Z_TYPE_P(RT_CONSTANT(opline, opline->op2)) == IS_STRING in zend_jit_may_avoid_refcounting() 517 && Z_STRVAL_P(RT_CONSTANT(opline, opline->op2))[0] != '\0') { in zend_jit_may_avoid_refcounting() 660 #define OP2_RANGE() OP_RANGE(ssa_op, op2) 1732 || Z_TYPE_P(RT_CONSTANT(opline, opline->op2)) != IS_STRING in zend_jit() 1733 || Z_STRVAL_P(RT_CONSTANT(opline, opline->op2))[0] == '\0') { in zend_jit() 1779 || Z_TYPE_P(RT_CONSTANT(opline, opline->op2)) != IS_STRING in zend_jit() 1827 || Z_TYPE_P(RT_CONSTANT(opline, opline->op2)) != IS_STRING in zend_jit() 1945 && opline->op2.num > MAX_ARG_FLAG_NUM) { in zend_jit() 1974 && opline->op2.num > MAX_ARG_FLAG_NUM) { in zend_jit() 1995 if (opline->op2.num > MAX_ARG_FLAG_NUM) { in zend_jit() [all …]
|
/php-src/ext/gmp/ |
H A D | gmp.c | 337 static void shift_operator_helper(gmp_binary_ui_op_t op, zval *return_value, zval *op1, zval *op2, … in shift_operator_helper() argument 338 zend_long shift = zval_get_long(op2); in shift_operator_helper() 360 result, op1, op2, op, uop, check_b_zero, /* is_operator */ true); \ 374 static zend_result gmp_do_operation_ex(uint8_t opcode, zval *result, zval *op1, zval *op2) /* {{{ */ in gmp_do_operation_ex() argument 384 shift_operator_helper(mpz_pow_ui, result, op1, op2, opcode); in gmp_do_operation_ex() 391 shift_operator_helper(mpz_mul_2exp, result, op1, op2, opcode); in gmp_do_operation_ex() 394 shift_operator_helper(mpz_fdiv_q_2exp, result, op1, op2, opcode); in gmp_do_operation_ex() 411 static zend_result gmp_do_operation(uint8_t opcode, zval *result, zval *op1, zval *op2) /* {{{ */ in gmp_do_operation() argument 421 retval = gmp_do_operation_ex(opcode, result, op1, op2); in gmp_do_operation() 431 static int gmp_compare(zval *op1, zval *op2) /* {{{ */ in gmp_compare() argument [all …]
|
/php-src/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-src/ext/opcache/ |
H A D | zend_persist.c | 540 …opline->op2.zv = (zval*)((char*)opline->op2.zv + ((char*)op_array->literals - (char*)orig_literals… in zend_persist_op_array_ex() 556 opline->op2.constant = in zend_persist_op_array_ex() 559 (int32_t)opline->op2.constant) - orig_literals)) - in zend_persist_op_array_ex() 583 opline->op2.jmp_addr = &new_opcodes[opline->op2.jmp_addr - op_array->opcodes]; 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()
|
H A D | zend_file_cache.c | 533 SERIALIZE_PTR(opline->op2.zv); 540 opline->op2.constant = RT_CONSTANT(opline, opline->op2) - literals; 561 SERIALIZE_PTR(opline->op2.jmp_addr); 565 SERIALIZE_PTR(opline->op2.jmp_addr); 1385 UNSERIALIZE_PTR(opline->op2.zv); 1392 ZEND_PASS_TWO_UPDATE_CONSTANT(op_array, opline, opline->op2); 1413 UNSERIALIZE_PTR(opline->op2.jmp_addr); 1417 UNSERIALIZE_PTR(opline->op2.jmp_addr);
|
H A D | ZendAccelerator.c | 3836 opline->op2.num -= skip_dynamic_func_count; 3839 if (func && func == op_array->dynamic_func_defs[opline->op2.num]) { 3847 if (opline->op2.num > 0) { 3851 sizeof(zend_op_array*) * opline->op2.num); 3853 if (op_array->num_dynamic_func_defs - opline->op2.num > 0) { 3855 dynamic_func_defs + opline->op2.num, 3856 op_array->dynamic_func_defs + (opline->op2.num + 1), 3857 sizeof(zend_op_array*) * (op_array->num_dynamic_func_defs - opline->op2.num)); 3867 opline->op2.num -= skip_dynamic_func_count;
|
/php-src/ |
H A D | .gdbinit | 593 printf "op2 => " 594 printzn &execute_data->opline.op2
|