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

Issue 13870007: Generators return boxed values (Closed)

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

Description

Generators return boxed values Generators now box their return values in object literals of the form { value: VAL, done: DONE } where DONE is false for yield expressions, and true for return statements. BUG=v8:2355 TEST=mjsunit/harmony/generators-iteration R=mstarzinger@chromium.org Committed: 14563

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Rebase; add needed write barrier #

Total comments: 5

Patch Set 4 : Rename to generator_result_map; more use of named constants #

Total comments: 2

Patch Set 5 : Fix x64 thinko; add result map test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+236 lines, -48 lines) Patch
M src/arm/full-codegen-arm.cc View 1 2 3 3 chunks +54 lines, -15 lines 0 comments Download
M src/bootstrapper.cc View 1 2 3 1 chunk +34 lines, -0 lines 0 comments Download
M src/contexts.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M src/full-codegen.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M src/ia32/full-codegen-ia32.cc View 1 2 3 3 chunks +53 lines, -15 lines 0 comments Download
M src/objects.h View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
M src/x64/full-codegen-x64.cc View 1 2 3 4 3 chunks +55 lines, -15 lines 0 comments Download
M test/mjsunit/harmony/generators-iteration.js View 1 2 3 4 2 chunks +22 lines, -3 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
wingo
The attached patch applies on top of the "Generators can resume" patch, https://codereview.chromium.org/14066016/. The code ...
7 years, 8 months ago (2013-04-17 17:13:04 UTC) #1
wingo
Updated patch applies to master and adds needed write barrier. Tested on ia32, arm, and ...
7 years, 7 months ago (2013-04-29 13:03:55 UTC) #2
Michael Starzinger
Going into the right direction. First round of comments. The comments for ia32 probably apply ...
7 years, 7 months ago (2013-05-06 11:22:32 UTC) #3
wingo
Thanks for the review. Updated patch addresses your comments. I kept a few assertions as ...
7 years, 7 months ago (2013-05-06 14:43:15 UTC) #4
Michael Starzinger
Already looking good. One final comment, then this should be ready to go. https://codereview.chromium.org/13870007/diff/13001/src/bootstrapper.cc File ...
7 years, 7 months ago (2013-05-06 19:26:05 UTC) #5
Michael Starzinger
One more nit. https://codereview.chromium.org/13870007/diff/13001/src/x64/full-codegen-x64.cc File src/x64/full-codegen-x64.cc (right): https://codereview.chromium.org/13870007/diff/13001/src/x64/full-codegen-x64.cc#newcode1943 src/x64/full-codegen-x64.cc:1943: Smi::FromInt(0)); Is there a particular reason ...
7 years, 7 months ago (2013-05-06 19:34:18 UTC) #6
wingo
Thanks for review. Updated patch addresses comments. Cheers :)
7 years, 7 months ago (2013-05-07 07:42:45 UTC) #7
Michael Starzinger
LGTM.
7 years, 7 months ago (2013-05-07 08:05:51 UTC) #8
wingo
7 years, 7 months ago (2013-05-07 08:46:53 UTC) #9
Message was sent while issue was closed.
Committed patchset #5 manually as r14563 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698