gecko-dev/js/xpconnect
Andrew McCreight d320f01e48 Bug 1540301, part 2 - Make nsXPCWrappedJSClass::CallMethod() into a static method. r=bzbarsky
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
2019-04-06 12:56:51 +00:00
..
crashtests Bug 1489308 part 5. Align the work we do on document.open with the spec. r=mccr8,smaug 2019-02-27 23:24:48 +00:00
idl Bug 1541677, part 2 - Remove the unused XPIDL version of GetInterfaceInfo. r=bzbarsky 2019-04-04 05:05:04 +00:00
loader Bug 1519636 - clang-format-8: Reformat recent changes to the Google coding style r=Ehsan 2019-04-05 21:41:42 +00:00
public Bug 1521848 - Replace nsTArrayToJSArray with ToJSValue. r=bzbarsky 2019-01-22 18:36:07 +00:00
shell Bug 1512504 - Remove support for MSVC. r=froydnj 2019-02-14 21:45:27 +00:00
src Bug 1540301, part 2 - Make nsXPCWrappedJSClass::CallMethod() into a static method. r=bzbarsky 2019-04-06 12:56:51 +00:00
tests Bug 1538488 - Fix XPConnect/BigInt test when bigint is off r=kmag 2019-03-26 07:17:47 +00:00
wrappers Bug 1541513 part 6. Stop using AutoJSContext in XPCWrappedNativeInfo. r=mccr8 2019-04-04 13:14:40 +00:00
moz.build