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

Issue 2051783002: [interpreter] Fix debug stepping for generators. (Closed)

Created:
4 years, 6 months ago by neis
Modified:
4 years, 6 months ago
Reviewers:
rmcilroy, adamk, Yang
CC:
v8-reviews_googlegroups.com, oth
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[interpreter] Fix debug stepping for generators. In commit b3bfc0bd58b07232da08c1d6e7504c55b4e80710, I corrected the source position of yield-exceptions by not setting the "return position" on returns that correspond to yields. It turns out that this caused a bug with debug stepping. The proper fix is to keep the return position on those returns but additionally attach the yield's source position to the Throw emitted in VisitYield. R=rmcilroy@chromium.org, yangguo@chromium.org BUG=v8:4907 Committed: https://crrev.com/6e700b7f769e9f15a5193f9efcf43aa07fc3054d Cr-Commit-Position: refs/heads/master@{#36896}

Patch Set 1 #

Total comments: 1

Patch Set 2 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -21 lines) Patch
M src/interpreter/bytecode-array-builder.h View 2 chunks +3 lines, -3 lines 0 comments Download
M src/interpreter/bytecode-array-builder.cc View 1 2 chunks +1 line, -1 line 0 comments Download
M src/interpreter/bytecode-generator.cc View 2 chunks +1 line, -1 line 0 comments Download
M src/parsing/parser.cc View 1 chunk +5 lines, -2 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/Generators.golden View 1 13 chunks +13 lines, -13 lines 0 comments Download
M test/mjsunit/es6/debug-stepin-generators.js View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 23 (10 generated)
neis
4 years, 6 months ago (2016-06-09 10:36:29 UTC) #1
neis
adamk: please take a look at the parser changes
4 years, 6 months ago (2016-06-09 10:37:26 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2051783002/1
4 years, 6 months ago (2016-06-09 10:38:01 UTC) #6
rmcilroy
Interpreter changes LGTM, one suggestion on the tests. https://codereview.chromium.org/2051783002/diff/1/test/mjsunit/es6/debug-stepin-generators.js File test/mjsunit/es6/debug-stepin-generators.js (right): https://codereview.chromium.org/2051783002/diff/1/test/mjsunit/es6/debug-stepin-generators.js#newcode5 test/mjsunit/es6/debug-stepin-generators.js:5: // ...
4 years, 6 months ago (2016-06-09 10:50:18 UTC) #7
neis
On 2016/06/09 10:50:18, rmcilroy wrote: > Interpreter changes LGTM, one suggestion on the tests. > ...
4 years, 6 months ago (2016-06-09 10:58:28 UTC) #8
rmcilroy
Fix Yang's email address on reviewers.
4 years, 6 months ago (2016-06-09 11:02:31 UTC) #10
rmcilroy
On 2016/06/09 10:58:28, neis wrote: > On 2016/06/09 10:50:18, rmcilroy wrote: > > Interpreter changes ...
4 years, 6 months ago (2016-06-09 11:02:58 UTC) #11
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-09 11:03:50 UTC) #13
Yang
On 2016/06/09 11:03:50, commit-bot: I haz the power wrote: > Dry run: This issue passed ...
4 years, 6 months ago (2016-06-09 12:40:27 UTC) #15
adamk
lgtm for parsing, sorry for the delay
4 years, 6 months ago (2016-06-10 12:51:06 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2051783002/20001
4 years, 6 months ago (2016-06-10 12:51:34 UTC) #19
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 6 months ago (2016-06-10 13:28:40 UTC) #21
commit-bot: I haz the power
4 years, 6 months ago (2016-06-10 13:30:28 UTC) #23
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/6e700b7f769e9f15a5193f9efcf43aa07fc3054d
Cr-Commit-Position: refs/heads/master@{#36896}

Powered by Google App Engine
This is Rietveld 408576698