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

Issue 2893313002: [inspector] removed call break location from for-of loop (Closed)

Created:
3 years, 7 months ago by kozy
Modified:
3 years, 7 months ago
Reviewers:
jgruber, dgozman, marja
CC:
v8-reviews_googlegroups.com, devtools-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
v8
Visibility:
Public.

Description

[inspector] removed call break location from for-of loop There are two break locations at the same source location by desugaring: - call iterator.next, - before variable assignment. Additionally location for for..of loops is moved from before "of" to before each variable expression. We should not report first implicit call to avoid user confusion. User still able to go into .next function with both scenarios: - when this call is reached by stepOver or stepInto from previous line, - when this call is reached because of breakpoint at current line. BUG=v8:6425 R=dgozman@chromium.org,jgruber@chromium.org Review-Url: https://codereview.chromium.org/2893313002 Cr-Commit-Position: refs/heads/master@{#45509} Committed: https://chromium.googlesource.com/v8/v8/+/fb78710c06743a19fb7161794ee611527a8be1af

Patch Set 1 : without CL #

Patch Set 2 : removed call location #

Total comments: 2

Patch Set 3 : aligned for..in and for..of #

Patch Set 4 : removed each_keyword_pos #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+569 lines, -76 lines) Patch
M src/parsing/parser.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/parsing/parser.cc View 1 2 3 2 chunks +3 lines, -4 lines 0 comments Download
M src/parsing/parser-base.h View 1 2 3 4 chunks +4 lines, -8 lines 3 comments Download
M src/parsing/preparser.h View 1 2 3 1 chunk +3 lines, -4 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ForAwaitOf.golden View 1 2 4 chunks +9 lines, -9 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ForOf.golden View 1 2 4 chunks +12 lines, -12 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ForOfLoop.golden View 1 2 8 chunks +24 lines, -24 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/Generators.golden View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M test/debugger/debug/es6/debug-stepnext-for.js View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
A test/inspector/debugger/for-of-loops.js View 1 chunk +104 lines, -0 lines 0 comments Download
A test/inspector/debugger/for-of-loops-expected.txt View 1 2 1 chunk +395 lines, -0 lines 0 comments Download
M test/inspector/debugger/get-possible-breakpoints-master-expected.txt View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M test/inspector/debugger/step-into-expected.txt View 1 2 4 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 32 (21 generated)
kozy
Dmitry and Jacob, please take a look. You can compare inspector test expectations with 1 ...
3 years, 7 months ago (2017-05-22 15:00:04 UTC) #6
dgozman
Inspector part lgtm, but I think we can go even further. https://codereview.chromium.org/2893313002/diff/40001/test/inspector/debugger/for-of-loops-expected.txt File test/inspector/debugger/for-of-loops-expected.txt (right): ...
3 years, 7 months ago (2017-05-22 23:00:36 UTC) #11
kozy
all done, thanks. https://codereview.chromium.org/2893313002/diff/40001/test/inspector/debugger/for-of-loops-expected.txt File test/inspector/debugger/for-of-loops-expected.txt (right): https://codereview.chromium.org/2893313002/diff/40001/test/inspector/debugger/for-of-loops-expected.txt#newcode10 test/inspector/debugger/for-of-loops-expected.txt:10: for (var k |_|of |_|arr) { ...
3 years, 7 months ago (2017-05-23 11:44:43 UTC) #12
jgruber
LGTM but please wait for +marja to take a look at parser/. https://codereview.chromium.org/2893313002/diff/80001/src/parsing/parser-base.h File src/parsing/parser-base.h ...
3 years, 7 months ago (2017-05-23 12:33:57 UTC) #14
kozy
thanks! I updated CL with information about moving location inside for..of loop. https://codereview.chromium.org/2893313002/diff/80001/src/parsing/parser-base.h File src/parsing/parser-base.h ...
3 years, 7 months ago (2017-05-23 12:56:29 UTC) #16
marja
Parser lgtm as the change is trivial (afaics it's collecting the locations only for the ...
3 years, 7 months ago (2017-05-24 11:01:49 UTC) #17
kozy
On 2017/05/24 11:01:49, marja wrote: > Parser lgtm as the change is trivial (afaics it's ...
3 years, 7 months ago (2017-05-24 11:06:28 UTC) #18
marja
Right, it is, I somehow didn't see it :)
3 years, 7 months ago (2017-05-24 11:24:13 UTC) #21
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/2893313002/80001
3 years, 7 months ago (2017-05-24 11:45:13 UTC) #26
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/2893313002/80001
3 years, 7 months ago (2017-05-24 12:11:33 UTC) #29
commit-bot: I haz the power
3 years, 7 months ago (2017-05-24 12:13:04 UTC) #32
Message was sent while issue was closed.
Committed patchset #4 (id:80001) as
https://chromium.googlesource.com/v8/v8/+/fb78710c06743a19fb7161794ee611527a8...

Powered by Google App Engine
This is Rietveld 408576698