Allow weakmap lookup methods to be inlined
Categories
(Core :: JavaScript Engine, enhancement, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox115 | --- | fixed |
People
(Reporter: jonco, Assigned: jonco)
References
(Blocks 1 open bug)
Details
(Whiteboard: [sp3])
Attachments
(5 files)
Currently MovableCellHasher methods are implemented in Barrier.cpp. Apart from this WeakMap lookup methods could be totally inlined. Moving the hasher methods to a header file would allow inlining everything.
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 1•2 years ago
|
||
Using 'stable' in the name is more descriptive. And it's quicker to say and
easier to spell.
Assignee | ||
Comment 2•2 years ago
|
||
There's no need to expose this as generic functionality.
Depends on D177525
Assignee | ||
Comment 3•2 years ago
|
||
This moves the unqiue ID functionality out of Zone and into the new header
files StableCellHasher.h and StableCellHasher-inl.h.
Depends on D177526
Assignee | ||
Comment 4•2 years ago
|
||
Finally we can move these methods to StableCellHasher-inl.h and allow them to
be inlined.
Local testing shows this reduces the time taken by the weakmap benchark from
49.9 to 47.4 ns, a reduction of 5%.
Depends on D177527
Updated•2 years ago
|
Assignee | ||
Comment 5•2 years ago
|
||
To counteract the effect on the instruction cache of inlining all this code we
can move some parts of allocation (which we don't expect to be as hot) out of
line.
Comment 7•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/b1451e959314
https://hg.mozilla.org/mozilla-central/rev/3797a5e30e3d
https://hg.mozilla.org/mozilla-central/rev/bebf205cc1f7
https://hg.mozilla.org/mozilla-central/rev/fa188b523ffc
https://hg.mozilla.org/mozilla-central/rev/a8b602d1067a
https://hg.mozilla.org/mozilla-central/rev/35d2b2ac19da
Updated•2 years ago
|
Updated•2 years ago
|
Description
•