gecko-dev/xpcom/components
Andrew McCreight 1d1f9dcdb0 Bug 1438688, part 2 - Load XPT information from a static variable instead of a file. r=njn
This patch removes C++ code related to reading in XPT information from
files. (Code related to packaging XPT files will be removed in the
next patch.) This includes code in the manifest parser, in addition to
the actual code for parsing files.

XPT information is now loaded directly from a single static data
structure, XPTHeader::kHeader, which will be automatically generated
at compile time from .idl files (via .xpt files). Note that the script
to do that is not added until part 6 of this patch series, so linking
will fail on parts 2 through 5.

I inlined XPTInterfaceInfoManager::RegisterXPTHeader into the ctor,
because that is the only caller. It feels like the lock there should
not be needed any more, but I left it alone for now.

The forward declaration of XPTArena in xptiprivate.h is needed because
it was being bootlegged via xpt_xdr.h. Some of the data structures in
reflect/xptinfo/ (which wrap the xpt_struct.h data structures) are
still allocated using XPTArena. Hopefully we can get rid of that in
followup work.

I also deleted a lot of comments in xpt_struct.h that talk about the
on-disk format. I also deleted checking of the major version number,
because that should not matter when the XPT information is baked into
the executable.

MozReview-Commit-ID: 6NJdaCWRBhU

--HG--
extra : rebase_source : 6512a05f2a8bee1e6e6b0423d2cb376d8c34728b
2018-02-28 12:51:39 -08:00
..
GenericFactory.cpp
GenericFactory.h
ManifestParser.cpp Bug 1438688, part 2 - Load XPT information from a static variable instead of a file. r=njn 2018-02-28 12:51:39 -08:00
ManifestParser.h Bug 1444104 - Remove some NUWA related code from the manifest parser. r=froydnj 2018-03-08 13:58:29 -08:00
Module.h Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2018-03-12 13:20:48 +00:00
ModuleLoader.h
ModuleUtils.h Bug 1409249: Require singleton constructors to return explicit already_AddRefed. r=froydnj 2017-10-16 21:08:42 -07:00
moz.build
nsCategoryCache.cpp
nsCategoryCache.h
nsCategoryManager.cpp Bug 1390428 (part 2, attempt 2) - Remove more nsXPIDLCString local variables. r=erahm. 2017-08-21 20:01:27 +10:00
nsCategoryManager.h
nsCategoryManagerUtils.h
nsComponentManager.cpp Bug 1438688, part 2 - Load XPT information from a static variable instead of a file. r=njn 2018-02-28 12:51:39 -08:00
nsComponentManager.h Bug 1438688, part 2 - Load XPT information from a static variable instead of a file. r=njn 2018-02-28 12:51:39 -08:00
nsComponentManagerUtils.cpp
nsComponentManagerUtils.h
nsICategoryManager.idl
nsIClassInfo.idl Bug 1409598 - Change nsIXPCScriptable::className and nsIClassInfo::{contractID,classDescription} from string to AUTF8String. r=froydnj. 2017-10-18 13:17:26 +11:00
nsIComponentManager.idl
nsIComponentRegistrar.idl
nsIFactory.idl
nsIModule.idl
nsIServiceManager.idl Bug 1389848: Make isServiceInstantiated*() return false rather than throw for uninstantiated services. r=ehsan 2017-08-12 16:15:19 -07:00
nsServiceManagerUtils.h