Skip to content

Commit 03a98d9

Browse files
committed
cleanup
1 parent 7e357f4 commit 03a98d9

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

ext/opcache/jit/zend_jit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2731,7 +2731,7 @@ static int zend_jit(const zend_op_array *op_array, zend_ssa *ssa, const zend_op
27312731
if (PROFITABILITY_CHECKS && (!ssa->ops || !ssa->var_info)) {
27322732
break;
27332733
}
2734-
if (!zend_jit_fetch_dim_read(&dasm_state, opline, op_array,
2734+
if (!zend_jit_fetch_dim_read(&dasm_state, opline, op_array, ssa, ssa_op,
27352735
OP1_INFO(), OP1_REG_ADDR(), OP2_INFO(), RES_INFO(),
27362736
zend_may_throw(opline, ssa_op, op_array, ssa))) {
27372737
goto jit_failure;

ext/opcache/jit/zend_jit_trace.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3760,7 +3760,7 @@ static const void *zend_jit_trace(zend_jit_trace_rec *trace_buffer, uint32_t par
37603760
op2_info = OP2_INFO();
37613761
CHECK_OP2_TRACE_TYPE();
37623762
res_info = RES_INFO();
3763-
if (!zend_jit_fetch_dim_read(&dasm_state, opline, op_array,
3763+
if (!zend_jit_fetch_dim_read(&dasm_state, opline, op_array, ssa, ssa_op,
37643764
op1_info, op1_addr, op2_info, res_info,
37653765
(
37663766
(op1_info & MAY_BE_ANY) != MAY_BE_ARRAY ||
@@ -3774,11 +3774,6 @@ static const void *zend_jit_trace(zend_jit_trace_rec *trace_buffer, uint32_t par
37743774
(op2_info & (MAY_BE_OBJECT|MAY_BE_RESOURCE|MAY_BE_ARRAY_OF_OBJECT|MAY_BE_ARRAY_OF_RESOURCE|MAY_BE_ARRAY_OF_ARRAY)) != 0)))) {
37753775
goto jit_failure;
37763776
}
3777-
if ((res_info & MAY_BE_GUARD)
3778-
&& JIT_G(current_frame)
3779-
&& (op1_info & (MAY_BE_ANY|MAY_BE_UNDEF)) == MAY_BE_ARRAY) {
3780-
ssa->var_info[ssa_op->result_def].type &= ~MAY_BE_GUARD;
3781-
}
37823777
goto done;
37833778
case ZEND_ISSET_ISEMPTY_DIM_OBJ:
37843779
if ((opline->extended_value & ZEND_ISEMPTY)) {

ext/opcache/jit/zend_jit_x86.dasc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10256,7 +10256,7 @@ static int zend_jit_zval_copy_deref(dasm_State **Dst, zend_jit_addr res_addr, ze
1025610256
return 1;
1025710257
}
1025810258

10259-
static int zend_jit_fetch_dim_read(dasm_State **Dst, const zend_op *opline, const zend_op_array *op_array, uint32_t op1_info, zend_jit_addr op1_addr, uint32_t op2_info, uint32_t res_info, int may_throw)
10259+
static int zend_jit_fetch_dim_read(dasm_State **Dst, const zend_op *opline, const zend_op_array *op_array, zend_ssa *ssa, const zend_ssa_op *ssa_op, uint32_t op1_info, zend_jit_addr op1_addr, uint32_t op2_info, uint32_t res_info, int may_throw)
1026010260
{
1026110261
zend_jit_addr orig_op1_addr, op2_addr, res_addr;
1026210262
const void *exit_addr = NULL;
@@ -10314,6 +10314,7 @@ static int zend_jit_fetch_dim_read(dasm_State **Dst, const zend_op *opline, cons
1031410314
}
1031510315
}
1031610316
res_info &= ~MAY_BE_GUARD;
10317+
ssa->var_info[ssa_op->result_def].type &= ~MAY_BE_GUARD;
1031710318
}
1031810319

1031910320
if (op1_info & MAY_BE_REF) {

0 commit comments

Comments
 (0)