Open Bug 1815498 Opened 2 years ago Updated 2 years ago

Avoid calling the arguments rectifier when the target is known

Categories

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

task

Tracking

()

People

(Reporter: iain, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [sp3])

CallInlinedFunction always calls the same target function. We're already passing in fixedArgc (the number of args provided at the callsite); if we also passed in the number of arguments the target expects, we could push the required undefined values without having to go through the rectifier. (We might still need to keep the rectifier around to handle cases where the total number of arguments is higher than we want to unroll.)

As an extension, there are also some non-inlined call ICs where we have already guarded the target, and could use the same trick.

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