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

Issue 2278413003: Disallow tail calls from async functions and generators (Closed)

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

Description

Disallow tail calls from async functions and generators Tail calls don't make sense from async functions and generators, as each activation of these functions needs to make a new, distnict, non-reused generator object. These tail calls are not required per spec. This patch disables both syntactic and implicit tail calls in async functions and generators. R=neis BUG=v8:5301, chromium:639270 Committed: https://crrev.com/5af4cd984067f4e316aea04ef381a00724b5a8bf Cr-Commit-Position: refs/heads/master@{#38986}

Patch Set 1 #

Patch Set 2 : Change ordering of checks to make existing test pass #

Patch Set 3 : Fix test #

Patch Set 4 : Fix more tests #

Patch Set 5 : Adding test suggested by neis #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -17 lines) Patch
M src/parsing/parser.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/parsing/parser-base.h View 1 2 chunks +7 lines, -0 lines 0 comments Download
A + test/message/syntactic-tail-call-generator.js View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
A test/message/syntactic-tail-call-generator.out View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M test/mjsunit/es8/syntactic-tail-call-parsing.js View 1 2 3 4 4 chunks +8 lines, -3 lines 0 comments Download
A + test/mjsunit/regress/regress-639270.js View 1 chunk +7 lines, -11 lines 0 comments Download

Messages

Total messages: 26 (19 generated)
Dan Ehrenberg
4 years, 3 months ago (2016-08-26 22:13:22 UTC) #2
neis
Thanks! lgtm if i understand correctly that we don't need to change ParseArrowFunctionLiteral in parser-base.h ...
4 years, 3 months ago (2016-08-29 08:24:47 UTC) #18
neis
On 2016/08/29 08:24:47, neis wrote: > Thanks! lgtm if i understand correctly that we don't ...
4 years, 3 months ago (2016-08-29 08:25:36 UTC) #19
Dan Ehrenberg
Added the suggested test.
4 years, 3 months ago (2016-08-29 18:07:31 UTC) #21
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/2278413003/80001
4 years, 3 months ago (2016-08-29 18:07:40 UTC) #23
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 3 months ago (2016-08-29 18:31:21 UTC) #24
commit-bot: I haz the power
4 years, 3 months ago (2016-08-29 18:31:50 UTC) #26
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/5af4cd984067f4e316aea04ef381a00724b5a8bf
Cr-Commit-Position: refs/heads/master@{#38986}

Powered by Google App Engine
This is Rietveld 408576698