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

Issue 2253033002: [interpreter] Don't assume generator functions do an initial yield. (Closed)

Created:
4 years, 4 months ago by neis
Modified:
4 years, 4 months ago
Reviewers:
Dan Ehrenberg, rmcilroy
CC:
oth, rmcilroy, 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

[interpreter] Don't assume generator functions do an initial yield. Async functions are implemented via special generator functions; special in the sense that they generally do not immediately yield. However, our generators implementation still assumed that every generator function initially yields (concretely: before doing the state dispatch in a loop header). This CL fixes that. R=littledan@chromium.org, rmcilroy@chromium.org BUG=chromium:638019 Committed: https://crrev.com/7fe4d930c9772dfc5f8e506920ad435863ee3b1d Cr-Commit-Position: refs/heads/master@{#38684}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -13 lines) Patch
M src/interpreter/bytecode-generator.cc View 1 chunk +4 lines, -1 line 2 comments Download
M test/cctest/interpreter/bytecode_expectations/Generators.golden View 9 chunks +18 lines, -12 lines 0 comments Download
M test/mjsunit/harmony/async-await-basic.js View 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (6 generated)
neis
4 years, 4 months ago (2016-08-17 11:38:30 UTC) #1
Dan Ehrenberg
lgtm https://codereview.chromium.org/2253033002/diff/1/src/interpreter/bytecode-generator.cc File src/interpreter/bytecode-generator.cc (right): https://codereview.chromium.org/2253033002/diff/1/src/interpreter/bytecode-generator.cc#newcode882 src/interpreter/bytecode-generator.cc:882: .StoreAccumulatorInRegister(generator_state_); Looks like you're doing this extra load/store ...
4 years, 4 months ago (2016-08-17 13:44:34 UTC) #6
rmcilroy
LGTM. https://codereview.chromium.org/2253033002/diff/1/src/interpreter/bytecode-generator.cc File src/interpreter/bytecode-generator.cc (right): https://codereview.chromium.org/2253033002/diff/1/src/interpreter/bytecode-generator.cc#newcode882 src/interpreter/bytecode-generator.cc:882: .StoreAccumulatorInRegister(generator_state_); On 2016/08/17 13:44:34, Dan Ehrenberg wrote: > ...
4 years, 4 months ago (2016-08-17 13:53:40 UTC) #7
neis
On 2016/08/17 13:53:40, rmcilroy wrote: > LGTM. > > https://codereview.chromium.org/2253033002/diff/1/src/interpreter/bytecode-generator.cc > File src/interpreter/bytecode-generator.cc (right): > ...
4 years, 4 months ago (2016-08-17 15:01:01 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2253033002/1
4 years, 4 months ago (2016-08-17 15:01:30 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 4 months ago (2016-08-17 15:03:26 UTC) #11
commit-bot: I haz the power
4 years, 4 months ago (2016-08-17 15:03:51 UTC) #13
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/7fe4d930c9772dfc5f8e506920ad435863ee3b1d
Cr-Commit-Position: refs/heads/master@{#38684}

Powered by Google App Engine
This is Rietveld 408576698