[php-src] jit-arm64: Fixed type checks and return value handling

From: Date: Fri, 23 Apr 2021 15:21:20 +0000
Subject: [php-src] jit-arm64: Fixed type checks and return value handling
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-115794@lists.php.net to get a copy of this message
Author: Dmitry Stogov (dstogov) Date: 2021-04-23T18:20:41+03:00 Commit: https://github.com/php/php-src/commit/86012bc034c30c8e11a6579e67e8dbe59123e15e Raw diff: https://github.com/php/php-src/commit/86012bc034c30c8e11a6579e67e8dbe59123e15e.diff Fixed type checks and return value handling 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 8a142b802674..36be7fc86790 100644 --- a/ext/opcache/jit/zend_jit_arm64.dasc +++ b/ext/opcache/jit/zend_jit_arm64.dasc @@ -5243,6 +5243,7 @@ static int zend_jit_assign_dim(dasm_State **Dst, const zend_op *opline, uint32_t | str Rx(Z_REG(op1_addr)), T1 // save } | EXT_CALL _zend_new_array_0, REG0 + | mov REG0, RETVALx if (Z_REG(op1_addr) != ZREG_FP) { | ldr Rx(Z_REG(op1_addr)), T1 // restore } @@ -9265,7 +9266,8 @@ static int zend_jit_send_var(dasm_State **Dst, const zend_op *opline, const zend if (!exit_addr) { return 0; } - | cmp REG1w, #IS_REFERENCE + | and TMP1w, REG1w, #0xff + | cmp TMP1w, #IS_REFERENCE | NIY // bne &exit_addr } } @@ -9286,7 +9288,8 @@ static int zend_jit_send_var(dasm_State **Dst, const zend_op *opline, const zend | ZVAL_COPY_VALUE arg_addr, MAY_BE_ANY, op1_addr, op1_info, ZREG_REG1, ZREG_REG2, ZREG_TMP1, ZREG_TMP2, ZREG_FPR0 if (op1_info & MAY_BE_REF) { - | cmp REG1w, #IS_REFERENCE + | and TMP1w, REG1w, #0xff + | cmp TMP1w, #IS_REFERENCE | beq >7 } | ldr TMP1w, [REG0, #offsetof(zend_function, quick_arg_flags)]

« previous php.cvs (#115794) next »