Skip to content

Commit bb9e3dd

Browse files
committed
Use different temporary register
1 parent d9227a1 commit bb9e3dd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ext/opcache/jit/zend_jit_x86.dasc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3226,7 +3226,8 @@ static int zend_jit_trace_handler(dasm_State **Dst, const zend_op_array *op_arra
32263226
}
32273227
| EXT_CALL handler, r0
32283228
if (may_throw) {
3229-
zend_jit_check_exception(Dst);
3229+
| MEM_OP2_1_ZTS cmp, aword, executor_globals, exception, 0, r1
3230+
| jne ->exception_handler
32303231
}
32313232

32323233
while (trace->op != ZEND_JIT_TRACE_VM && trace->op != ZEND_JIT_TRACE_END) {
@@ -3241,7 +3242,7 @@ static int zend_jit_trace_handler(dasm_State **Dst, const zend_op_array *op_arra
32413242
opline->opcode == ZEND_DO_FCALL_BY_NAME ||
32423243
opline->opcode == ZEND_DO_FCALL ||
32433244
opline->opcode == ZEND_GENERATOR_CREATE) {
3244-
| MEM_OP2_2_ZTS mov, FP, aword, executor_globals, current_execute_data, r0
3245+
| MEM_OP2_2_ZTS mov, FP, aword, executor_globals, current_execute_data, r1
32453246
}
32463247
}
32473248

0 commit comments

Comments
 (0)