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

Issue 2889863002: Allow embedder to set promise internal field count (Closed)

Created:
3 years, 7 months ago by mattloring
Modified:
3 years, 7 months ago
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
v8
Visibility:
Public.

Description

Allow embedder to set promise internal field count Asynchronous context tracking mechanisms in Node.js need to store some state on all promise objects. This change will allow embedders to configure the number of internal fields on promises as is already done for ArrayBuffers. BUG=v8:6435 Review-Url: https://codereview.chromium.org/2889863002 Cr-Commit-Position: refs/heads/master@{#45496} Committed: https://chromium.googlesource.com/v8/v8/+/6803eef1424979ff787aaf4e3b604594f535c384

Patch Set 1 #

Total comments: 1

Patch Set 2 : Initialize external fields for promises constructed through factory #

Total comments: 1

Patch Set 3 : Remove comment #

Patch Set 4 : Initialize external fields in AllocateAndSetJSPromise #

Patch Set 5 : Allow internal field count to be externally configured #

Total comments: 4

Patch Set 6 : Fixes in BUILD.gn #

Patch Set 7 : More BUILD.gn fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -3 lines) Patch
M BUILD.gn View 1 2 3 4 5 6 2 chunks +7 lines, -0 lines 0 comments Download
M gypfiles/features.gypi View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M include/v8.h View 2 chunks +6 lines, -0 lines 0 comments Download
M src/bootstrapper.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M src/builtins/builtins-promise-gen.cc View 1 2 3 2 chunks +8 lines, -0 lines 0 comments Download
M src/factory.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download
M src/objects.h View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (17 generated)
mattloring
3 years, 7 months ago (2017-05-18 16:36:47 UTC) #4
gsathya
I'm not sure of how the embedder fields work (-- if there are any other ...
3 years, 7 months ago (2017-05-18 16:48:33 UTC) #5
jochen (gone - plz use gerrit)
yeah, that looks about right Sathya, Factory::NewJSPromise just calls the constructor function, so it should ...
3 years, 7 months ago (2017-05-18 20:38:33 UTC) #7
gsathya
On 2017/05/18 20:38:33, jochen wrote: > yeah, that looks about right > > Sathya, Factory::NewJSPromise ...
3 years, 7 months ago (2017-05-19 03:20:27 UTC) #8
mattloring
On 2017/05/19 03:20:27, gsathya wrote: > On 2017/05/18 20:38:33, jochen wrote: > > yeah, that ...
3 years, 7 months ago (2017-05-19 17:57:58 UTC) #9
jochen (gone - plz use gerrit)
for array buffers we invoke this from factory: https://cs.chromium.org/chromium/src/v8/src/objects.cc?rcl=fbbc12b378aee6c0bd964603a6d76c5134c3c749&l=19640
3 years, 7 months ago (2017-05-22 11:57:04 UTC) #10
mattloring
On 2017/05/22 11:57:04, jochen wrote: > for array buffers we invoke this from factory: > ...
3 years, 7 months ago (2017-05-22 17:43:30 UTC) #11
mattloring
On 2017/05/22 17:43:30, mattloring wrote: > On 2017/05/22 11:57:04, jochen wrote: > > for array ...
3 years, 7 months ago (2017-05-22 18:32:49 UTC) #12
gsathya
lgtm please wait for lgtm from jochen as well https://codereview.chromium.org/2889863002/diff/20001/src/builtins/builtins-promise-gen.cc File src/builtins/builtins-promise-gen.cc (right): https://codereview.chromium.org/2889863002/diff/20001/src/builtins/builtins-promise-gen.cc#newcode59 src/builtins/builtins-promise-gen.cc:59: ...
3 years, 7 months ago (2017-05-22 18:38:33 UTC) #13
mattloring
On 2017/05/22 18:38:33, gsathya wrote: > lgtm > > please wait for lgtm from jochen ...
3 years, 7 months ago (2017-05-22 19:10:49 UTC) #14
jochen (gone - plz use gerrit)
lgtm with build.gn changes done https://codereview.chromium.org/2889863002/diff/70001/BUILD.gn File BUILD.gn (right): https://codereview.chromium.org/2889863002/diff/70001/BUILD.gn#newcode49 BUILD.gn:49: v8_promise_internal_field_count = "" that ...
3 years, 7 months ago (2017-05-23 11:19:50 UTC) #15
mattloring
https://codereview.chromium.org/2889863002/diff/70001/BUILD.gn File BUILD.gn (right): https://codereview.chromium.org/2889863002/diff/70001/BUILD.gn#newcode49 BUILD.gn:49: v8_promise_internal_field_count = "" On 2017/05/23 11:19:49, jochen wrote: > ...
3 years, 7 months ago (2017-05-23 16:54:43 UTC) #17
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/2889863002/110001
3 years, 7 months ago (2017-05-23 17:52:47 UTC) #28
commit-bot: I haz the power
3 years, 7 months ago (2017-05-23 17:54:21 UTC) #31
Message was sent while issue was closed.
Committed patchset #7 (id:110001) as
https://chromium.googlesource.com/v8/v8/+/6803eef1424979ff787aaf4e3b604594f53...

Powered by Google App Engine
This is Rietveld 408576698