Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(529)

Issue 2353303003: [promises] Don't create resolving functions for PromiseCreate (Closed)

Created:
4 years, 3 months ago by gsathya
Modified:
4 years, 2 months ago
Reviewers:
neis, Dan Ehrenberg, adamk
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -3 lines) Patch
M src/js/promise.js View 1 2 2 chunks +1 line, -3 lines 0 comments Download

Messages

Total messages: 30 (19 generated)
gsathya
PTAL
4 years, 3 months ago (2016-09-21 22:46:43 UTC) #10
Dan Ehrenberg
lgtm It would be fun to see performance results about this patch.
4 years, 3 months ago (2016-09-21 22:48:53 UTC) #11
adamk
Please add more to the CL description. As-is I really don't know what this patch ...
4 years, 3 months ago (2016-09-21 22:49:18 UTC) #12
neis
lgtm
4 years, 3 months ago (2016-09-23 19:50:44 UTC) #14
gsathya
On 2016/09/21 22:49:18, adamk wrote: > Please add more to the CL description. As-is I ...
4 years, 2 months ago (2016-09-27 15:59:28 UTC) #16
adamk
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#newcode227 src/js/promise.js:227: function PromiseNopResolver() {} Can this now be deleted?
4 years, 2 months ago (2016-09-27 18:10:10 UTC) #17
gsathya
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#newcode227 > ...
4 years, 2 months ago (2016-09-27 18:39:57 UTC) #20
adamk
lgtm
4 years, 2 months ago (2016-09-27 18:43:28 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2353303003/40001
4 years, 2 months ago (2016-09-27 18:43:50 UTC) #26
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-09-27 18:46:11 UTC) #28
commit-bot: I haz the power
4 years, 2 months ago (2016-09-27 18:46:27 UTC) #30
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/1f89abcb9aca6d598198eb2743533b4775232a83
Cr-Commit-Position: refs/heads/master@{#39791}

Powered by Google App Engine
This is Rietveld 408576698