Skip to content

Commit baa0824

Browse files
author
Chen Hu
committed
JIT asan test
1 parent d058b76 commit baa0824

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ext/opcache/jit/zend_jit_x86.dasc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2302,6 +2302,7 @@ static int zend_jit_hybrid_hot_code_stub(dasm_State **Dst)
23022302
*/
23032303
static int zend_jit_hybrid_hot_counter_stub(dasm_State **Dst, uint32_t cost)
23042304
{
2305+
| ENDBR
23052306
| mov r0, EX->func
23062307
| mov r1, aword [r0 + offsetof(zend_op_array, reserved[zend_func_info_rid])]
23072308
| mov r2, aword [r1 + offsetof(zend_jit_op_array_hot_extension, counter)]
@@ -2372,6 +2373,7 @@ static int zend_jit_hybrid_hot_trace_stub(dasm_State **Dst)
23722373

23732374
static int zend_jit_hybrid_trace_counter_stub(dasm_State **Dst, uint32_t cost)
23742375
{
2376+
| ENDBR
23752377
| mov r0, EX->func
23762378
| mov r1, aword [r0 + offsetof(zend_op_array, reserved[zend_func_info_rid])]
23772379
| mov r1, aword [r1 + offsetof(zend_jit_op_array_trace_extension, offset)]
@@ -3059,6 +3061,7 @@ static int zend_jit_align_func(dasm_State **Dst)
30593061

30603062
static int zend_jit_prologue(dasm_State **Dst)
30613063
{
3064+
| nop
30623065
if (zend_jit_vm_kind == ZEND_VM_KIND_HYBRID) {
30633066
| SUB_HYBRID_SPAD
30643067
} else if (GCC_GLOBAL_REGS) {

0 commit comments

Comments
 (0)