mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 01:35:35 +00:00
e6c83d06e3
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 |
||
---|---|---|
.. | ||
base | ||
ipc | ||
test |