From a9b2ff3ddad425334bd2ff760c5819e0c2073d0e Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Thu, 21 May 2020 18:01:44 +0300 Subject: [PATCH] simplification --- ext/opcache/jit/zend_jit_x86.dasc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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; } -- 2.50.1