Skip to content

Commit bc1d7b6

Browse files
committed
Reserve WIN64 shadow space
1 parent 9250abf commit bc1d7b6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ext/opcache/jit/zend_jit_x86.dasc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2428,6 +2428,9 @@ static int zend_jit_trace_exit_stub(dasm_State **Dst)
24282428
| movsd qword [r4+16*8+2*8], xmm2
24292429
| movsd qword [r4+16*8+1*8], xmm1
24302430
| movsd qword [r4+16*8+0*8], xmm0
2431+
|.if X64WIN
2432+
| sub r4, 32 /* shadow space */
2433+
|.endif
24312434
|.else
24322435
| sub r4, 8*4+8*8-4 /* CPU regs + SSE regs */
24332436
| mov aword [r4+7*4], edi
@@ -2450,7 +2453,9 @@ static int zend_jit_trace_exit_stub(dasm_State **Dst)
24502453
| SAVE_OPLINE
24512454
| // zend_jit_trace_exit(trace_num, exit_num)
24522455
| EXT_CALL zend_jit_trace_exit, r0
2453-
|.if X64
2456+
|.if X64WIN
2457+
| add r4, 16*8+16*8+32 /* CPU regs + SSE regs + shadow space */
2458+
|.elif X64
24542459
| add r4, 16*8+16*8 /* CPU regs + SSE regs */
24552460
|.else
24562461
| add r4, 8*4+8*8 /* CPU regs + SSE regs */

0 commit comments

Comments
 (0)