[php-src] jit-arm64: Support for passing extra arguments.

From: Date: Tue, 20 Apr 2021 19:05:38 +0000
Subject: [php-src] jit-arm64: Support for passing extra arguments.
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-115716@lists.php.net to get a copy of this message
Author: Dmitry Stogov (dstogov) Date: 2021-04-20T22:02:10+03:00 Commit: https://github.com/php/php-src/commit/12dcf348a36fc4ffa67a001ebe9f2030ef0cb832 Raw diff: https://github.com/php/php-src/commit/12dcf348a36fc4ffa67a001ebe9f2030ef0cb832.diff Support for passing extra arguments. Fixed ext/opcache/tests/jit/recv_001.phpt 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 911dd0671cf1..2fdb13c1b6cb 100644 --- a/ext/opcache/jit/zend_jit_arm64.dasc +++ b/ext/opcache/jit/zend_jit_arm64.dasc @@ -5923,19 +5923,22 @@ static int zend_jit_push_call_frame(dasm_State **Dst, const zend_op *opline, con |.cold_code |1: if (func) { - | NIY // TODO + | LOAD_32BIT_VAL FCARG1w, used_stack } if (opline->opcode == ZEND_INIT_FCALL && func && func->type == ZEND_INTERNAL_FUNCTION) { - | NIY // TODO + | SET_EX_OPLINE opline, REG0 + | EXT_CALL zend_jit_int_extend_stack_helper, REG0 } else { if (!is_closure) { - | NIY // TODO + | mov FCARG2x, REG0 } else { - | NIY // TODO + | add FCARG2x, REG0, #offsetof(zend_closure, func) } - | NIY // TODO + | SET_EX_OPLINE opline, REG0 + | EXT_CALL zend_jit_extend_stack_helper, REG0 } - | NIY // TODO + | mov RX, RETVALx + | b >1 |.code } } @@ -6857,7 +6860,15 @@ static int zend_jit_do_fcall(dasm_State **Dst, const zend_op *opline, const zend | bgt >1 |.cold_code |1: - | NIY // TODO: test + if (!GCC_GLOBAL_REGS) { + | mov FCARG1x, FP + } + | EXT_CALL zend_jit_copy_extra_args_helper, REG0 + if (!func) { + | ldr REG0, EX->func // reload + } + | ldr REG1, [FP, #offsetof(zend_execute_data, This.u2.num_args)] // reload + | b >1 |.code if (!func || (func->op_array.fn_flags & ZEND_ACC_HAS_TYPE_HINTS) == 0) { if (!func) {

« previous php.cvs (#115716) next »