Closed Bug 1824135 Opened 1 year ago Closed 1 year ago

Make ArraySpeciesLookup::tryOptimizeArray more robust when there are extra own properties

Categories

(Core :: JavaScript Engine, task, P2)

task

Tracking

()

RESOLVED FIXED
113 Branch
Tracking Status
firefox113 --- fixed

People

(Reporter: jandem, Assigned: jandem)

References

(Blocks 1 open bug)

Details

(Whiteboard: [sp3])

Attachments

(1 file)

anba noticed this in bug 1822890 comment 1. We can fix this by doing a slightly slower but still faster lookup.

On Speedometer we sometimes end up here with an array that has own properties other
than .length. We can support these cases by checking for an own .constructor
property.

Pushed by jdemooij@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d7484f38148b
Support extra own properties in ArraySpeciesLookup::tryOptimizeArray. r=iain
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 113 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: