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

Issue 1032653002: Do not assign positions to parser-generated desugarings. (Closed)

Created:
5 years, 9 months ago by Dmitry Lomov (no reviews)
Modified:
5 years, 9 months ago
Reviewers:
adamk, rossberg
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Do not assign positions to parser-generated desugarings. The root cause for the bug is that the positions assigned to desugared code was inconsistent with the source ranges of block scopes. Since the fact that the position is assigned causes the debugger to break at the parser-generated statement, the fix is to remove positions from those nodes that we do not want to break on. The CL also teaches Hydrogen to tolerate these cases. R=adamk@chromium.org,rossberg@chromium.org BUG=chromium:468661 LOG=Y Committed: https://crrev.com/49c3a606514379e536491ce91fd732161b3c8357 Cr-Commit-Position: refs/heads/master@{#27424}

Patch Set 1 #

Total comments: 9

Patch Set 2 : CR feedback #

Patch Set 3 : Rebased for landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -27 lines) Patch
M src/hydrogen.h View 1 chunk +4 lines, -2 lines 0 comments Download
M src/parser.cc View 1 2 7 chunks +14 lines, -12 lines 0 comments Download
A + test/mjsunit/es6/regress/regress-468661.js View 1 2 2 chunks +35 lines, -13 lines 0 comments Download
M test/mjsunit/mjsunit.status View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
Dmitry Lomov (no reviews)
ptal
5 years, 9 months ago (2015-03-24 14:37:51 UTC) #1
adamk
Parser changes lgtm, but I have a few questions. https://codereview.chromium.org/1032653002/diff/1/src/hydrogen.h File src/hydrogen.h (left): https://codereview.chromium.org/1032653002/diff/1/src/hydrogen.h#oldcode1871 src/hydrogen.h:1871: ...
5 years, 9 months ago (2015-03-24 15:57:41 UTC) #2
Dmitry Lomov (no reviews)
Addressed comments https://codereview.chromium.org/1032653002/diff/1/src/hydrogen.h File src/hydrogen.h (left): https://codereview.chromium.org/1032653002/diff/1/src/hydrogen.h#oldcode1871 src/hydrogen.h:1871: DCHECK(position != RelocInfo::kNoPosition); On 2015/03/24 15:57:41, adamk ...
5 years, 9 months ago (2015-03-24 16:42:53 UTC) #3
adamk
still lgtm, thanks for the answers https://codereview.chromium.org/1032653002/diff/1/test/mjsunit/es6/regress/regress-468661.js File test/mjsunit/es6/regress/regress-468661.js (right): https://codereview.chromium.org/1032653002/diff/1/test/mjsunit/es6/regress/regress-468661.js#newcode67 test/mjsunit/es6/regress/regress-468661.js:67: i++) { On ...
5 years, 9 months ago (2015-03-24 16:48:48 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1032653002/20001
5 years, 9 months ago (2015-03-24 16:51:14 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: v8_mac_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_mac_rel/builds/4319)
5 years, 9 months ago (2015-03-24 16:52:52 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1032653002/40001
5 years, 9 months ago (2015-03-24 16:54:16 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 9 months ago (2015-03-24 17:16:49 UTC) #12
commit-bot: I haz the power
5 years, 9 months ago (2015-03-24 17:17:00 UTC) #13
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/49c3a606514379e536491ce91fd732161b3c8357
Cr-Commit-Position: refs/heads/master@{#27424}

Powered by Google App Engine
This is Rietveld 408576698