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

Issue 1581403007: Fix re-indexing for literals in do-expressions (Closed)

Created:
4 years, 11 months ago by nickie
Modified:
4 years, 11 months ago
Reviewers:
caitp (gmail), rossberg
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 re-indexing for literals in do-expressions This became temporarily a big issue, because spreads are desugared into do-expressions. This patch fixes the problem with having spreads as parameter initializers in arrow expressions, e.g., this line would crash: [], ((x = [...[42]]) => x)(); R=rossberg@chromium.org BUG=chromium:578038 LOG=N Committed: https://crrev.com/9ed5596ade9f74b5604bbd1cb27e2f6265123556 Cr-Commit-Position: refs/heads/master@{#33365}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Fix the regression test, focus on spreads #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -1 line) Patch
M src/ast/ast-expression-visitor.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/ast/ast-literal-reindexer.cc View 1 chunk +2 lines, -1 line 0 comments Download
A test/mjsunit/harmony/regress/regress-crbug-578038.js View 1 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (5 generated)
nickie
4 years, 11 months ago (2016-01-15 17:36:09 UTC) #1
nickie
This is not 100% ready yet. I'm getting this error when running the new regression ...
4 years, 11 months ago (2016-01-15 17:44:24 UTC) #2
caitp (gmail)
https://codereview.chromium.org/1581403007/diff/1/src/ast/ast-literal-reindexer.cc File src/ast/ast-literal-reindexer.cc (right): https://codereview.chromium.org/1581403007/diff/1/src/ast/ast-literal-reindexer.cc#newcode47 src/ast/ast-literal-reindexer.cc:47: Visit(node->block()); The thing that worries me is, which function ...
4 years, 11 months ago (2016-01-15 17:48:00 UTC) #4
nickie
https://codereview.chromium.org/1581403007/diff/1/src/ast/ast-literal-reindexer.cc File src/ast/ast-literal-reindexer.cc (right): https://codereview.chromium.org/1581403007/diff/1/src/ast/ast-literal-reindexer.cc#newcode47 src/ast/ast-literal-reindexer.cc:47: Visit(node->block()); On 2016/01/15 17:48:00, caitp wrote: > The thing ...
4 years, 11 months ago (2016-01-15 20:18:29 UTC) #5
caitp (gmail)
https://codereview.chromium.org/1581403007/diff/1/src/ast/ast-literal-reindexer.cc File src/ast/ast-literal-reindexer.cc (right): https://codereview.chromium.org/1581403007/diff/1/src/ast/ast-literal-reindexer.cc#newcode47 src/ast/ast-literal-reindexer.cc:47: Visit(node->block()); On 2016/01/15 20:18:29, nickie wrote: > On 2016/01/15 ...
4 years, 11 months ago (2016-01-15 20:25:30 UTC) #6
nickie
The stress test error that I'm getting seems to be unrelated to arrays or literal ...
4 years, 11 months ago (2016-01-18 09:14:27 UTC) #7
nickie
The failing regression test used a variable declaration inside the do expression, inside the parameter ...
4 years, 11 months ago (2016-01-18 14:34:06 UTC) #9
rossberg
lgtm
4 years, 11 months ago (2016-01-18 14:43:12 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1581403007/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1581403007/40001
4 years, 11 months ago (2016-01-18 14:55:48 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:40001)
4 years, 11 months ago (2016-01-18 15:20:55 UTC) #14
commit-bot: I haz the power
4 years, 11 months ago (2016-01-18 15:21:05 UTC) #16
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/9ed5596ade9f74b5604bbd1cb27e2f6265123556
Cr-Commit-Position: refs/heads/master@{#33365}

Powered by Google App Engine
This is Rietveld 408576698