gecko-dev/js/xpconnect
Andrew McCreight 90abea1653 Bug 1540301, part 5 - Replace instances of nsXPCWrappedJSClass with nsXPTInterfaceInfo. r=bzbarsky
nsXPCWrappedJSClass now only adds indirections and dynamic
allocations, so eliminate it. The class is kept around as a collection
of static helper functions to avoid needing to move around all of this
code and messing with history. In total, these patches save around 2kb
of dynamic allocations per process.

The major parts of this patch are:
* Dropping indirection for accessing things on nsXPTInterfaceInfo and
  renaming things from class to info.
* Removing the stuff related to instances of nsXPCWrappedJSClass
  existing (ctor, dtor, field, ISupports implementation, getter methods).
* Removing IID2WrappedJSClassMap, because we only need the map from IIDs
  to info.

I dropped the null check in TraverseNative because mInfo is never
cleared, while mClass was.

I dropped the forward declaration of nsXPCWrappedJSClass because no
instances of that class exist, so no function will take or return a
pointer to one.

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

--HG--
extra : moz-landing-system : lando
2019-04-06 12:57:02 +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 5 - Replace instances of nsXPCWrappedJSClass with nsXPTInterfaceInfo. r=bzbarsky 2019-04-06 12:57:02 +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