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

Issue 14348003: Add support for yield expressions (Closed)

Created:
7 years, 8 months ago by wingo
Modified:
7 years, 8 months ago
Base URL:
git://github.com/v8/v8.git@master
Visibility:
Public.

Description

Add support for yield expressions This CL extends the generator suspend and resume implementation to capture values on the operand stack. It factors out some helpers to measure and access the operand stack into the JavaScriptFrame class. It also refactors the suspend and resume helpers to avoid handle allocation. BUG=v8:2355 TEST=mjsunit/harmony/generators-iteration Committed: http://code.google.com/p/v8/source/detail?r=14458

Patch Set 1 #

Patch Set 2 : Rebase on top of https://codereview.chromium.org/14416011/ #

Total comments: 12

Patch Set 3 : Fix formatting; add asserts; don't skip write barrier #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -41 lines) Patch
M src/frames.h View 1 chunk +5 lines, -0 lines 0 comments Download
M src/frames-inl.h View 1 2 1 chunk +27 lines, -0 lines 0 comments Download
M src/runtime.cc View 1 2 4 chunks +49 lines, -41 lines 0 comments Download
M test/mjsunit/harmony/generators-iteration.js View 1 1 chunk +26 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
wingo
An initial patch, building on https://codereview.chromium.org/14066016/. Stack handlers aren't supported yet.
7 years, 8 months ago (2013-04-18 10:00:07 UTC) #1
wingo
Updated patch applies on top of https://codereview.chromium.org/14416011/ (the CL about yield inside with).
7 years, 8 months ago (2013-04-25 10:32:09 UTC) #2
Michael Starzinger
Looking good already. One round of comments should suffice here. https://codereview.chromium.org/14348003/diff/3001/src/frames-inl.h File src/frames-inl.h (right): https://codereview.chromium.org/14348003/diff/3001/src/frames-inl.h#newcode235 ...
7 years, 8 months ago (2013-04-26 09:53:16 UTC) #3
wingo
Updated patch addresses feedback. Good catch with the write barrier issue, thanks! https://codereview.chromium.org/14348003/diff/3001/src/frames-inl.h File src/frames-inl.h ...
7 years, 8 months ago (2013-04-26 10:11:42 UTC) #4
Michael Starzinger
LGTM. I'll land this after the dependent CL made it in.
7 years, 8 months ago (2013-04-26 10:36:42 UTC) #5
Michael Starzinger
7 years, 8 months ago (2013-04-26 12:09:40 UTC) #6
Message was sent while issue was closed.
Committed patchset #3 manually as r14458 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698