Skip to content

Commit cd90655

Browse files
committed
JIT/ARM64: Remove redundand x86 specific optimization for recursive calls
On ARM64 we always load "func" into REG0
1 parent cbe485d commit cd90655

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

ext/opcache/jit/zend_jit_arm64.dasc

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8276,15 +8276,7 @@ static int zend_jit_push_call_frame(dasm_State **Dst, const zend_op *opline, con
82768276
} else {
82778277
if (!is_closure) {
82788278
| // call->func = func;
8279-
if (func
8280-
&& op_array == &func->op_array
8281-
&& (func->op_array.fn_flags & ZEND_ACC_IMMUTABLE)
8282-
&& (sizeof(void*) != 8 || IS_SIGNED_32BIT(func))) {
8283-
| LOAD_ADDR TMP1, func
8284-
| str TMP1, EX:RX->func
8285-
} else {
8286-
| str REG0, EX:RX->func
8287-
}
8279+
| str REG0, EX:RX->func
82888280
} else {
82898281
| // call->func = &closure->func;
82908282
| add REG1, REG0, #offsetof(zend_closure, func)

0 commit comments

Comments
 (0)