From: Dmitry Stogov Date: Wed, 25 Nov 2020 00:49:42 +0000 (+0300) Subject: Use diferent temporary register (%r0 may keep a method address) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cb399d0410e66275fef6e1e9c86cf1b11e790fe3;p=php Use diferent temporary register (%r0 may keep a method address) --- diff --git a/ext/opcache/jit/zend_jit_x86.dasc b/ext/opcache/jit/zend_jit_x86.dasc index e2ee7e6bd2..3ce798ecd2 100644 --- a/ext/opcache/jit/zend_jit_x86.dasc +++ b/ext/opcache/jit/zend_jit_x86.dasc @@ -14196,10 +14196,10 @@ static int zend_jit_load_this(dasm_State **Dst, uint32_t var) { zend_jit_addr var_addr = ZEND_ADDR_MEM_ZVAL(ZREG_FP, var); - | mov r0, aword EX->This.value.ptr - | SET_ZVAL_PTR var_addr, r0 + | mov FCARG1a, aword EX->This.value.ptr + | SET_ZVAL_PTR var_addr, FCARG1a | SET_ZVAL_TYPE_INFO var_addr, IS_OBJECT_EX - | GC_ADDREF r0 + | GC_ADDREF FCARG1a return 1; }