@@ -9674,7 +9674,7 @@ static int zend_jit_do_fcall(zend_jit_ctx *jit, const zend_op *opline, const zen
9674
9674
&& trace->stop == ZEND_JIT_TRACE_STOP_INTERPRETER)) {
9675
9675
ir_ref ip;
9676
9676
9677
- if (func && zend_accel_in_shm(func->op_array.opcodes)) {
9677
+ if (zend_accel_in_shm(func->op_array.opcodes)) {
9678
9678
ip = ir_CONST_ADDR(func->op_array.opcodes);
9679
9679
} else {
9680
9680
if (!func_ref) {
@@ -11605,11 +11605,7 @@ static int zend_jit_fetch_dimension_address_inner(zend_jit_ctx *jit,
11605
11605
case BP_VAR_W:
11606
11606
if (packed_loaded) {
11607
11607
ir_ref if_def = ir_IF(jit_Z_TYPE_ref(jit, ref));
11608
- if (!(op1_info & MAY_BE_ARRAY_KEY_LONG) || (op1_info & MAY_BE_ARRAY_NUMERIC_HASH) || packed_loaded || bad_packed_key || dim_type == IS_UNDEF) {
11609
- ir_IF_TRUE_cold(if_def);
11610
- } else {
11611
- ir_IF_TRUE(if_def);
11612
- }
11608
+ ir_IF_TRUE_cold(if_def);
11613
11609
ir_refs_add(found_inputs, ir_END());
11614
11610
ir_refs_add(found_vals, ref);
11615
11611
ir_IF_FALSE(if_def);
@@ -13699,19 +13695,15 @@ static int zend_jit_fetch_obj(zend_jit_ctx *jit,
13699
13695
13700
13696
if (flags == ZEND_FETCH_DIM_WRITE) {
13701
13697
ir_IF_FALSE_cold(if_readonly);
13702
- if (flags) {
13703
- ir_MERGE_WITH(reinit_path);
13704
- }
13698
+ ir_MERGE_WITH(reinit_path);
13705
13699
jit_SET_EX_OPLINE(jit, opline);
13706
13700
ir_CALL_2(IR_VOID, ir_CONST_FC_FUNC(zend_jit_check_array_promotion),
13707
13701
prop_ref, prop_info_ref);
13708
13702
ir_END_list(end_inputs);
13709
13703
ir_IF_FALSE(if_has_prop_info);
13710
13704
} else if (flags == ZEND_FETCH_REF) {
13711
13705
ir_IF_FALSE_cold(if_readonly);
13712
- if (flags) {
13713
- ir_MERGE_WITH(reinit_path);
13714
- }
13706
+ ir_MERGE_WITH(reinit_path);
13715
13707
ir_CALL_3(IR_VOID, ir_CONST_FC_FUNC(zend_jit_create_typed_ref),
13716
13708
prop_ref,
13717
13709
prop_info_ref,
@@ -14539,11 +14531,7 @@ static int zend_jit_assign_obj_op(zend_jit_ctx *jit,
14539
14531
case ZEND_MOD:
14540
14532
if ((var_info & (MAY_BE_STRING|MAY_BE_ARRAY|MAY_BE_OBJECT|MAY_BE_RESOURCE)) ||
14541
14533
(val_info & (MAY_BE_STRING|MAY_BE_ARRAY|MAY_BE_OBJECT|MAY_BE_RESOURCE))) {
14542
- if (opline->extended_value != ZEND_ADD ||
14543
- (var_info & MAY_BE_ANY) != MAY_BE_ARRAY ||
14544
- (val_info & MAY_BE_ANY) == MAY_BE_ARRAY) {
14545
- may_throw = 1;
14546
- }
14534
+ may_throw = 1;
14547
14535
}
14548
14536
if (val_op_type != IS_CONST ||
14549
14537
Z_TYPE_P(RT_CONSTANT((opline+1), (opline+1)->op1)) != IS_LONG ||
0 commit comments