Commit Graph
5 Commits
Author SHA1 Message Date
Nathan Froyd 1fc1d9b4d3 Bug 1393885 - provide a faster path for do_GetWeakReference; r=erahm
NS_GetWeakReference, called from do_GetWeakReference, QI's its argument
to nsISupportsWeakReference to determine whether a weak reference can be
obtained.  If NS_GetWeakReference is already receiving a
nsISupportsWeakReference pointer, or something than can be converted to
one, then we can skip the QI for a small performance win.
2017-09-05 15:39:40 -04:00
Nathan Froyd d9a9c1309a Bug 1390568 - manually de-virtualize do_QueryReferent; r=ehsan
nsQueryReferent is defined as an nsCOMPtr_helper, which implies that
calling its operator() method requires a virtual call.  While
nsQueryReferent is marked `final`, compiler inlining decisions make it
impossible to de-virtualize the call to operator().  However, we have
many other classes returned by do_* functions that nsCOMPtr handles
directly, requiring no extra virtual calls, and we can give
nsQueryReferent the same treatment.
2017-08-24 20:04:31 -04:00
Benjamin Smedberg d1c8ee1d1b Bug 1332631 part B - file moves from xpcom/glue to xpcom/base, r=froydnj
MozReview-Commit-ID: ARS1aTugYjl
2017-01-23 09:24:01 -05:00
[email protected] 07d876f4ed Remove files that have been repo-copied to xpcom/glue.
Bug #120474 r=dougt a=asa
2002-03-22 04:05:09 +00:00
[email protected] b79b6f7185 107630 Removing C++ cruft from nsIWeakReference.idl. Adding nsIWeakReferenceUtils.h. [email protected], [email protected] 2001-10-30 23:18:51 +00:00