Closed
Bug 1859306
Opened 2 years ago
Closed 2 years ago
Optimize calls to EqualStringsHelperPure
Categories
(Core :: JavaScript Engine: JIT, task, P1)
Core
JavaScript Engine: JIT
Tracking
()
RESOLVED
FIXED
120 Branch
| Tracking | Status | |
|---|---|---|
| firefox120 | --- | fixed |
People
(Reporter: jandem, Assigned: anba)
References
(Blocks 2 open bugs)
Details
(Whiteboard: [sp3])
Attachments
(2 files)
This is called a few million times on Speedometer 3, almost always with a non-rope string.
At least in Ion we should be able to do much better. Because we know the JSAtom* we can inline the character comparison for short-ish atoms, similar to what we do with LCompareSInline.
Updated•2 years ago
|
See Also: → https://mozilla-hub.atlassian.net/browse/SP3-604
Updated•2 years ago
|
| Assignee | ||
Comment 1•2 years ago
|
||
Move CompareCharacters into MacroAssembler and split it into three methods:
loadStringCharsForCompare()loads the string characters in preparation for
the comparison.LCompareSInlineandLStringStartsWithInlinedirectly pass
the string characters tocompareStringChars.LStringEndsWithInlinefirst
moves the pointer to the suffix string.compareStringChars()andbranchIfNotStringCharsEquals()perform the actual
comparison. Atom comparison in part 2 will only usebranchIfNotStringCharsEquals().
Updated•2 years ago
|
Assignee: nobody → andrebargull
Status: NEW → ASSIGNED
| Assignee | ||
Comment 2•2 years ago
|
||
Compare short atoms using the new branchIfNotStringCharsEquals() method
from part 1.
Depends on D191268
Pushed by andre.bargull@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/563f37a40f9b
Part 1: Move string character comparison methods into MacroAssembler. r=jandem
https://hg.mozilla.org/integration/autoland/rev/179a0f04f520
Part 2: Compare short atoms using inline assembly. r=jandem
Comment 4•2 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/563f37a40f9b
https://hg.mozilla.org/mozilla-central/rev/179a0f04f520
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
status-firefox120:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 120 Branch
Comment 5•2 years ago
|
||
Some AWFY-SP2 improvements :
You need to log in
before you can comment on or make changes to this bug.
Description
•