Closed Bug 1765358 Opened 3 years ago Closed 3 years ago

Support inline allocation of inlined arguments object

Categories

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

enhancement

Tracking

()

RESOLVED FIXED
102 Branch
Tracking Status
firefox101 --- wontfix
firefox102 --- fixed

People

(Reporter: anba, Assigned: anba)

Details

Attachments

(2 files)

The initial implementation of MCreateInlinedArgumentsObject (bug 1688033) didn't add support for inline allocation, which can sometimes lead to surprising performance differences when compared to non-inlined arguments (LCreateArgumentsObject). When we provide one additional register, which is available even on x86 with profiling enabled, we can add inline allocation support. Adding one additional register also doesn't lead to increased register pressure, because MCreateInlinedArgumentsObject is a call expression, so we have to save all live registers anyway.

The ArgumentsObject for inlined arguments was always allocated through a VM-call,
which made it slower when compared to non-inlined arguments.

The comment about running code is no longer relevant after bug 1277278, see
patch part 1 in bug 1277278.

Depends on D144012

Severity: -- → N/A
Priority: -- → P1

There are some r+ patches which didn't land and no activity in this bug for 2 weeks.
:anba, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit auto_nag documentation.

Flags: needinfo?(iireland)
Flags: needinfo?(andrebargull)
Flags: needinfo?(iireland)
Pushed by andre.bargull@gmail.com: https://hg.mozilla.org/integration/autoland/rev/5881f9f5fb6a Part 1: Inline arguments object allocation for inlined arguments. r=iain https://hg.mozilla.org/integration/autoland/rev/c78a69dfa074 Part 2: Correct a comment for ReportOutOfMemory. r=iain
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 102 Branch
Flags: needinfo?(andrebargull)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: