WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
159081
make rest parameters faster
https://bugs.webkit.org/show_bug.cgi?id=159081
Summary
make rest parameters faster
Saam Barati
Reported
2016-06-23 21:09:03 PDT
....
Attachments
Add attachment
proposed patch, testcase, etc.
Filip Pizlo
Comment 1
2016-06-24 10:39:25 PDT
Thought about this more. I like that CopyRest is a node. If only we could make it so that the use of the rest array for forwarding arguments was also a node so that: function foo(a, b, c, ...args) { return bar(b, c, d, ...args); } looked like this: w: CopyRest(...) x: NewArray(b, c, d) y: ConcatArray(@x, @w) z: TailCallVarargs(bar, @y) I'm not sure how we'll compile "...args" in the call to bar(), but I'm pretty sure it'll be more obfuscated than this. If we could get to a point where the DFG saw this, then we could have arguments forwarding turn this into code that never allocated anything.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug