Skip to content

Commit a9b2ff3

Browse files
committed
simplification
1 parent 2dfd6cd commit a9b2ff3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

ext/opcache/jit/zend_jit_x86.dasc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2230,16 +2230,15 @@ static int zend_jit_hybrid_hot_counter_stub(dasm_State **Dst, uint32_t cost)
22302230
| // divide by sizeof(zend_op)
22312231
| .if X64
22322232
|| ZEND_ASSERT(sizeof(zend_op) == 32);
2233-
| sar r2, 5
2233+
| sar r2, 2
22342234
| .else
22352235
|| ZEND_ASSERT(sizeof(zend_op) == 28);
2236-
| sar r2, 2
22372236
| imul r2, 0xb6db6db7
22382237
| .endif
22392238
| .if X64
2240-
| jmp aword [r1+r2*8+offsetof(zend_jit_op_array_hot_extension, orig_handlers)]
2239+
| jmp aword [r1+r2+offsetof(zend_jit_op_array_hot_extension, orig_handlers)]
22412240
| .else
2242-
| jmp aword [r1+r2*4+offsetof(zend_jit_op_array_hot_extension, orig_handlers)]
2241+
| jmp aword [r1+r2+offsetof(zend_jit_op_array_hot_extension, orig_handlers)]
22432242
| .endif
22442243
return 1;
22452244
}

0 commit comments

Comments
 (0)