Avoid OBJ_TO_OUTER_OBJECT in the thisObject hook

RESOLVED INVALID

Status

()

Core
XPConnect
RESOLVED INVALID
8 years ago
5 years ago

People

(Reporter: mrbkap, Assigned: mrbkap)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Assignee)

Description

8 years ago
By caching the right XOW for the outer window in the inner window's XPCNativeWrapper (right now, we waste a word there), we won't have to explicitly outerize, which should give some speedup. Note that the XOW we hand back for the inner window is constant for the lifetime of the inner window, so we only need to invalidate this cache when the XOW itself dies, not on window navigation.

On testcases that bang heavily on 'this' on the global object, I think this might save ~2% (maybe more once the patch for bug 570662 lands).
(Assignee)

Comment 1

5 years ago
With wrapping and compartments, I don't think we can do this anymore.
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.