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

Issue 1177053006: [es6] Fix completion values of for loops with lexical variables (Closed)

Created:
5 years, 6 months ago by conradw
Modified:
5 years, 6 months ago
Reviewers:
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

[es6] Fix completion values of for loops with lexical variables Currently, the desugaring of for loops of the form for (let/const ...; bla; bla) causes them to always have a completion value of 1, regardless of whether the loop body is executed or not. This CL fixes this, realigning initializer blocks as a more general purpose way to avoid the completion value rewriter (since that's all they really do anyway). BUG= Committed: https://crrev.com/1bb051b8a4b81aea753715a833b425d120fb5da6 Cr-Commit-Position: refs/heads/master@{#29108}

Patch Set 1 #

Total comments: 5

Patch Set 2 : cl feedback #

Patch Set 3 : offline feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -27 lines) Patch
M src/ast.h View 1 2 4 chunks +7 lines, -9 lines 0 comments Download
M src/parser.cc View 1 2 7 chunks +29 lines, -13 lines 0 comments Download
M src/prettyprinter.cc View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
M src/rewriter.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/es6/block-for.js View 2 chunks +26 lines, -1 line 0 comments Download

Messages

Total messages: 10 (3 generated)
conradw
PTAL
5 years, 6 months ago (2015-06-17 19:01:04 UTC) #2
rossberg
LGTM https://codereview.chromium.org/1177053006/diff/1/src/ast.h File src/ast.h (right): https://codereview.chromium.org/1177053006/diff/1/src/ast.h#newcode487 src/ast.h:487: bool ignore_completion_values() const { return ignore_completion_values_; } Nit: ...
5 years, 6 months ago (2015-06-18 05:43:21 UTC) #3
conradw
https://codereview.chromium.org/1177053006/diff/1/src/ast.h File src/ast.h (right): https://codereview.chromium.org/1177053006/diff/1/src/ast.h#newcode487 src/ast.h:487: bool ignore_completion_values() const { return ignore_completion_values_; } On 2015/06/18 ...
5 years, 6 months ago (2015-06-18 10:53:32 UTC) #4
rossberg
https://codereview.chromium.org/1177053006/diff/1/src/ast.h File src/ast.h (right): https://codereview.chromium.org/1177053006/diff/1/src/ast.h#newcode487 src/ast.h:487: bool ignore_completion_values() const { return ignore_completion_values_; } On 2015/06/18 ...
5 years, 6 months ago (2015-06-18 10:58:07 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1177053006/40001
5 years, 6 months ago (2015-06-18 11:52:30 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 6 months ago (2015-06-18 11:54:09 UTC) #9
commit-bot: I haz the power
5 years, 6 months ago (2015-06-18 11:54:24 UTC) #10
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/1bb051b8a4b81aea753715a833b425d120fb5da6
Cr-Commit-Position: refs/heads/master@{#29108}

Powered by Google App Engine
This is Rietveld 408576698