Closed
Bug 1982330
Opened 1 year ago
Closed 1 year ago
Use optimization for constant global object properties in more cases
Categories
(Core :: JavaScript Engine: JIT, task, P2)
Core
JavaScript Engine: JIT
Tracking
()
RESOLVED
FIXED
143 Branch
| Tracking | Status | |
|---|---|---|
| firefox143 | --- | fixed |
People
(Reporter: jandem, Assigned: jandem)
References
Details
(Whiteboard: [js-perf-next])
Attachments
(4 files)
Bug 1981133 enabled this optimization for GetName for data properties on the global object. This is the most common case, but there are some other places where we can take advantage of this:
GetPropthrough the window proxy:{window,globalThis,this}.foo- Getter properties. This is fairly common for DOM properties, for example
"window"and"performance"are global getters.
| Assignee | ||
Updated•1 year ago
|
Whiteboard: [js-perf-next]
| Assignee | ||
Comment 1•1 year ago
|
||
| Assignee | ||
Comment 2•1 year ago
|
||
| Assignee | ||
Comment 3•1 year ago
|
||
The constant-property tracking works also for accessor properties. This gets rid
of more shape guards for the global object and global lexical environment, and
that's good because these objects are often reshaped for new properties.
| Assignee | ||
Comment 4•1 year ago
|
||
Updated•1 year ago
|
Attachment #9506371 -
Attachment description: Bug 1982330 part 3 - Optimize constant global getters for GetName. r?iain! → Bug 1982330 part 3 - Optimize constant global getters for Get{G}Name. r?iain!
Pushed by jdemooij@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/82f0811bded0
https://hg.mozilla.org/integration/autoland/rev/71d77bff5137
part 1 - Share more CacheIR generator code for getters and setters. r=iain
https://github.com/mozilla-firefox/firefox/commit/39844f89f05d
https://hg.mozilla.org/integration/autoland/rev/08591fe8c670
part 2 - Optimize constant global data properties for GetProp on the WindowProxy. r=iain
https://github.com/mozilla-firefox/firefox/commit/c74c3d70502e
https://hg.mozilla.org/integration/autoland/rev/6f8c7c672dbd
part 3 - Optimize constant global getters for Get{G}Name. r=iain
https://github.com/mozilla-firefox/firefox/commit/79711968ac86
https://hg.mozilla.org/integration/autoland/rev/7f9343ee3137
part 4 - Optimize constant global getters for GetProp on the WindowProxy. r=iain
Updated•1 year ago
|
Severity: -- → N/A
Priority: -- → P2
Comment 6•1 year ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/71d77bff5137
https://hg.mozilla.org/mozilla-central/rev/08591fe8c670
https://hg.mozilla.org/mozilla-central/rev/6f8c7c672dbd
https://hg.mozilla.org/mozilla-central/rev/7f9343ee3137
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
status-firefox143:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 143 Branch
Updated•1 year ago
|
QA Whiteboard: [qa-triage-done-c144/b143]
You need to log in
before you can comment on or make changes to this bug.
Description
•