Skip to content

Commit 508f828

Browse files
committed
Reorder switch cases for consistency between zend_jit() and zend_jit_trace()
1 parent e64c386 commit 508f828

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

ext/opcache/jit/zend_jit.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2951,16 +2951,6 @@ static int zend_jit(const zend_op_array *op_array, zend_ssa *ssa, const zend_op
29512951
goto jit_failure;
29522952
}
29532953
goto done;
2954-
case ZEND_FE_FETCH_R:
2955-
op1_info = OP1_INFO();
2956-
if ((op1_info & MAY_BE_ANY) != MAY_BE_ARRAY) {
2957-
break;
2958-
}
2959-
if (!zend_jit_fe_fetch(&dasm_state, opline, op_array, ssa, ssa_op,
2960-
op1_info, ssa->cfg.blocks[b].successors[0], opline->opcode, NULL)) {
2961-
goto jit_failure;
2962-
}
2963-
goto done;
29642954
case ZEND_VERIFY_RETURN_TYPE:
29652955
if (opline->op1_type == IS_UNUSED) {
29662956
/* Always throws */
@@ -2982,6 +2972,16 @@ static int zend_jit(const zend_op_array *op_array, zend_ssa *ssa, const zend_op
29822972
goto jit_failure;
29832973
}
29842974
goto done;
2975+
case ZEND_FE_FETCH_R:
2976+
op1_info = OP1_INFO();
2977+
if ((op1_info & MAY_BE_ANY) != MAY_BE_ARRAY) {
2978+
break;
2979+
}
2980+
if (!zend_jit_fe_fetch(&dasm_state, opline, op_array, ssa, ssa_op,
2981+
op1_info, ssa->cfg.blocks[b].successors[0], opline->opcode, NULL)) {
2982+
goto jit_failure;
2983+
}
2984+
goto done;
29852985
default:
29862986
break;
29872987
}

0 commit comments

Comments
 (0)