Skip to content

Commit e054836

Browse files
committed
Always emit type check in RECV_INIT
If named parameters are used, we never jump over these opcodes.
1 parent 1f350e2 commit e054836

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

ext/opcache/jit/zend_jit_x86.dasc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11085,10 +11085,7 @@ static int zend_jit_recv_init(dasm_State **Dst, const zend_op *opline, const zen
1108511085
zval *zv = RT_CONSTANT(opline, opline->op2);
1108611086
zend_jit_addr res_addr = ZEND_ADDR_MEM_ZVAL(ZREG_FP, opline->result.var);
1108711087

11088-
if (JIT_G(trigger) != ZEND_JIT_ON_HOT_TRACE ||
11089-
(op_array->fn_flags & ZEND_ACC_HAS_TYPE_HINTS)) {
11090-
| IF_NOT_ZVAL_TYPE res_addr, IS_UNDEF, >5
11091-
}
11088+
| IF_NOT_ZVAL_TYPE res_addr, IS_UNDEF, >5
1109211089
| ZVAL_COPY_CONST res_addr, -1, -1, zv, r0
1109311090
if (Z_REFCOUNTED_P(zv)) {
1109411091
| ADDREF_CONST zv, r0

0 commit comments

Comments
 (0)