@@ -2447,25 +2447,22 @@ static int zend_jit_trace_exit_stub(dasm_State **Dst)
2447
2447
| ldr REG0, EX->func
2448
2448
| ldr REG0, [REG0, #offsetof(zend_op_array, reserved[zend_func_info_rid])]
2449
2449
| ldr REG0, [REG0, #offsetof(zend_jit_op_array_trace_extension, offset)]
2450
- | add REG0, IP, REG0
2451
- | ldr REG0, [REG0]
2450
+ | ldr REG0, [IP, REG0]
2452
2451
| br REG0
2453
2452
} else if (GCC_GLOBAL_REGS) {
2454
2453
| ldp x29, x30, [sp], # SPAD // stack alignment
2455
2454
| ldr REG0, EX->func
2456
2455
| ldr REG0, [REG0, #offsetof(zend_op_array, reserved[zend_func_info_rid])]
2457
2456
| ldr REG0, [REG0, #offsetof(zend_jit_op_array_trace_extension, offset)]
2458
- | add REG0, IP, REG0
2459
- | ldr REG0, [REG0]
2457
+ | ldr REG0, [IP, REG0]
2460
2458
| br REG0
2461
2459
} else {
2462
2460
| ldr IP, EX->opline
2463
2461
| mov FCARG1x, FP
2464
2462
| ldr REG0, EX->func
2465
2463
| ldr REG0, [REG0, #offsetof(zend_op_array, reserved[zend_func_info_rid])]
2466
2464
| ldr REG0, [REG0, #offsetof(zend_jit_op_array_trace_extension, offset)]
2467
- | add REG0, IP, REG0
2468
- | ldr REG0, [REG0]
2465
+ | ldr REG0, [IP, REG0]
2469
2466
| blr REG0
2470
2467
|
2471
2468
| tst RETVALw, RETVALw
@@ -3115,8 +3112,7 @@ static int zend_jit_trace_return(dasm_State **Dst, bool original_handler)
3115
3112
| ldr REG0, EX->func
3116
3113
| ldr REG0, [REG0, #offsetof(zend_op_array, reserved[zend_func_info_rid])]
3117
3114
| ldr REG0, [REG0, #offsetof(zend_jit_op_array_trace_extension, offset)]
3118
- | add REG0, IP, REG0
3119
- | ldr REG0, [REG0]
3115
+ | ldr REG0, [IP, REG0]
3120
3116
| br REG0
3121
3117
}
3122
3118
} else if (GCC_GLOBAL_REGS) {
@@ -3127,8 +3123,7 @@ static int zend_jit_trace_return(dasm_State **Dst, bool original_handler)
3127
3123
| ldr REG0, EX->func
3128
3124
| ldr REG0, [REG0, #offsetof(zend_op_array, reserved[zend_func_info_rid])]
3129
3125
| ldr REG0, [REG0, #offsetof(zend_jit_op_array_trace_extension, offset)]
3130
- | add REG0, IP, REG0
3131
- | ldr REG0, [REG0]
3126
+ | ldr REG0, [IP, REG0]
3132
3127
| br REG0
3133
3128
}
3134
3129
} else {
@@ -3137,8 +3132,7 @@ static int zend_jit_trace_return(dasm_State **Dst, bool original_handler)
3137
3132
| ldr REG0, EX->func
3138
3133
| ldr REG0, [REG0, #offsetof(zend_op_array, reserved[zend_func_info_rid])]
3139
3134
| ldr REG0, [REG0, #offsetof(zend_jit_op_array_trace_extension, offset)]
3140
- | add REG0, IP, REG0
3141
- | ldr REG0, [REG0]
3135
+ | ldr REG0, [IP, REG0]
3142
3136
| blr REG0
3143
3137
}
3144
3138
| ldp FP, RX, T2 // retore FP and IP
0 commit comments