Closed Bug 1815503 Opened 2 years ago Closed 2 years ago

Optimize away `SetElementMegamorphic` inside for-in loops when possible

Categories

(Core :: JavaScript Engine, task, P2)

task

Tracking

()

RESOLVED FIXED
112 Branch
Tracking Status
firefox112 --- fixed

People

(Reporter: alexical, Assigned: alexical)

References

(Blocks 1 open bug)

Details

(Whiteboard: [sp3])

Attachments

(1 file)

In bug 1799025, Iain optimized away megamorphic hasprop/getelem ops by using information cached on the iterator to just get the slot directly. We should be able to do the same thing for SetElementMegamorphic and SetPropertyCache.

My initial patch for this saw a nice little 2.25% win on React-Redux-TodoMVC and a 1.5% win on React-TodoMVC from this: https://treeherder.mozilla.org/perfherder/comparesubtest?originalProject=try&newProject=try&newRevision=38cb033e4e080a0a3f4cf810ca9a9a6d10503efa&originalSignature=3451139&newSignature=3451139&framework=13&originalRevision=487d5fad0b7e8785ce652405a06084349d875658&page=1&showOnlyComparable=1

Assignee: nobody → dothayer
Status: NEW → ASSIGNED
Severity: -- → S3
Priority: -- → P2
Pushed by dothayer@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6ff2f3fcd5fd Optimize away `SetElementMegamorphic` inside for-in loops when possible r=iain
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 112 Branch
Whiteboard: [sp3]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: