Warp: figure out what to do with JSOp::OptimizeSpreadCall
Categories
(Core :: JavaScript Engine: JIT, task, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox82 | --- | fixed |
People
(Reporter: jandem, Assigned: jandem)
References
(Blocks 1 open bug)
Details
Attachments
(4 files)
WarpBuilder always pushes false
now, disabling the optimization. We should fix this somehow, maybe by adding IC support.
Assignee | ||
Comment 1•4 years ago
|
||
André, do you think it makes sense to add an IC for this and optimize it similar to what you did with tryAttachArrayIteratorPrototypeOptimizable
?
Comment 2•4 years ago
|
||
Hmm, I guess that makes sense. I wonder if changing it to an IC will also make it easier to apply this optimisation to more spread patterns, because OptimizeSpreadCall
is currently restricted to the case where the spreaded variable is a rest-argument; for example this case happens in default derived class constructors.
Assignee | ||
Comment 3•4 years ago
|
||
Not doing this can result in control flow in Warp being different from that in Baseline, meaning we need a bailout and recompile. I should probably look into this..
Assignee | ||
Comment 4•4 years ago
|
||
The IC seems to work. It requires a fair number of guards though. This would be the ideal case for watchpoint-based invalidation in the future...
Assignee | ||
Comment 5•4 years ago
|
||
Assignee | ||
Comment 6•4 years ago
|
||
Depends on D89441
Assignee | ||
Comment 7•4 years ago
|
||
Depends on D89442
Assignee | ||
Comment 8•4 years ago
|
||
Depends on D89443
Comment 10•4 years ago
|
||
Backed out 4 changesets (bug 1663404) for Reftest failures in js/src/tests/non262/Array/regress-101964.js. CLOSED TREE
Log:
https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=315601962&repo=autoland&lineNumber=2067
Push with failures:
https://treeherder.mozilla.org/#/jobs?repo=autoland&group_state=expanded&selectedTaskRun=fPJE7hO_S6qYimtaTLO9Pw.0&revision=f957a22b6edf2c63e0fbcecbab2d404dc4dd3756
Backout:
https://hg.mozilla.org/integration/autoland/rev/4a87c0291c66038dc63854fec31afd57df2fd60b
Was backed out by mistake and relaned soon after.
Comment 11•4 years ago
|
||
Comment 12•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/f4e57aaf3c6d
https://hg.mozilla.org/mozilla-central/rev/41467a80e9a5
https://hg.mozilla.org/mozilla-central/rev/7fa0a09e0f5b
https://hg.mozilla.org/mozilla-central/rev/bb43f60ce793
Assignee | ||
Updated•4 years ago
|
Description
•