Avoid allocating for ArrayIteratorNext
Categories
(Core :: JavaScript Engine: JIT, task, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox89 | --- | fixed |
People
(Reporter: iain, Assigned: iain)
References
(Blocks 1 open bug)
Details
(Whiteboard: [sp3])
Attachments
(2 files)
After the branch pruning changes in bug 1697696 land, the remaining obstacles to inlining ArrayIteratorNext
and doing scalar replacement on the result object are easy to fix.
On a microbenchmark, for (x of someArray) { sum += x; }
is ~40% faster.
Assignee | ||
Comment 1•4 years ago
|
||
Assignee | ||
Comment 2•4 years ago
|
||
We improve by ~40% on a microbenchmark because we can scalar-replace the result object.
Depends on D109165
Comment 4•4 years ago
|
||
Backed out for causing build bustages.
Backout link: https://hg.mozilla.org/integration/autoland/rev/b7b4a1439a2a70bb27779ff57b919e8c77cd89ff
Failure log: https://treeherder.mozilla.org/logviewer?job_id=334183599&repo=autoland&lineNumber=41145
https://treeherder.mozilla.org/logviewer?job_id=334187080&repo=autoland&lineNumber=12166
Assignee | ||
Comment 5•4 years ago
|
||
Accidentally landed this before landing bug 1697696, which it depends on.
Comment 7•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/0b3e2e877f7f
https://hg.mozilla.org/mozilla-central/rev/ab7497109e62
Comment 8•4 years ago
|
||
Backed out for causing Bug 1700614
backout: https://hg.mozilla.org/mozilla-central/rev/79e3635f5be101d7e5e710b41e83d6011d4e7735
Comment 10•4 years ago
|
||
Comment 11•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/0f40ed4144a4
https://hg.mozilla.org/mozilla-central/rev/f57a7679f7a1
Updated•2 years ago
|
Updated•2 years ago
|
Description
•