From: Dmitry Stogov Date: Fri, 20 Nov 2020 12:12:30 +0000 (+0300) Subject: Fixed 32-bit JIT X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c8df28d276c25c6f5ad0f1ab2727804b32be8cfe;p=php Fixed 32-bit JIT --- diff --git a/ext/opcache/jit/zend_jit_disasm_x86.c b/ext/opcache/jit/zend_jit_disasm_x86.c index 11335918cb..977e85e1cb 100644 --- a/ext/opcache/jit/zend_jit_disasm_x86.c +++ b/ext/opcache/jit/zend_jit_disasm_x86.c @@ -491,7 +491,7 @@ static int zend_jit_disasm_init(void) REGISTER_HELPER(zend_jit_pre_dec_obj_helper); REGISTER_HELPER(zend_jit_post_inc_obj_helper); REGISTER_HELPER(zend_jit_post_dec_obj_helper); -#if (PHP_VERSION_ID <= 80000) && (SIZEOF_SIZE_T == 4) +#if (PHP_VERSION_ID <= 80100) && (SIZEOF_SIZE_T == 4) REGISTER_HELPER(zval_jit_update_constant_ex); #endif REGISTER_HELPER(zend_jit_free_trampoline_helper); diff --git a/ext/opcache/jit/zend_jit_helpers.c b/ext/opcache/jit/zend_jit_helpers.c index 7c164cd23b..9fd4bddf15 100644 --- a/ext/opcache/jit/zend_jit_helpers.c +++ b/ext/opcache/jit/zend_jit_helpers.c @@ -2639,7 +2639,7 @@ static void ZEND_FASTCALL zend_jit_post_dec_obj_helper(zend_object *zobj, zend_s } } -#if (PHP_VERSION_ID <= 80000) && (SIZEOF_SIZE_T == 4) +#if (PHP_VERSION_ID <= 80100) && (SIZEOF_SIZE_T == 4) static zend_result ZEND_FASTCALL zval_jit_update_constant_ex(zval *p, zend_class_entry *scope) { if (Z_TYPE_P(p) == IS_CONSTANT_AST) { diff --git a/ext/opcache/jit/zend_jit_x86.dasc b/ext/opcache/jit/zend_jit_x86.dasc index 1a590313c7..c979ea060d 100644 --- a/ext/opcache/jit/zend_jit_x86.dasc +++ b/ext/opcache/jit/zend_jit_x86.dasc @@ -12493,7 +12493,7 @@ static int zend_jit_recv_init(dasm_State **Dst, const zend_op *opline, const zen | .if X64 | EXT_CALL zval_update_constant_ex, r0 | .else - ||#if (PHP_VERSION_ID <= 80000) + ||#if (PHP_VERSION_ID < 80100) && (SIZEOF_SIZE_T == 4) | EXT_CALL zval_jit_update_constant_ex, r0 ||#else | EXT_CALL zval_update_constant_ex, r0