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 717123002: Leaving a generator via an exception causes it to close (Closed)

Created:
6 years, 1 month ago by wingo
Modified:
6 years, 1 month ago
CC:
v8-dev, yusukesuzuki
Project:
v8
Visibility:
Public.

Description

Leaving a generator via an exception causes it to close R=rossberg@chromium.org BUG=v8:3096 LOG=Y Committed: https://code.google.com/p/v8/source/detail?r=25297

Patch Set 1 #

Total comments: 2

Patch Set 2 : Update to fix state issue #

Patch Set 3 : Remove state checking from full-codegen and associated runtime functions #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -136 lines) Patch
M src/arm/full-codegen-arm.cc View 1 2 3 chunks +1 line, -30 lines 0 comments Download
M src/arm64/full-codegen-arm64.cc View 1 2 4 chunks +1 line, -31 lines 0 comments Download
M src/generator.js View 1 2 chunks +33 lines, -3 lines 0 comments Download
M src/ia32/full-codegen-ia32.cc View 1 2 3 chunks +1 line, -29 lines 0 comments Download
M src/messages.js View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M src/runtime/runtime.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/runtime/runtime-generator.cc View 1 2 1 chunk +5 lines, -7 lines 0 comments Download
M src/x64/full-codegen-x64.cc View 1 2 3 chunks +1 line, -29 lines 0 comments Download
M test/mjsunit/es6/generators-iteration.js View 1 chunk +1 line, -4 lines 0 comments Download
A test/mjsunit/es6/generators-states.js View 1 1 chunk +67 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (1 generated)
wingo
I looked into doing this in assembly, if there were a faster way, but no. ...
6 years, 1 month ago (2014-11-12 11:53:21 UTC) #1
rossberg
https://codereview.chromium.org/717123002/diff/1/src/generator.js File src/generator.js (right): https://codereview.chromium.org/717123002/diff/1/src/generator.js#newcode40 src/generator.js:40: } catch (e) { Wait, won't this catch the ...
6 years, 1 month ago (2014-11-12 11:56:27 UTC) #2
wingo
https://codereview.chromium.org/717123002/diff/1/src/generator.js File src/generator.js (right): https://codereview.chromium.org/717123002/diff/1/src/generator.js#newcode40 src/generator.js:40: } catch (e) { On 2014/11/12 11:56:27, rossberg wrote: ...
6 years, 1 month ago (2014-11-12 12:03:02 UTC) #3
rossberg
lgtm
6 years, 1 month ago (2014-11-12 12:04:07 UTC) #4
wingo
On 2014/11/12 11:53:21, wingo wrote: > I looked into doing this in assembly, if there ...
6 years, 1 month ago (2014-11-12 12:04:11 UTC) #5
wingo
This patch is incorrect, as it could close a generator that is executing. var g ...
6 years, 1 month ago (2014-11-12 12:08:23 UTC) #6
wingo
Andreas, I added state checks to the JS. I seem to recall some concern that ...
6 years, 1 month ago (2014-11-12 12:54:18 UTC) #7
rossberg
On 2014/11/12 12:54:18, wingo wrote: > Andreas, I added state checks to the JS. I ...
6 years, 1 month ago (2014-11-12 12:59:38 UTC) #8
wingo
On 2014/11/12 12:59:38, rossberg wrote: > On 2014/11/12 12:54:18, wingo wrote: > > I seem ...
6 years, 1 month ago (2014-11-12 13:04:27 UTC) #9
rossberg
On 2014/11/12 13:04:27, wingo wrote: > On 2014/11/12 12:59:38, rossberg wrote: > > On 2014/11/12 ...
6 years, 1 month ago (2014-11-12 13:13:55 UTC) #11
wingo
OK, final version removes the assembly code that checks states, yay. PTAL if you don't ...
6 years, 1 month ago (2014-11-12 13:55:56 UTC) #12
wingo
On 2014/11/12 13:55:56, wingo wrote: > OK, final version removes the assembly code that checks ...
6 years, 1 month ago (2014-11-12 13:56:38 UTC) #13
rossberg
LGTM
6 years, 1 month ago (2014-11-12 14:14:45 UTC) #14
wingo
6 years, 1 month ago (2014-11-12 14:29:13 UTC) #15
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as 25297 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698