From 6ba9a4fd8f077a3c58d72a784b72bb84168b52b3 Mon Sep 17 00:00:00 2001 From: wxue1 Date: Wed, 31 Aug 2022 06:50:32 -0700 Subject: [PATCH] indirec_call to direct call --- ext/opcache/jit/zend_jit_x86.dasc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/opcache/jit/zend_jit_x86.dasc b/ext/opcache/jit/zend_jit_x86.dasc index 81b5f531621e3..d5df1013c73f8 100644 --- a/ext/opcache/jit/zend_jit_x86.dasc +++ b/ext/opcache/jit/zend_jit_x86.dasc @@ -149,6 +149,7 @@ static size_t tsrm_tls_offset; #endif #define IS_32BIT(addr) (((uintptr_t)(addr)) <= 0x7fffffff) +#define IS_64BIT(addr) (((uintptr_t)(addr)) <= 0x7fffffffffffffff) #define IS_SIGNED_32BIT(val) ((((intptr_t)(val)) <= 0x7fffffff) && (((intptr_t)(val)) >= (-2147483647 - 1))) @@ -353,7 +354,7 @@ static size_t tsrm_tls_offset; |.macro EXT_CALL, func, tmp_reg | .if X64 -|| if (IS_32BIT(dasm_end) && IS_32BIT(func)) { +|| if (IS_64BIT(dasm_end) && IS_64BIT(func)) { | call qword &func || } else { | LOAD_ADDR tmp_reg, func