Closed Bug 571641 Opened 14 years ago Closed 11 years ago

Avoid OBJ_TO_OUTER_OBJECT in the thisObject hook

Categories

(Core :: XPConnect, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: mrbkap, Assigned: mrbkap)

Details

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).
With wrapping and compartments, I don't think we can do this anymore.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.