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

Issue 1634553002: Fix bug where generators got closed prematurely. (Closed)

Created:
4 years, 10 months ago by neis
Modified:
4 years, 10 months ago
CC:
v8-reviews_googlegroups.com, v8-mips-ports_googlegroups.com, v8-x87-ports_googlegroups.com, v8-ppc-ports_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Fix bug where generators got closed prematurely. In a generator function, the parser rewrites a return statement into a "final" yield. A final yield used to close the generator, which was incorrect because the return may occur inside a try-finally clause and so the generator may not yet terminate. BUG= Committed: https://crrev.com/2a0e4225dddc9c39eb2d0cd36d2b7249120c78ab Cr-Commit-Position: refs/heads/master@{#33537}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -71 lines) Patch
M src/full-codegen/arm/full-codegen-arm.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M src/full-codegen/arm64/full-codegen-arm64.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M src/full-codegen/ia32/full-codegen-ia32.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M src/full-codegen/mips/full-codegen-mips.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M src/full-codegen/mips64/full-codegen-mips64.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M src/full-codegen/ppc/full-codegen-ppc.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M src/full-codegen/x64/full-codegen-x64.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M src/full-codegen/x87/full-codegen-x87.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M src/js/generator.js View 2 chunks +2 lines, -12 lines 0 comments Download
M src/parsing/parser.cc View 1 1 chunk +57 lines, -20 lines 0 comments Download
M test/cctest/test-ast-expression-visitor.cc View 5 chunks +7 lines, -6 lines 0 comments Download
M test/mjsunit/es6/generators-states.js View 1 2 chunks +27 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (11 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1634553002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1634553002/1
4 years, 10 months ago (2016-01-25 12:01:33 UTC) #2
neis
PTAL
4 years, 10 months ago (2016-01-25 12:28:43 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-01-25 12:37:45 UTC) #7
Michael Starzinger
LGTM, just nits and suggestions. https://codereview.chromium.org/1634553002/diff/1/src/parsing/parser.cc File src/parsing/parser.cc (right): https://codereview.chromium.org/1634553002/diff/1/src/parsing/parser.cc#newcode4658 src/parsing/parser.cc:4658: // try { InitialYield; ...
4 years, 10 months ago (2016-01-25 12:56:05 UTC) #8
neis
All done.
4 years, 10 months ago (2016-01-25 13:11:48 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1634553002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1634553002/20001
4 years, 10 months ago (2016-01-25 13:11:55 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: v8_presubmit on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/10096)
4 years, 10 months ago (2016-01-25 13:15:36 UTC) #14
neis
On 2016/01/25 13:15:36, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 10 months ago (2016-01-25 13:18:30 UTC) #16
rossberg
lgtm
4 years, 10 months ago (2016-01-26 18:45:10 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1634553002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1634553002/20001
4 years, 10 months ago (2016-01-27 07:53:42 UTC) #19
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 10 months ago (2016-01-27 08:12:35 UTC) #21
commit-bot: I haz the power
4 years, 10 months ago (2016-01-27 08:13:35 UTC) #23
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/2a0e4225dddc9c39eb2d0cd36d2b7249120c78ab
Cr-Commit-Position: refs/heads/master@{#33537}

Powered by Google App Engine
This is Rietveld 408576698