From: Dmitry Stogov Date: Thu, 21 May 2020 15:01:44 +0000 (+0300) Subject: simplification X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a9b2ff3ddad425334bd2ff760c5819e0c2073d0e;p=php simplification --- diff --git a/ext/opcache/jit/zend_jit_x86.dasc b/ext/opcache/jit/zend_jit_x86.dasc index f4e8d4811f..1cb6a009dd 100644 --- a/ext/opcache/jit/zend_jit_x86.dasc +++ b/ext/opcache/jit/zend_jit_x86.dasc @@ -2230,16 +2230,15 @@ static int zend_jit_hybrid_hot_counter_stub(dasm_State **Dst, uint32_t cost) | // divide by sizeof(zend_op) | .if X64 || ZEND_ASSERT(sizeof(zend_op) == 32); - | sar r2, 5 + | sar r2, 2 | .else || ZEND_ASSERT(sizeof(zend_op) == 28); - | sar r2, 2 | imul r2, 0xb6db6db7 | .endif | .if X64 - | jmp aword [r1+r2*8+offsetof(zend_jit_op_array_hot_extension, orig_handlers)] + | jmp aword [r1+r2+offsetof(zend_jit_op_array_hot_extension, orig_handlers)] | .else - | jmp aword [r1+r2*4+offsetof(zend_jit_op_array_hot_extension, orig_handlers)] + | jmp aword [r1+r2+offsetof(zend_jit_op_array_hot_extension, orig_handlers)] | .endif return 1; }