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

Issue 2343823002: [parser] Fix tail calls in for in/of loops (Closed)

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

Description

[parser] Fix tail calls in for in/of loops According to the ES6 specification, in "for in/of" loops like: for (var v of [1,2,3]) return f(...); the call to f() should not be considered a tail call. This was not working properly, i.e., the case without declarations: var v; for (v of [1,2,3]) return f(...); R=adamk@chromium.org, ishell@chromium.org BUG= LOG=N Committed: https://crrev.com/d5dcce33bf2140f97055c91aa2dc4e87c7a9d668 Cr-Commit-Position: refs/heads/master@{#39497}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebase #

Patch Set 3 : Better rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -10 lines) Patch
M src/parsing/parser.cc View 1 2 1 chunk +19 lines, -9 lines 0 comments Download
M test/mjsunit/es6/tail-call.js View 3 chunks +46 lines, -1 line 0 comments Download

Messages

Total messages: 33 (18 generated)
nickie
4 years, 3 months ago (2016-09-15 10:38:18 UTC) #1
Igor Sheludko
lgtm, thanks!
4 years, 3 months ago (2016-09-15 11:00:57 UTC) #2
adamk
lgtm % question https://codereview.chromium.org/2343823002/diff/1/test/mjsunit/es6/tail-call.js File test/mjsunit/es6/tail-call.js (right): https://codereview.chromium.org/2343823002/diff/1/test/mjsunit/es6/tail-call.js#newcode298 test/mjsunit/es6/tail-call.js:298: //%DebugPrint(o); Why was this here/why is ...
4 years, 3 months ago (2016-09-15 15:48:53 UTC) #7
nickie
https://codereview.chromium.org/2343823002/diff/1/test/mjsunit/es6/tail-call.js File test/mjsunit/es6/tail-call.js (right): https://codereview.chromium.org/2343823002/diff/1/test/mjsunit/es6/tail-call.js#newcode298 test/mjsunit/es6/tail-call.js:298: //%DebugPrint(o); On 2016/09/15 15:48:53, adamk wrote: > Why was ...
4 years, 3 months ago (2016-09-15 16:01:34 UTC) #8
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/2343823002/1
4 years, 3 months ago (2016-09-16 09:14:20 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: v8_presubmit on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/24241)
4 years, 3 months ago (2016-09-16 09:17:49 UTC) #12
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/2343823002/20001
4 years, 3 months ago (2016-09-16 09:23:19 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_gyp_rel_ng on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_gyp_rel_ng/builds/4407) v8_linux64_gyp_rel_ng_triggered on master.tryserver.v8 (JOB_FAILED, ...
4 years, 3 months ago (2016-09-16 09:36:39 UTC) #17
nickie
This became a bit more complicated after https://codereview.chromium.org/2347633002/ The new test there was the one ...
4 years, 3 months ago (2016-09-16 10:25:10 UTC) #20
adamk
lgtm, though now that I re-read this I'm fuzzy on what the ReturnExprScope has to ...
4 years, 3 months ago (2016-09-16 20:37:14 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/2343823002/40001
4 years, 3 months ago (2016-09-19 08:07:47 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux_chromium_gn_rel on master.tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_chromium_gn_rel/builds/24924)
4 years, 3 months ago (2016-09-19 08:16:17 UTC) #28
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/2343823002/40001
4 years, 3 months ago (2016-09-19 09:25:04 UTC) #30
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-09-19 09:47:30 UTC) #31
commit-bot: I haz the power
4 years, 3 months ago (2016-09-19 09:48:02 UTC) #33
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/d5dcce33bf2140f97055c91aa2dc4e87c7a9d668
Cr-Commit-Position: refs/heads/master@{#39497}

Powered by Google App Engine
This is Rietveld 408576698