Closed Bug 1729288 Opened 3 years ago Closed 3 years ago

Optimize and simplify getSlotRange{Unchecked}

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

RESOLVED FIXED
94 Branch
Tracking Status
firefox94 --- fixed

People

(Reporter: jandem, Assigned: jandem)

References

Details

Attachments

(3 files)

getSlotRangeUnchecked is used in some hot paths. We can simplify and optimize this function and its callers.

This code isn't hot so it's simpler to use initSlotUnchecked.

Inline this in fillInAfterSwap because it's such a special use case.

Assignee: nobody → jdemooij
Status: NEW → ASSIGNED
Pushed by jdemooij@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/442649bb62fb
part 1 - Inline initSlots in the caller and simplify it. r=jonco
https://hg.mozilla.org/integration/autoland/rev/d4a02df6ae95
part 2 - Optimize slot initialization during allocation. r=jonco
https://hg.mozilla.org/integration/autoland/rev/dc213fb89bb2
part 3 - Simplify getSlotRange with a lambda function. r=jonco
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 94 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: