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

Issue 1411873004: [es6] allow any LeftHandSideExpression in for-of loops (Closed)

Created:
5 years, 1 month ago by caitp (gmail)
Modified:
5 years, 1 month ago
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

[es6] allow any LeftHandSideExpression in for-of loops Fix an earlier regression which forbid non-VariableProxy LHS from being used in for-of loops. Like for-in loops, the spec allows any LHS to be used, with the sole exception that ObjectLiterals and ArrayLiterals must be valid AssignmentPatterns. Also fixes a bug in TurboFan which resulted in incorrectly replacing a variable load with a constant value in some instances, due to the AstLoopAssignmentAnalyzer failing to record the assignment to ForOfStatement's value. BUG=v8:4418, v8:2720 LOG=N R=wingo@igalia.com, littledan@chromium.org, adamk@chromium.org, bmeurer@chromium.org Committed: https://crrev.com/096125deaafe50c2c82cbf795dd9eee5264cbbf7 Cr-Commit-Position: refs/heads/master@{#31816}

Patch Set 1 #

Patch Set 2 : Remove unneeded var from test (also rebased, woops) #

Patch Set 3 : Fix bug in loop-assignment-analyzer which resulted in incorrect code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -10 lines) Patch
M src/compiler/ast-loop-assignment-analyzer.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M src/parser.cc View 1 2 chunks +2 lines, -4 lines 0 comments Download
M src/preparser.h View 1 2 chunks +2 lines, -3 lines 0 comments Download
M src/preparser.cc View 1 2 chunks +2 lines, -3 lines 0 comments Download
A test/mjsunit/es6/for-of.js View 1 1 chunk +24 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (13 generated)
caitp (gmail)
Quick fix for v8:4418 --- the for-loop parsing uses ParseExpression() rather than ParseLeftHandSideExpression() to parse ...
5 years, 1 month ago (2015-11-04 18:58:50 UTC) #1
caitp (gmail)
On 2015/11/04 18:58:50, caitp wrote: > Quick fix for v8:4418 --- the for-loop parsing uses ...
5 years, 1 month ago (2015-11-04 18:59:47 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1411873004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1411873004/1
5 years, 1 month ago (2015-11-04 19:29:20 UTC) #6
adamk
lgtm if tests pass
5 years, 1 month ago (2015-11-04 19:32:33 UTC) #7
caitp (gmail)
On 2015/11/04 19:32:33, adamk wrote: > lgtm if tests pass I guess there are failures, ...
5 years, 1 month ago (2015-11-04 19:42:41 UTC) #8
caitp (gmail)
On 2015/11/04 19:42:41, caitp wrote: > On 2015/11/04 19:32:33, adamk wrote: > > lgtm if ...
5 years, 1 month ago (2015-11-04 19:55:04 UTC) #9
caitp (gmail)
On 2015/11/04 19:55:04, caitp wrote: > On 2015/11/04 19:42:41, caitp wrote: > > On 2015/11/04 ...
5 years, 1 month ago (2015-11-04 20:53:00 UTC) #10
caitp (gmail)
On 2015/11/04 20:53:00, caitp wrote: > On 2015/11/04 19:55:04, caitp wrote: > > On 2015/11/04 ...
5 years, 1 month ago (2015-11-04 20:56:01 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1411873004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1411873004/40001
5 years, 1 month ago (2015-11-04 21:01:25 UTC) #13
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 1 month ago (2015-11-04 21:20:34 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1411873004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1411873004/40001
5 years, 1 month ago (2015-11-04 21:21:31 UTC) #19
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/7439)
5 years, 1 month ago (2015-11-04 21:23:54 UTC) #21
caitp (gmail)
Oops, yeah. Can someone from src/compilers please check the ALAA change?
5 years, 1 month ago (2015-11-04 21:24:50 UTC) #24
adamk
Is the mention of Crankshaft correct in the CL description? I'd think this should only ...
5 years, 1 month ago (2015-11-04 21:40:59 UTC) #25
caitp (gmail)
On 2015/11/04 21:40:59, adamk wrote: > Is the mention of Crankshaft correct in the CL ...
5 years, 1 month ago (2015-11-04 21:42:09 UTC) #26
Benedikt Meurer
LGTM on compiler.
5 years, 1 month ago (2015-11-05 06:45:50 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1411873004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1411873004/40001
5 years, 1 month ago (2015-11-05 06:46:13 UTC) #30
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 1 month ago (2015-11-05 06:47:31 UTC) #31
commit-bot: I haz the power
5 years, 1 month ago (2015-11-05 06:48:03 UTC) #32
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/096125deaafe50c2c82cbf795dd9eee5264cbbf7
Cr-Commit-Position: refs/heads/master@{#31816}

Powered by Google App Engine
This is Rietveld 408576698