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

Issue 2487053002: [promises] Remove one runtime call to create_resolving_functions (Closed)

Created:
4 years, 1 month ago by gsathya
Modified:
4 years, 1 month ago
Reviewers:
adamk
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[promises] Remove one runtime call to create_resolving_functions - Creates a new promise-utils.{h, cc} which refactors out the logic to create resolving functions. This is shared between the runtime functions and builtins. - Changes PromiseResolveThenableJobInfo to store the context since we no longer create the resolving functions in JS. - Changes EnqueuPromiseResolveThenableJob to take in the promise and not the callbacks. BUG=v8:5343 Committed: https://crrev.com/ec61e6b4347516658b215df4a2b5385dd5f62a84 Cr-Commit-Position: refs/heads/master@{#40941}

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 20

Patch Set 3 : address comments #

Patch Set 4 : add dcheck #

Unified diffs Side-by-side diffs Delta from patch set Stats (+156 lines, -64 lines) Patch
M BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/builtins/builtins-promise.cc View 1 2 3 3 chunks +14 lines, -43 lines 0 comments Download
M src/factory.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M src/factory.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M src/isolate.cc View 1 1 chunk +2 lines, -3 lines 0 comments Download
M src/js/promise.js View 1 1 chunk +1 line, -6 lines 0 comments Download
M src/objects.h View 1 2 chunks +3 lines, -1 line 0 comments Download
M src/objects-debug.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/objects-inl.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/objects-printer.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
A src/promise-utils.h View 1 2 1 chunk +32 lines, -0 lines 0 comments Download
A src/promise-utils.cc View 1 2 3 1 chunk +73 lines, -0 lines 0 comments Download
M src/runtime/runtime.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/runtime/runtime-promise.cc View 1 2 3 chunks +18 lines, -8 lines 0 comments Download
M src/v8.gyp View 1 1 chunk +2 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 28 (18 generated)
gsathya
4 years, 1 month ago (2016-11-09 00:18:52 UTC) #6
adamk
This looks reasonably nice to me; seems like it'll need a bit of rebasing after ...
4 years, 1 month ago (2016-11-09 00:24:59 UTC) #7
gsathya
On 2016/11/09 00:24:59, adamk wrote: > This looks reasonably nice to me; seems like it'll ...
4 years, 1 month ago (2016-11-10 17:56:32 UTC) #14
adamk
https://codereview.chromium.org/2487053002/diff/20001/src/builtins/builtins-promise.cc File src/builtins/builtins-promise.cc (right): https://codereview.chromium.org/2487053002/diff/20001/src/builtins/builtins-promise.cc#newcode20 src/builtins/builtins-promise.cc:20: PromiseUtils::GetAlreadyVisited(isolate, context); How about making GetAlreadyVisited() return a bool ...
4 years, 1 month ago (2016-11-10 18:10:55 UTC) #15
gsathya
https://codereview.chromium.org/2487053002/diff/20001/src/builtins/builtins-promise.cc File src/builtins/builtins-promise.cc (right): https://codereview.chromium.org/2487053002/diff/20001/src/builtins/builtins-promise.cc#newcode20 src/builtins/builtins-promise.cc:20: PromiseUtils::GetAlreadyVisited(isolate, context); On 2016/11/10 18:10:54, adamk wrote: > How ...
4 years, 1 month ago (2016-11-11 02:34:37 UTC) #18
gsathya
https://codereview.chromium.org/2487053002/diff/20001/src/promise-utils.cc File src/promise-utils.cc (right): https://codereview.chromium.org/2487053002/diff/20001/src/promise-utils.cc#newcode21 src/promise-utils.cc:21: Handle<JSObject> PromiseUtils::GetPromise(Isolate* isolate, On 2016/11/10 18:10:54, adamk wrote: > ...
4 years, 1 month ago (2016-11-11 02:34:38 UTC) #19
adamk
lgtm
4 years, 1 month ago (2016-11-11 19:53:59 UTC) #22
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/2487053002/60001
4 years, 1 month ago (2016-11-11 20:57:08 UTC) #24
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-11-11 20:59:30 UTC) #26
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 22:31:26 UTC) #28
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/ec61e6b4347516658b215df4a2b5385dd5f62a84
Cr-Commit-Position: refs/heads/master@{#40941}

Powered by Google App Engine
This is Rietveld 408576698