mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 18:26:15 +00:00
d320f01e48
The first idea here is that |this| is actually the GetClass() of the |wrapper| argument (the one call site looks like "GetClass()->CallMethod(this, ...)"), so we can locally reconstruct it when CallMethod is a static method. The second idea here is that the only real use of the nsXPCWrappedJSClass is to grab some data from the nsXPTInterfaceInfo in a few places. This means that we can take a pointer to the info early on in the function and use that rather than go through the nsXPCWrappedJSClass. This in turn means that because the info is statically allocated we no longer need to do a kungFuDeathGrip on the wrapper's nsXPCWrappedJSClass. Differential Revision: https://phabricator.services.mozilla.com/D26215 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
crashtests | ||
idl | ||
loader | ||
public | ||
shell | ||
src | ||
tests | ||
wrappers | ||
moz.build |