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

Issue 1784883002: Fix expression positions for for-loops. (Closed)

Created:
4 years, 9 months ago by vogelheim
Modified:
4 years, 9 months ago
Reviewers:
Yang
CC:
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

Fix expression positions for for-loops. FullCodegen generates 2 statement positions for the loop init block, like so: for(var i = 0; i.... ^ ^ This change removes the first of those, updates unit tests, and removes text expectations for Ignition. --- An alternative would be to emulate the existing behaviour in Ignition, but: - The new behaviour seems more logical, - Ignition generates no bytecodes for the 'var', meaning there is no code position to attach the break position to. BUG=v8:4690 LOG=Y Committed: https://crrev.com/de4f3d3eff50f0cdd53a6cdf9d4a389d575b17aa Cr-Commit-Position: refs/heads/master@{#34717}

Patch Set 1 #

Patch Set 2 : Update mjsunit tests. #

Patch Set 3 : It's not enough to fix the bug. You also need to TELL it you fixed the bug. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -18 lines) Patch
M src/full-codegen/full-codegen.cc View 1 chunk +0 lines, -1 line 0 comments Download
M test/cctest/cctest.status View 1 chunk +0 lines, -5 lines 0 comments Download
M test/cctest/test-debug.cc View 8 chunks +8 lines, -8 lines 0 comments Download
M test/mjsunit/debug-stepin-accessor-ic.js View 1 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/es6/debug-stepnext-for.js View 1 1 chunk +2 lines, -2 lines 0 comments Download
M test/mjsunit/mjsunit.status View 1 2 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 12 (5 generated)
vogelheim
Not sure if this solutions makes sense, but... please have a look. :)
4 years, 9 months ago (2016-03-10 17:36:00 UTC) #3
Yang
LGTM. Thanks. This solution indeed makes sense! The old behavior was in place because the ...
4 years, 9 months ago (2016-03-10 19:27:00 UTC) #4
vogelheim
On 2016/03/10 19:27:00, Yang wrote: > LGTM. Thanks. > > This solution indeed makes sense! ...
4 years, 9 months ago (2016-03-11 11:59:35 UTC) #5
vogelheim
On 2016/03/11 11:59:35, vogelheim wrote: > On 2016/03/10 19:27:00, Yang wrote: > > LGTM. Thanks. ...
4 years, 9 months ago (2016-03-11 12:01:02 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1784883002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1784883002/40001
4 years, 9 months ago (2016-03-11 12:01:11 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 9 months ago (2016-03-11 12:02:43 UTC) #10
commit-bot: I haz the power
4 years, 9 months ago (2016-03-11 12:02:57 UTC) #12
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/de4f3d3eff50f0cdd53a6cdf9d4a389d575b17aa
Cr-Commit-Position: refs/heads/master@{#34717}

Powered by Google App Engine
This is Rietveld 408576698