[php-src] jit-arm64: Support for ASSIGN_OP

From: Date: Thu, 22 Apr 2021 07:45:10 +0000
Subject: [php-src] jit-arm64: Support for ASSIGN_OP
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-115743@lists.php.net to get a copy of this message
Author: Dmitry Stogov (dstogov) Date: 2021-04-22T10:44:58+03:00 Commit: https://github.com/php/php-src/commit/c95dc24e8d3cbf25655e27e1fafecad74efcdcb6 Raw diff: https://github.com/php/php-src/commit/c95dc24e8d3cbf25655e27e1fafecad74efcdcb6.diff Support for ASSIGN_OP Changed paths: M ext/opcache/jit/zend_jit_arm64.dasc Diff: diff --git a/ext/opcache/jit/zend_jit_arm64.dasc b/ext/opcache/jit/zend_jit_arm64.dasc index 6c31333f6067..bc40aecf5962 100644 --- a/ext/opcache/jit/zend_jit_arm64.dasc +++ b/ext/opcache/jit/zend_jit_arm64.dasc @@ -5213,7 +5213,22 @@ static int zend_jit_assign_op(dasm_State **Dst, const zend_op *opline, uint32_t if (op1_info & MAY_BE_REF) { binary_op_type binary_op = get_binary_op(opline->extended_value); - | NIY // TODO + | LOAD_ZVAL_ADDR FCARG1x, op1_addr + | IF_NOT_Z_TYPE, FCARG1x, IS_REFERENCE, >1, TMP1w + | GET_Z_PTR FCARG1x, FCARG1x + | ldr TMP1, [FCARG1x, #offsetof(zend_reference, sources.ptr)] + | cbnz TMP1, >2 + | add FCARG1x, FCARG1x, #offsetof(zend_reference, val) + |.cold_code + |2: + | LOAD_ZVAL_ADDR FCARG2x, op2_addr + | LOAD_ADDR CARG3, binary_op + | SET_EX_OPLINE opline, REG0 + | EXT_CALL zend_jit_assign_op_to_typed_ref, REG0 + zend_jit_check_exception(Dst); + | b >9 + |.code + |1: op1_addr = ZEND_ADDR_MEM_ZVAL(ZREG_FCARG1x, 0); } @@ -5243,7 +5258,7 @@ static int zend_jit_assign_op(dasm_State **Dst, const zend_op *opline, uint32_t ZEND_UNREACHABLE(); } |9: - return 1; + return result; } static int zend_jit_is_constant_cmp_long_long(const zend_op *opline,

« previous php.cvs (#115743) next »