Closed Bug 1626907 Opened 5 years ago Closed 5 years ago

InitFromBailout uses a heap GCVector for small vector startFrameFormals

Categories

(Core :: JavaScript Engine: JIT, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
mozilla77
Tracking Status
firefox76 --- wontfix
firefox77 --- fixed

People

(Reporter: decoder, Assigned: decoder)

Details

Attachments

(1 file)

In js/src/jit/BaselineBailouts.cpp the InitFromBailout receives a MutableHandle<GCVector<Value>> startFrameFormals which forces a heap allocation as soon as this vector is used. According to my measurements on tests and in fuzzing, in almost all cases where this vector is actually populated, it remains small (up to 4 elements mostly), so using a StackGCVector is probably more effective here.

Priority: -- → P1
Pushed by choller@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e85c1126616d Use a StackGCVector for startFrameFormals in baseline bailout. r=jandem
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla77
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: