gecko-dev/xpcom
Gerald Squelart 25992688b7 Bug 1332825 - Use move semantics in MozPromise::All() and AllPromiseHolder - r=jwwang
MozPromise::All sets up 'Then' lambdas on all sub-promises, each one taking the
resolve/reject object by value.
Since this value will not be used again in the lambda, it is safe to Move it,
and from there MozPromiseHolder::Resolve/Reject can also Move it again into the
holder storage, potentially saving two copies per Resolve/Reject.
Also, once all sub-promises have been resolved, the resolve-values can be
Move'd into the joining promise's Resolve function.

MozReview-Commit-ID: 5oxgNEnE5lq

--HG--
extra : rebase_source : f0542055beb1434e7db384722c5123d888ca00e7
2017-01-21 17:33:49 +11:00
..
base merge mozilla-inbound to mozilla-central a=merge 2017-01-19 16:05:22 +01:00
build Merge m-i to m-c, a=merge 2017-01-21 15:24:42 -08:00
components Bug 1317954 - Replace default bodies of special member functions with = default; in xpcom/. r=froydnj 2016-11-16 14:25:31 +02:00
doc
ds Bug 1329718 - remove nsISupportsVoid and associated machinery; r=erahm 2017-01-10 16:31:48 -05:00
glue Merge m-c to autoland 2017-01-20 19:15:16 -08:00
idl-parser Bug 1329857 - Remove NS_METHOD and NS_CALLBACK. r=froydnj. 2017-01-10 14:08:43 +11:00
io Bug 1332167: Unix major() and minor() return unsigned r=froydnj 2017-01-20 10:38:43 -05:00
libxpt/xptcall
reflect Bug 1306329 - Stop exporting XPCOM and XUL symbols. r=glandium 2016-12-02 12:55:34 -05:00
rust/nsstring Bug 1330824 - Add truncate for nsAString and nsACString. r=mystor 2017-01-14 15:02:14 +09:00
string Bug 1332648 - remove bogus string radix/case #defines; r=erahm 2017-01-20 16:37:35 -05:00
system Backed out changeset eae2252a519f (bug 1321593) for leaks, e.g. in clipboard and jetpack tests. r=backout 2016-12-12 22:10:17 +01:00
tests Bug 503613 - Remove old 'tail =' lines from xpcshell.ini files; r=gps 2017-01-18 10:30:39 +00:00
threads Bug 1332825 - Use move semantics in MozPromise::All() and AllPromiseHolder - r=jwwang 2017-01-21 17:33:49 +11:00
typelib Bug 1317970 - Use manifestparser manifests for python unit tests, r=chmanchester 2016-11-16 09:59:22 -05:00
windbgdlg
xpidl Bug 1293784 - Only recurse into xpcom/idl-parser/xpidl once; r=gps 2016-08-09 16:58:18 -04:00
moz.build Bug 1295762 - Part 1: Implement rust bindings to XPCOM's string types, r=froydnj 2016-09-20 11:26:43 -04:00
xpcom-config.h.in Bug 1326145 - Remove HAVE_CPP_AMBIGUITY_RESOLVING_USING. r=froydnj 2016-12-29 18:05:20 +11:00
xpcom-private.h.in