From: Dmitry Stogov Date: Tue, 29 Dec 2020 10:18:56 +0000 (+0300) Subject: Reuse value stored in %r0 instead of immediate operand X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=56fde2a3819debba24f2351b3fc5467284c63a64;p=php Reuse value stored in %r0 instead of immediate operand --- diff --git a/ext/opcache/jit/zend_jit_x86.dasc b/ext/opcache/jit/zend_jit_x86.dasc index 6723cb8f7e..4a3ee2873f 100644 --- a/ext/opcache/jit/zend_jit_x86.dasc +++ b/ext/opcache/jit/zend_jit_x86.dasc @@ -8807,7 +8807,7 @@ static int zend_jit_push_call_frame(dasm_State **Dst, const zend_op *opline, zen #ifdef _WIN32 if (0) { #else - if (func && func->type == ZEND_INTERNAL_FUNCTION) { + if (opline->opcode == ZEND_INIT_FCALL && func && func->type == ZEND_INTERNAL_FUNCTION) { #endif | SET_EX_OPLINE opline, r0 | EXT_CALL zend_jit_int_extend_stack_helper, r0 @@ -8839,7 +8839,7 @@ static int zend_jit_push_call_frame(dasm_State **Dst, const zend_op *opline, zen #ifdef _WIN32 if (0) { #else - if (func && func->type == ZEND_INTERNAL_FUNCTION) { + if (opline->opcode == ZEND_INIT_FCALL && func && func->type == ZEND_INTERNAL_FUNCTION) { #endif | // call->func = func; |1: