|
[generators] Implement Generator.prototype.return.
Note: This is currently only used by yield*, we still need to support it in
other places (such as for-of loops). It can be used manually of course.
(This CL does not touch the full-codegen implementation of yield* because that
code is already dead. The yield* desugaring already supports return and doesn't
need to be touched.)
BUG= v8:3566
LOG=y
Committed: https://crrev.com/dbd86408134e67551c1e66c3a7484abb628b95f7
Cr-Commit-Position: refs/heads/master@{#33744}
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+415 lines, -37 lines) |
Patch |
|
M |
src/compiler/ast-graph-builder.cc
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
src/full-codegen/arm/full-codegen-arm.cc
|
View
|
1
2
|
3 chunks |
+12 lines, -1 line |
0 comments
|
Download
|
|
M |
src/full-codegen/arm64/full-codegen-arm64.cc
|
View
|
1
2
|
3 chunks |
+12 lines, -1 line |
0 comments
|
Download
|
|
M |
src/full-codegen/full-codegen.h
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
src/full-codegen/full-codegen.cc
|
View
|
1
2
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/full-codegen/ia32/full-codegen-ia32.cc
|
View
|
1
2
|
3 chunks |
+12 lines, -1 line |
0 comments
|
Download
|
|
M |
src/full-codegen/mips/full-codegen-mips.cc
|
View
|
1
2
|
3 chunks |
+12 lines, -1 line |
0 comments
|
Download
|
|
M |
src/full-codegen/mips64/full-codegen-mips64.cc
|
View
|
1
2
|
3 chunks |
+12 lines, -1 line |
0 comments
|
Download
|
|
M |
src/full-codegen/x64/full-codegen-x64.cc
|
View
|
1
2
|
4 chunks |
+14 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/js/generator.js
|
View
|
|
4 chunks |
+28 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/objects.h
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/parsing/parser.cc
|
View
|
1
2
|
6 chunks |
+11 lines, -10 lines |
0 comments
|
Download
|
|
M |
src/runtime/runtime.h
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
src/runtime/runtime-generator.cc
|
View
|
1
|
3 chunks |
+20 lines, -7 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/es6/generators-runtime.js
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
test/mjsunit/harmony/function-sent.js
|
View
|
|
2 chunks |
+18 lines, -4 lines |
0 comments
|
Download
|
|
A |
test/mjsunit/harmony/generators.js
|
View
|
|
1 chunk |
+252 lines, -0 lines |
0 comments
|
Download
|
|
M |
test/test262/test262.status
|
View
|
1
2
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
Total messages: 21 (10 generated)
|