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)

task

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:

  • GetProp through the window proxy: {window,globalThis,this}.foo
  • Getter properties. This is fairly common for DOM properties, for example "window" and "performance" are global getters.
Whiteboard: [js-perf-next]

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.

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!
Severity: -- → N/A
Priority: -- → P2
QA Whiteboard: [qa-triage-done-c144/b143]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: