gecko-dev/js/xpconnect/wrappers
Boris Zbarsky e6c83d06e3 Bug 1548613. Get rid of FastGetGlobalJSObject. r=mccr8,jonco
Marking GetGlobalJSObject and GetGlobalJSObjectPreserveColor final and inline
on inner/outer windows allows compilers to de-virtualize and inline them, which
makes them just as fast as calling FastGetGlobalJSObject is now (in the case of
GetGlobalJSObjectPreserveColor; GetGlobalJSObject has to do the gray-unmarking,
which is a bit more work).

In WindowDestroyedEvent::Run we want to switch to GetGlobalJSObject(), because
we want to root the object and hence should unmark gray.

In nsGlobalWindowInner::RunTimeoutHandler we likewise want to unmark gray.  The
AutoEntryScript constructor likely did that already, but it's not that
expensive when it doesn't need to do any work.

Differential Revision: https://phabricator.services.mozilla.com/D29711

--HG--
extra : moz-landing-system : lando
2019-05-03 10:08:07 +00:00
..
AccessCheck.cpp Bug 1514049. Remove xpc::GetCompartmentPrincipal. r=bholley 2019-01-30 19:16:12 +00:00
AccessCheck.h Bug 1514049. Remove xpc::GetCompartmentPrincipal. r=bholley 2019-01-30 19:16:12 +00:00
ChromeObjectWrapper.cpp Bug 1511393 - Use c-basic-offset: 2 in Emacs mode line for C/C++ code. r=nbp 2018-12-01 04:52:05 +09:00
ChromeObjectWrapper.h Bug 1511393 - Use c-basic-offset: 2 in Emacs mode line for C/C++ code. r=nbp 2018-12-01 04:52:05 +09:00
FilteringWrapper.cpp Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan 2019-04-12 13:14:25 +00:00
FilteringWrapper.h Bug 1534967 - Part 1: use RootedIdVector. r=jonco 2019-04-08 10:46:53 +08:00
moz.build Bug 1528074 - Remove MSVC warning flags that clang-cl doesn't understand r=chmanchester 2019-03-13 20:19:08 +00:00
WaiveXrayWrapper.cpp Bug 1525674 part 1 - Change the enumerate proxy trap to return the jsid vector instead of an iterator. r=bzbarsky,evilpie 2019-02-08 08:17:00 +00:00
WaiveXrayWrapper.h Bug 1525674 part 1 - Change the enumerate proxy trap to return the jsid vector instead of an iterator. r=bzbarsky,evilpie 2019-02-08 08:17:00 +00:00
WrapperFactory.cpp Bug 1541513 part 6. Stop using AutoJSContext in XPCWrappedNativeInfo. r=mccr8 2019-04-04 13:14:40 +00:00
WrapperFactory.h Bug 1530146 part 1. Switch XrayWaiver to always being same-realm with its target. r=bholley 2019-03-01 02:54:41 +00:00
XrayWrapper.cpp Bug 1548613. Get rid of FastGetGlobalJSObject. r=mccr8,jonco 2019-05-03 10:08:07 +00:00
XrayWrapper.h Bug 1534967 - Part 1: use RootedIdVector. r=jonco 2019-04-08 10:46:53 +08:00