mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-12 14:20:14 +02:00
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 |
||
|---|---|---|
| .. | ||
| AccessCheck.cpp | ||
| AccessCheck.h | ||
| ChromeObjectWrapper.cpp | ||
| ChromeObjectWrapper.h | ||
| FilteringWrapper.cpp | ||
| FilteringWrapper.h | ||
| moz.build | ||
| WaiveXrayWrapper.cpp | ||
| WaiveXrayWrapper.h | ||
| WrapperFactory.cpp | ||
| WrapperFactory.h | ||
| XrayWrapper.cpp | ||
| XrayWrapper.h | ||