Closed
Bug 1723487
Opened 4 years ago
Closed 4 years ago
Support more number to string conversions in Warp
Categories
(Core :: JavaScript Engine: JIT, enhancement, P1)
Core
JavaScript Engine: JIT
Tracking
()
RESOLVED
FIXED
92 Branch
| Tracking | Status | |
|---|---|---|
| firefox92 | --- | fixed |
People
(Reporter: jonco, Assigned: jonco)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
We currently don't support conversions from ints or doubles to strings via String or new String:
https://searchfox.org/mozilla-central/source/js/src/jit/CacheIR.cpp#5995
https://searchfox.org/mozilla-central/source/js/src/jit/CacheIR.cpp#6021
| Assignee | ||
Comment 1•4 years ago
|
||
| Assignee | ||
Comment 2•4 years ago
|
||
Depends on D121520
| Assignee | ||
Comment 3•4 years ago
|
||
I made a basic mircrobenchmark to test this:
Pre:
String(int): 0.02919189453125 uS/iteration
String(double): 0.105575927734375 uS/iteration
new String(int): 0.0627861328125 uS/iteration
new String(double): 0.145880126953125 uS/iteration
Post:
String(int): 0.001093994140625 uS/iteration
String(double): 0.100301025390625 uS/iteration
new String(int): 0.032107177734375 uS/iteration
new String(double): 0.102762939453125 uS/iteration
String(double) seems unaffected and I don't know why that is, but the others show improvement.
Pushed by jcoppeard@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5e7db0fb300e
Make EmitToStringGaurd into a method on IRGenerator r=jandem
https://hg.mozilla.org/integration/autoland/rev/79b0a5151478
Convert numberic arguments in calls to String and new String r=jandem
Updated•4 years ago
|
Severity: -- → N/A
Priority: -- → P1
Comment 5•4 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/5e7db0fb300e
https://hg.mozilla.org/mozilla-central/rev/79b0a5151478
Status: NEW → RESOLVED
Closed: 4 years ago
status-firefox92:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 92 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•