Closed Bug 1699851 Opened 4 years ago Closed 4 years ago

Avoid allocating for ArrayIteratorNext

Categories

(Core :: JavaScript Engine: JIT, task, P1)

task

Tracking

()

RESOLVED FIXED
89 Branch
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.

We improve by ~40% on a microbenchmark because we can scalar-replace the result object.

Depends on D109165

Pushed by iireland@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/668ca9d231cb Improve scalar replacement of objects r=jandem https://hg.mozilla.org/integration/autoland/rev/b361eb0f908c Inline ArrayIteratorNext r=jandem

Accidentally landed this before landing bug 1697696, which it depends on.

Flags: needinfo?(iireland)
Pushed by iireland@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0b3e2e877f7f Improve scalar replacement of objects r=jandem https://hg.mozilla.org/integration/autoland/rev/ab7497109e62 Inline ArrayIteratorNext r=jandem
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 89 Branch
Status: RESOLVED → REOPENED
Flags: needinfo?(iireland)
Resolution: FIXED → ---
Target Milestone: 89 Branch → ---

Fuzz testcase in bug 1700616.

Flags: needinfo?(iireland)
Pushed by iireland@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0f40ed4144a4 Improve scalar replacement of objects r=jandem https://hg.mozilla.org/integration/autoland/rev/f57a7679f7a1 Inline ArrayIteratorNext r=jandem
Status: REOPENED → RESOLVED
Closed: 4 years ago4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 89 Branch
Blocks: 1801189
Whiteboard: [sp3]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: