Optimize CacheIR for missing properties on DOM proxies
Categories
(Core :: JavaScript Engine: JIT, task, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox124 | --- | fixed |
People
(Reporter: jandem, Assigned: jandem)
References
(Blocks 1 open bug)
Details
(Whiteboard: [sp3])
Attachments
(3 files)
In GetPropIRGenerator::tryAttachDOMProxyUnshadowed
we currently emit a proxy-get call for missing properties, but we can emit some shape guards for the proto chain and then return undefined
.
I'm not sure if this will be sufficient for the polymorphic case in that bug, but this stub does hit at least 30,000 times on Speedometer 3 so this seems worth optimizing as a first step.
Assignee | ||
Comment 1•1 year ago
|
||
Assignee | ||
Comment 2•1 year ago
|
||
We were optimizing this when we found the property on the proto chain, but
if the property was missing we were emitting a slow VM call. We can optimize
this in a similar way.
Depends on D192955
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Comment 3•1 year ago
|
||
There are some r+ patches which didn't land and no activity in this bug for 2 weeks.
:jandem, 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 BugBot documentation.
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Comment 4•1 year ago
|
||
The test_private_field_dom.html
test was failing with the previous patch, because
we were incorrectly optimizing a private field access as a missing-property.
Depends on D192956
Comment 6•1 year ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/096d5dd557c0
https://hg.mozilla.org/mozilla-central/rev/2d3e18108992
https://hg.mozilla.org/mozilla-central/rev/07d3face1a12
Comment 7•1 year ago
|
||
High probability that this bug (or low probability bug 1843499) led to these improvements:
33% on splay-Worst
9% improvement on AWFY-Jetstream2-splay-Average
Description
•