-
Notifications
You must be signed in to change notification settings - Fork 7.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow JIT for passing arguments to trampolines and "bad" functions #16365
Conversation
9a403e4
to
171049b
Compare
zend_jit_op_array_trace_extension *jit_extension; | ||
|
||
if (EX(call)->func->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that we need similar changes in zend_jit_trace_record_fake_init_call_ex()
, otherwise this code is mis-compiled when ++$arg
triggers a side trace:
class Test {
public mixed $prop;
function foo($args) {
foreach ($args as $arg) {
$this->bar(++$arg);
}
}
function __call($name, $args) {
}
}
$test = new Test;
$test->foo([1, 1.5, 1.5]);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for catching! I'll fix this.
It may be caused by SEND_UNPACK/SEND_ARRAY
171049b
to
b2cf43a
Compare
No description provided.