|
|
Description[promises] Don't create resolving functions for PromiseCreate
Previously passing in the PromiseNopResolver function to the Promise
constructor would result in creating the resolving functions to be in
passed in to the executor, but the PromiseNopResolver does not use
these resolving functions resulting in wastefully creating these closures.
Instead we pass in the promiseRawSymbol to the promise constructor
so that these unnecessary resolving functions are not created.
BUG=v8:5046
Committed: https://crrev.com/1f89abcb9aca6d598198eb2743533b4775232a83
Cr-Commit-Position: refs/heads/master@{#39791}
Patch Set 1 #Patch Set 2 : wat #
Total comments: 1
Patch Set 3 : remove unnecessary function #Messages
Total messages: 30 (19 generated)
The CQ bit was checked by gsathya@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: v8_linux64_asan_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_asan_rel_ng/buil...) v8_linux64_asan_rel_ng_triggered on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_asan_rel_ng_trig...)
The CQ bit was checked by gsathya@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
gsathya@chromium.org changed reviewers: + adamk@chromium.org, littledan@chromium.org
PTAL
lgtm It would be fun to see performance results about this patch.
Please add more to the CL description. As-is I really don't know what this patch does (or why).
neis@chromium.org changed reviewers: + neis@chromium.org
lgtm
Description was changed from ========== [promises] Don't create resolving functions for PromiseCreate ========== to ========== [promises] Don't create resolving functions for PromiseCreate Previously passing in the PromiseNopResolver function to the Promise constructor would result in creating the resolving functions to be in passed in to the executor, but the PromiseNopResolver does not use these resolving functions resulting in wastefully creating these closures. Instead we pass in the promiseRawSymbol to the promise constructor so that these unnecessary resolving functions are not created. BUG=v8:5046 ==========
On 2016/09/21 22:49:18, adamk wrote: > Please add more to the CL description. As-is I really don't know what this patch > does (or why). Updated CL description.
https://codereview.chromium.org/2353303003/diff/20001/src/js/promise.js File src/js/promise.js (right): https://codereview.chromium.org/2353303003/diff/20001/src/js/promise.js#newco... src/js/promise.js:227: function PromiseNopResolver() {} Can this now be deleted?
The CQ bit was checked by gsathya@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
On 2016/09/27 18:10:10, adamk wrote: > https://codereview.chromium.org/2353303003/diff/20001/src/js/promise.js > File src/js/promise.js (right): > > https://codereview.chromium.org/2353303003/diff/20001/src/js/promise.js#newco... > src/js/promise.js:227: function PromiseNopResolver() {} > Can this now be deleted? Done.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
lgtm
The CQ bit was checked by gsathya@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from neis@chromium.org, littledan@chromium.org Link to the patchset: https://codereview.chromium.org/2353303003/#ps40001 (title: "remove unnecessary function")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== [promises] Don't create resolving functions for PromiseCreate Previously passing in the PromiseNopResolver function to the Promise constructor would result in creating the resolving functions to be in passed in to the executor, but the PromiseNopResolver does not use these resolving functions resulting in wastefully creating these closures. Instead we pass in the promiseRawSymbol to the promise constructor so that these unnecessary resolving functions are not created. BUG=v8:5046 ========== to ========== [promises] Don't create resolving functions for PromiseCreate Previously passing in the PromiseNopResolver function to the Promise constructor would result in creating the resolving functions to be in passed in to the executor, but the PromiseNopResolver does not use these resolving functions resulting in wastefully creating these closures. Instead we pass in the promiseRawSymbol to the promise constructor so that these unnecessary resolving functions are not created. BUG=v8:5046 ==========
Message was sent while issue was closed.
Committed patchset #3 (id:40001)
Message was sent while issue was closed.
Description was changed from ========== [promises] Don't create resolving functions for PromiseCreate Previously passing in the PromiseNopResolver function to the Promise constructor would result in creating the resolving functions to be in passed in to the executor, but the PromiseNopResolver does not use these resolving functions resulting in wastefully creating these closures. Instead we pass in the promiseRawSymbol to the promise constructor so that these unnecessary resolving functions are not created. BUG=v8:5046 ========== to ========== [promises] Don't create resolving functions for PromiseCreate Previously passing in the PromiseNopResolver function to the Promise constructor would result in creating the resolving functions to be in passed in to the executor, but the PromiseNopResolver does not use these resolving functions resulting in wastefully creating these closures. Instead we pass in the promiseRawSymbol to the promise constructor so that these unnecessary resolving functions are not created. BUG=v8:5046 Committed: https://crrev.com/1f89abcb9aca6d598198eb2743533b4775232a83 Cr-Commit-Position: refs/heads/master@{#39791} ==========
Message was sent while issue was closed.
Patchset 3 (id:??) landed as https://crrev.com/1f89abcb9aca6d598198eb2743533b4775232a83 Cr-Commit-Position: refs/heads/master@{#39791} |