Closed Bug 457048 Opened 16 years ago Closed 16 years ago

TM: Always give global object a unique shape id.

Categories

(Core :: JavaScript Engine, defect, P3)

x86
macOS
defect

Tracking

()

RESOLVED INCOMPLETE
mozilla1.9.1

People

(Reporter: gal, Assigned: brendan)

Details

This would help any path where we have to make sure the global object is not aliased. Along most paths we already guard the shape, so we wouldn't have to guard for the alias.
Flags: wanted1.9.1?
Priority: -- → P3
Not sure we need this -- see bug 456810 comment 6.

Giving the global a unique shape when it's set as the global object would regenerate its shape on every property add. This could be ok, but would tend to waste shape ids. Not sure of other downside.

Assigning a unique shape on start of recording would purge the global entries in the property cache, which would hurt performance.

/be
We don't need this without evidence of objects accessed by element ops having the same shape as the global object. Marking INCOMPLETE for want of evidence, reopen if we get some.

/be
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.