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

Issue 1744123003: [debugger] fix break locations for assignments and return. (Closed)

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

Description

[debugger] fix break locations for assignments and return. We used to emit debug break location on block entry. This cannot be ported to the interpreted as we do not emit bytecode for block entry. This made no sense to begin with though, but accidentally added break locations for var declarations. With this change, the debugger no longer breaks at var declarations without initialization. This is in accordance with the fact that the interpreter does not emit bytecode for uninitialized var declarations. Also fix the bytecode to match full-codegen's behavior wrt return positions: - there is a break location before the return statement, with the source position of the return statement. - right before the actual return, there is another break location. The source position points to the end of the function. R=rmcilroy@chromium.org, vogelheim@chromium.org TBR=rossberg@chromium.org BUG=v8:4690 LOG=N Committed: https://crrev.com/d9fe836dd40a9a20e29b87d87e45c2aa884ac5d7 Cr-Commit-Position: refs/heads/master@{#34388}

Patch Set 1 #

Total comments: 5

Patch Set 2 : fix .status #

Total comments: 6

Patch Set 3 : fixes and addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -111 lines) Patch
M src/debug/debug.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/debug/debug.cc View 3 chunks +14 lines, -9 lines 0 comments Download
M src/full-codegen/full-codegen.cc View 1 chunk +0 lines, -1 line 0 comments Download
M src/interpreter/bytecode-array-builder.h View 1 2 5 chunks +8 lines, -4 lines 0 comments Download
M src/interpreter/bytecode-array-builder.cc View 1 2 5 chunks +11 lines, -8 lines 0 comments Download
M src/interpreter/bytecode-generator.cc View 1 2 3 chunks +4 lines, -3 lines 0 comments Download
M src/parsing/pattern-rewriter.cc View 3 chunks +5 lines, -3 lines 0 comments Download
M src/parsing/rewriter.cc View 1 2 1 chunk +1 line, -8 lines 0 comments Download
M test/cctest/cctest.status View 1 chunk +0 lines, -3 lines 0 comments Download
M test/cctest/test-debug.cc View 5 chunks +6 lines, -6 lines 0 comments Download
M test/mjsunit/debug-step.js View 1 chunk +2 lines, -2 lines 0 comments Download
M test/mjsunit/debug-step-end-of-script.js View 1 2 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/es6/debug-stepnext-for.js View 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/harmony/debug-step-destructuring-assignment.js View 1 chunk +40 lines, -40 lines 0 comments Download
M test/mjsunit/harmony/debug-step-destructuring-bind.js View 1 chunk +6 lines, -6 lines 0 comments Download
M test/mjsunit/mjsunit.status View 1 2 2 chunks +0 lines, -15 lines 0 comments Download
M test/mjsunit/regress/regress-crbug-568477-2.js View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 31 (13 generated)
Yang
4 years, 9 months ago (2016-02-29 13:41:48 UTC) #1
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1744123003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1744123003/1
4 years, 9 months ago (2016-02-29 13:57:10 UTC) #3
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux_arm_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_arm_rel/builds/14482)
4 years, 9 months ago (2016-02-29 14:10:32 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1744123003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1744123003/20001
4 years, 9 months ago (2016-02-29 14:36:55 UTC) #7
vogelheim
I'm confused about the logic here. I'm easily confused, so that might be just me. ...
4 years, 9 months ago (2016-02-29 14:52:32 UTC) #8
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux_nodcheck_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_nodcheck_rel/builds/12959)
4 years, 9 months ago (2016-02-29 14:58:36 UTC) #10
Yang
On 2016/02/29 14:58:36, commit-bot: I haz the power wrote: > Dry run: Try jobs failed ...
4 years, 9 months ago (2016-02-29 15:19:24 UTC) #11
vogelheim
lgtm Thanks for the explanation; I understand this much better now. Also, please ignore all ...
4 years, 9 months ago (2016-02-29 17:43:30 UTC) #12
Yang
https://codereview.chromium.org/1744123003/diff/20001/src/interpreter/bytecode-array-builder.cc File src/interpreter/bytecode-array-builder.cc (right): https://codereview.chromium.org/1744123003/diff/20001/src/interpreter/bytecode-array-builder.cc#newcode1187 src/interpreter/bytecode-array-builder.cc:1187: if (return_position_ == RelocInfo::kNoPosition) return; On 2016/02/29 17:43:30, vogelheim ...
4 years, 9 months ago (2016-02-29 17:53:12 UTC) #13
rmcilroy
Only looked at interpreter stuff. LGTM with a comment. https://codereview.chromium.org/1744123003/diff/20001/src/interpreter/bytecode-array-builder.cc File src/interpreter/bytecode-array-builder.cc (right): https://codereview.chromium.org/1744123003/diff/20001/src/interpreter/bytecode-array-builder.cc#newcode1180 src/interpreter/bytecode-array-builder.cc:1180: ...
4 years, 9 months ago (2016-03-01 04:47:01 UTC) #14
Yang
https://codereview.chromium.org/1744123003/diff/1/src/interpreter/bytecode-array-builder.cc File src/interpreter/bytecode-array-builder.cc (right): https://codereview.chromium.org/1744123003/diff/1/src/interpreter/bytecode-array-builder.cc#newcode1047 src/interpreter/bytecode-array-builder.cc:1047: void BytecodeArrayBuilder::EnsureReturn(FunctionLiteral* literal) { On 2016/02/29 14:52:32, vogelheim wrote: ...
4 years, 9 months ago (2016-03-01 08:09:18 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1744123003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1744123003/40001
4 years, 9 months ago (2016-03-01 08:09:39 UTC) #17
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-01 09:01:05 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1744123003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1744123003/40001
4 years, 9 months ago (2016-03-01 12:33:59 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: v8_presubmit on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/11694)
4 years, 9 months ago (2016-03-01 12:40:17 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1744123003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1744123003/40001
4 years, 9 months ago (2016-03-01 12:42:40 UTC) #27
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 9 months ago (2016-03-01 12:47:32 UTC) #29
commit-bot: I haz the power
4 years, 9 months ago (2016-03-01 12:48:06 UTC) #31
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/d9fe836dd40a9a20e29b87d87e45c2aa884ac5d7
Cr-Commit-Position: refs/heads/master@{#34388}

Powered by Google App Engine
This is Rietveld 408576698