Optimize constructor calls to bound functions in CacheIR
Categories
(Core :: JavaScript Engine: JIT, task, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox112 | --- | fixed |
People
(Reporter: jandem, Assigned: jandem)
References
(Blocks 1 open bug)
Details
(Whiteboard: [sp3])
Attachments
(3 files)
The new implementation that landed in bug 1483869 doesn't optimize this yet. Constructor calls are not common in Speedometer for example, but this might regress other workloads and this cliff is relatively easy to fix.
Assignee | ||
Comment 1•1 year ago
|
||
We have to guard on the bound function's is-constructor flag, but other than that
it's the same as invoking other construct hooks.
Assignee | ||
Comment 2•1 year ago
|
||
This factors out emitCallScriptedGuards
and CanOptimizeScriptedCall
helper functions
that bound-scripted and unbound-scripted calls can share. Also adds a newTarget
argument to getThisShapeForScripted
to prepare for the next patch.
Depends on D171329
Assignee | ||
Comment 3•1 year ago
|
||
Depends on D171330
Pushed by jdemooij@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2db84bed24d6 part 1 - Support bound constructors in tryAttachCallHook. r=iain https://hg.mozilla.org/integration/autoland/rev/260ee9be2402 part 2 - Refactor scripted call code to allow sharing more of it. r=iain https://hg.mozilla.org/integration/autoland/rev/f04c5bdd5599 part 3 - Optimize bound-scripted constructor calls. r=iain
Comment 5•1 year ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/2db84bed24d6
https://hg.mozilla.org/mozilla-central/rev/260ee9be2402
https://hg.mozilla.org/mozilla-central/rev/f04c5bdd5599
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Description
•