Skip to content

Commit ef0d916

Browse files
committed
Merge branch 'PHP-8.0'
* PHP-8.0: JIT/x86: Fixed possible incorrect exception catching in function JIT.
2 parents 970a909 + 99c0efc commit ef0d916

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

ext/opcache/jit/zend_jit_x86.dasc

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1743,7 +1743,7 @@ static int zend_jit_exception_handler_stub(dasm_State **Dst)
17431743
if (GCC_GLOBAL_REGS) {
17441744
| add r4, SPAD // stack alignment
17451745
| EXT_JMP handler, r0
1746-
} else if (JIT_G(trigger) == ZEND_JIT_ON_HOT_TRACE) {
1746+
} else {
17471747
| mov FCARG1a, FP
17481748
| EXT_CALL handler, r0
17491749
| mov FP, aword T2 // restore FP
@@ -1754,12 +1754,6 @@ static int zend_jit_exception_handler_stub(dasm_State **Dst)
17541754
| mov r0, 1 // ZEND_VM_ENTER
17551755
|1:
17561756
| ret
1757-
} else {
1758-
| mov FCARG1a, FP
1759-
| mov FP, aword T2 // restore FP
1760-
| mov RX, aword T3 // restore IP
1761-
| add r4, NR_SPAD // stack alignment
1762-
| EXT_JMP handler, r0
17631757
}
17641758
}
17651759

0 commit comments

Comments
 (0)