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

Issue 1606273002: Implement [Generator].prototype.return. (Closed)

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

Description

Implement [Generator].prototype.return. Note: - for-of does not yet call it. - yield* is not yet properly supported. The planned desugaring of yield* will address this. BUG=v8:3566 LOG=n

Patch Set 1 #

Total comments: 5

Patch Set 2 : Really disable optimization of GeneratorReturn #

Patch Set 3 : Use %_CreateIterResultObject; no longer mark test262 tests as FAIL. #

Patch Set 4 : Fix bug in old code; add more tests #

Total comments: 2

Patch Set 5 : Port changes to other architectures. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+420 lines, -56 lines) Patch
M src/compiler/ast-graph-builder.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M src/full-codegen/arm/full-codegen-arm.cc View 1 2 3 4 5 chunks +16 lines, -4 lines 0 comments Download
M src/full-codegen/arm64/full-codegen-arm64.cc View 1 2 3 4 5 chunks +16 lines, -4 lines 0 comments Download
M src/full-codegen/full-codegen.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/full-codegen/full-codegen.cc View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M src/full-codegen/ia32/full-codegen-ia32.cc View 1 2 3 4 5 chunks +16 lines, -4 lines 0 comments Download
M src/full-codegen/mips/full-codegen-mips.cc View 1 2 3 4 5 chunks +16 lines, -4 lines 0 comments Download
M src/full-codegen/mips64/full-codegen-mips64.cc View 1 2 3 4 5 chunks +16 lines, -4 lines 0 comments Download
M src/full-codegen/x64/full-codegen-x64.cc View 1 2 3 4 6 chunks +18 lines, -6 lines 0 comments Download
M src/js/generator.js View 1 2 3 4 chunks +40 lines, -5 lines 0 comments Download
M src/objects.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/runtime/runtime.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M src/runtime/runtime-generator.cc View 1 3 chunks +18 lines, -5 lines 0 comments Download
M test/mjsunit/es6/generators-runtime.js View 1 chunk +1 line, -1 line 0 comments Download
A test/mjsunit/harmony/generators.js View 1 2 3 1 chunk +252 lines, -0 lines 0 comments Download
M test/test262/test262.status View 1 2 3 4 1 chunk +0 lines, -18 lines 0 comments Download

Messages

Total messages: 21 (8 generated)
neis
On 2016/01/20 16:03:35, neis wrote: > mailto:neis@chromium.org changed reviewers: > + mailto:bmeurer@chromium.org, mailto:jarin@chromium.org, mailto:mstarzinger@chromium.org Hi ...
4 years, 11 months ago (2016-01-20 16:05:41 UTC) #3
adamk
High-level question: are you planning on putting this behind a flag?
4 years, 11 months ago (2016-01-20 21:16:19 UTC) #4
Dan Ehrenberg
I wonder if we might want to implement yield by a desugaring as well, to ...
4 years, 11 months ago (2016-01-20 21:21:18 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1606273002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1606273002/1
4 years, 11 months ago (2016-01-20 23:43:05 UTC) #8
Dan Ehrenberg
Aside from that possible other high-level change (which would require do-expressions and we probably shouldn't ...
4 years, 11 months ago (2016-01-20 23:48:21 UTC) #9
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux64_avx2_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_avx2_rel/builds/8987)
4 years, 11 months ago (2016-01-20 23:58:37 UTC) #11
Benedikt Meurer
https://codereview.chromium.org/1606273002/diff/1/src/full-codegen/x64/full-codegen-x64.cc File src/full-codegen/x64/full-codegen-x64.cc (right): https://codereview.chromium.org/1606273002/diff/1/src/full-codegen/x64/full-codegen-x64.cc#newcode2101 src/full-codegen/x64/full-codegen-x64.cc:2101: __ Push(Smi::FromInt(resume_mode)); // Consumed in continuation. I'd vote for ...
4 years, 11 months ago (2016-01-21 05:09:03 UTC) #12
neis
On 2016/01/20 21:16:19, adamk wrote: > High-level question: are you planning on putting this behind ...
4 years, 11 months ago (2016-01-21 12:02:46 UTC) #14
neis
On 2016/01/20 23:48:21, Dan Ehrenberg wrote: > Aside from that possible other high-level change (which ...
4 years, 11 months ago (2016-01-21 12:07:22 UTC) #15
Jarin
The runtime and full-code changes look good (have not looked at the js files). Happy ...
4 years, 11 months ago (2016-01-22 13:42:48 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1606273002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1606273002/80001
4 years, 11 months ago (2016-01-22 15:26:33 UTC) #18
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-22 16:07:50 UTC) #20
neis
4 years, 10 months ago (2016-01-28 14:22:26 UTC) #21
Closing this CL, it is superseded by https://codereview.chromium.org/1639343005/

Powered by Google App Engine
This is Rietveld 408576698