mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 01:48:05 +00:00
1c2a9c2b07
Currently the [ref] and [ptr] types share the same underlying implementation. This is unfortunate, and can cause correctness problems with outparam refs (as an example). By using the same tools used to allow other larger objects (such as jsid, nsTArray, and nsString) to be stored directly in the nsXPTCVariant object, this patch directly stores the nsID in the nsXPTCVariant object when calling from JS into C++. Using this new strategy avoids an nsID* allocation every time we pass one over XPConnect, and should also allow us to simplify callers. In addition, some special casing is added to xpidl to make it possible to use the nsid reference type objects directly inside of Array<T>, which will allow us to remove `[array] nsIIDPtr` callers. Differential Revision: https://phabricator.services.mozilla.com/D19175 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
xpidl | ||
setup.py |