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

Issue 2051423003: [interpreter] support async functions in Ignition (Closed)

Created:
4 years, 6 months ago by caitp (gmail)
Modified:
4 years, 6 months ago
CC:
oth, rmcilroy, v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[interpreter] support async functions in Ignition BUG=v8:4483, v8:4907, 618603 LOG=N R=neis@chromium.org, yangguo@chromium.org, littledan@chromium.org Committed: https://crrev.com/1a3086623930e5216c02a3ea2c94682f69b58d41 Cr-Commit-Position: refs/heads/master@{#36938}

Patch Set 1 #

Patch Set 2 : Revert adding flag to debugger tests, they aren't ready #

Patch Set 3 : disable --ignition-generators in some tests #

Patch Set 4 : georg's requests #

Patch Set 5 : rebase / remove pointless edit to debugger test #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -3 lines) Patch
M src/globals.h View 1 chunk +4 lines, -0 lines 2 comments Download
M src/interpreter/bytecode-generator.cc View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
A test/mjsunit/harmony/regress/regress-618603.js View 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (13 generated)
caitp (gmail)
PTAL Fix for fuzz failure + enable --ignition-generators on some of the async function tests
4 years, 6 months ago (2016-06-10 16:33:10 UTC) #4
Dan Ehrenberg
Thanks for the quick fix. I think --ignition-generators will soon be on by default (i.e., ...
4 years, 6 months ago (2016-06-10 17:07:17 UTC) #5
caitp (gmail)
On 2016/06/10 17:07:17, Dan Ehrenberg wrote: > Thanks for the quick fix. I think --ignition-generators ...
4 years, 6 months ago (2016-06-10 17:13:31 UTC) #6
Dan Ehrenberg
On 2016/06/10 at 17:13:31, caitpotter88 wrote: > On 2016/06/10 17:07:17, Dan Ehrenberg wrote: > > ...
4 years, 6 months ago (2016-06-10 17:17:08 UTC) #7
Dan Ehrenberg
Seems good to me (but we should make sure to remove this once the bug ...
4 years, 6 months ago (2016-06-10 17:41:14 UTC) #10
Dan Ehrenberg
lgtm
4 years, 6 months ago (2016-06-10 17:41:37 UTC) #11
caitp (gmail)
On 2016/06/10 17:41:14, Dan Ehrenberg wrote: > Seems good to me (but we should make ...
4 years, 6 months ago (2016-06-10 17:59:48 UTC) #12
caitp (gmail)
On 2016/06/10 17:41:14, Dan Ehrenberg wrote: > Seems good to me (but we should make ...
4 years, 6 months ago (2016-06-10 19:51:46 UTC) #13
Dan Ehrenberg
On 2016/06/10 at 19:51:46, caitpotter88 wrote: > On 2016/06/10 17:41:14, Dan Ehrenberg wrote: > > ...
4 years, 6 months ago (2016-06-10 21:06:31 UTC) #14
neis
On 2016/06/10 17:13:31, caitp wrote: > On 2016/06/10 17:07:17, Dan Ehrenberg wrote: > > Thanks ...
4 years, 6 months ago (2016-06-13 08:35:15 UTC) #15
neis
On 2016/06/13 08:35:15, neis wrote: > On 2016/06/10 17:13:31, caitp wrote: > > On 2016/06/10 ...
4 years, 6 months ago (2016-06-13 09:02:36 UTC) #16
Yang
On 2016/06/13 09:02:36, neis wrote: > On 2016/06/13 08:35:15, neis wrote: > > On 2016/06/10 ...
4 years, 6 months ago (2016-06-13 11:12:01 UTC) #17
caitp (gmail)
On 2016/06/13 08:35:15, neis wrote: > On 2016/06/10 17:13:31, caitp wrote: > > On 2016/06/10 ...
4 years, 6 months ago (2016-06-13 11:35:34 UTC) #18
caitp (gmail)
On 2016/06/10 21:06:31, Dan Ehrenberg wrote: > On 2016/06/10 at 19:51:46, caitpotter88 wrote: > > ...
4 years, 6 months ago (2016-06-13 11:51:43 UTC) #19
caitp (gmail)
+more src/interpreter OWNERs
4 years, 6 months ago (2016-06-13 14:15:56 UTC) #22
caitp (gmail)
+more src/interpreter OWNERs
4 years, 6 months ago (2016-06-13 14:15:57 UTC) #23
Benedikt Meurer
LGTM with comment. https://codereview.chromium.org/2051423003/diff/100001/src/globals.h File src/globals.h (right): https://codereview.chromium.org/2051423003/diff/100001/src/globals.h#newcode1028 src/globals.h:1028: return IsGeneratorFunction(kind) || IsAsyncFunction(kind); I'm really ...
4 years, 6 months ago (2016-06-13 17:13:47 UTC) #25
caitp (gmail)
https://codereview.chromium.org/2051423003/diff/100001/src/globals.h File src/globals.h (right): https://codereview.chromium.org/2051423003/diff/100001/src/globals.h#newcode1028 src/globals.h:1028: return IsGeneratorFunction(kind) || IsAsyncFunction(kind); On 2016/06/13 17:13:47, Benedikt Meurer ...
4 years, 6 months ago (2016-06-13 17:17:32 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2051423003/100001
4 years, 6 months ago (2016-06-13 17:17:53 UTC) #29
commit-bot: I haz the power
Committed patchset #5 (id:100001)
4 years, 6 months ago (2016-06-13 17:19:57 UTC) #31
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/1a3086623930e5216c02a3ea2c94682f69b58d41 Cr-Commit-Position: refs/heads/master@{#36938}
4 years, 6 months ago (2016-06-13 17:21:30 UTC) #33
Dan Ehrenberg
4 years, 6 months ago (2016-06-13 18:07:32 UTC) #34
Message was sent while issue was closed.
On 2016/06/13 at 17:13:47, bmeurer wrote:
> LGTM with comment.
> 
> https://codereview.chromium.org/2051423003/diff/100001/src/globals.h
> File src/globals.h (right):
> 
>
https://codereview.chromium.org/2051423003/diff/100001/src/globals.h#newcode1028
> src/globals.h:1028: return IsGeneratorFunction(kind) || IsAsyncFunction(kind);
> I'm really not sure this helper function adds to the overall readability, as
that is yet another term to remember. I'd prefer to have just
IsGeneratorFunction(kind)||IsAsyncFunction(kind) whenever something applies to
both, that makes it immediately obvious that the particular code applies to both
generators and async functions w/o having to lookup what a "resumable function"
might be. Plus it makes it easier to spot code related to async function by just
grepping for AsyncFunction.
> 
> But I see that this "resumable" predicate is already being used in other
places. So fine for this CL, but maybe we can have a cleanup CL afterwards to
remove the "resumable" terminology and explicitly say "generator" and "async
function" instead?

Most cases where the code base needs to do something like this, it needs to
check whether something is implemented using a generator, rather than whether it
surfaces as a generator. I like having a single term to unify this concept.
(Personally, I'd be fine with "generator", and use something like "generator
function" for the more specific case, but "resumable" also works.) We currently
have only generators and async functions, but in the future we may have async
generators, which are neither ordinary generators nor ordinary async functions,
and it will start to become unwieldy to include all three.

Powered by Google App Engine
This is Rietveld 408576698