Closed Bug 1799100 Opened 2 years ago Closed 2 years ago

Optimize string concat with null/undefined

Categories

(Core :: JavaScript Engine: JIT, task, P3)

task

Tracking

()

RESOLVED FIXED
108 Branch
Tracking Status
firefox108 --- fixed

People

(Reporter: jandem, Assigned: jandem)

References

(Blocks 1 open bug)

Details

(Whiteboard: [sp3])

Attachments

(2 files)

Speedometer has a bunch of Add operations where one side is a string and the other null or undefined. It's very easy to optimize this in CacheIR.

This is a bit simpler and makes it easier to support additional types in the next patch.

Speedometer 2 has both of these cases.

Depends on D161255

Pushed by jdemooij@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9d052badcbe3 part 1 - Move number/boolean handling into tryAttachStringConcat. r=iain https://hg.mozilla.org/integration/autoland/rev/0831084f0324 part 2 - Optimize string concat with null/undefined in CacheIR. r=iain
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 108 Branch

Edit: commented on wrong bug

Whiteboard: [sp3]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: