Closed
Bug 1841620
Opened 11 months ago
Closed 10 months ago
Improve inlined nursery allocation path
Categories
(Core :: JavaScript: GC, enhancement, P3)
Core
JavaScript: GC
Tracking
()
RESOLVED
FIXED
117 Branch
Tracking | Status | |
---|---|---|
firefox117 | --- | fixed |
People
(Reporter: jonco, Assigned: jonco)
References
Details
(Whiteboard: [sp3])
Attachments
(4 files)
This bug is for improvements that follow on from the work in bug 1838629.
Assignee | ||
Comment 1•11 months ago
|
||
This removes two conditional branches per inlined allocation from the generated
code as best I can make out.
Assignee | ||
Comment 2•11 months ago
|
||
We don't need to load the size from an array if we have it available at compile
time, like we do for strings and big ints.
Comment 3•11 months ago
|
||
This is a clear win for wasm-gc struct/array allocations. +1 to land.
Assignee | ||
Comment 4•11 months ago
|
||
Not related to this bug (and doesn't make any difference to the generated
code), but the next patch requires IsObjectAllocKind to be constexpr.
Depends on D182723
Updated•11 months ago
|
Attachment #9342240 -
Attachment description: Bug 1841620 - Part 2: Pass size parameter to AllocNurseryOrTenuredCell where possible r?sfink → Bug 1841620 - Part 3: Avoid loading thing size at runtime where possible r?sfink
Pushed by jcoppeard@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/73e84f16c18d Part 1: Teach the compiler that successful nursery allocation cannot result in a nullptr r=sfink https://hg.mozilla.org/integration/autoland/rev/7eba8591b7e7 Part 2: Make AllocKind functions constexpr where possible r=sfink https://hg.mozilla.org/integration/autoland/rev/53a47bf7757c Part 3: Avoid loading thing size at runtime where possible r=sfink
Comment 6•10 months ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/73e84f16c18d
https://hg.mozilla.org/mozilla-central/rev/7eba8591b7e7
https://hg.mozilla.org/mozilla-central/rev/53a47bf7757c
Status: NEW → RESOLVED
Closed: 10 months ago
status-firefox117:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 117 Branch
Updated•10 months ago
|
Whiteboard: [sp3]
Updated•10 months ago
|
See Also: → https://mozilla-hub.atlassian.net/browse/SP3-438
You need to log in
before you can comment on or make changes to this bug.
Description
•