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

Issue 2520883002: [parser] Fix scopes in rewriting of for-of and destructuring assignments. (Closed)

Created:
4 years, 1 month ago by neis
Modified:
4 years ago
CC:
v8-reviews_googlegroups.com, rmcilroy
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[parser] Fix scopes in rewriting of for-of and destructuring assignments. The catch scopes were created with the wrong parent scope. R=littledan@chromium.org BUG=v8:5648 Committed: https://crrev.com/f385268d11d6da9508e481202b39f75f4b56afdd Committed: https://crrev.com/b481afd89300d097531347412c68c5d5fb74476d Cr-Original-Commit-Position: refs/heads/master@{#41222} Cr-Commit-Position: refs/heads/master@{#41253}

Patch Set 1 #

Patch Set 2 : Take into account that the scope may have been removed when we get to rewrite. #

Total comments: 10

Patch Set 3 : Try to address feedback, add more tests. #

Patch Set 4 : Remove debug print from test. #

Total comments: 3

Patch Set 5 : Address feedback #

Patch Set 6 : Typo #

Patch Set 7 : Remove incorrect DCHECK. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+239 lines, -156 lines) Patch
M src/ast/scopes.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M src/ast/scopes.cc View 1 2 3 4 5 6 1 chunk +29 lines, -0 lines 0 comments Download
M src/parsing/parser.h View 1 chunk +5 lines, -3 lines 0 comments Download
M src/parsing/parser.cc View 1 2 3 4 5 8 chunks +22 lines, -12 lines 0 comments Download
M src/parsing/pattern-rewriter.cc View 1 2 2 chunks +6 lines, -4 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/Generators.golden View 3 chunks +137 lines, -137 lines 0 comments Download
A test/mjsunit/regress/regress-5648.js View 1 2 3 1 chunk +35 lines, -0 lines 0 comments Download

Messages

Total messages: 48 (32 generated)
neis
4 years, 1 month ago (2016-11-21 10:23:06 UTC) #1
neis
+verwaest: The second patch set addresses the problem I told you about. Let me know ...
4 years, 1 month ago (2016-11-21 16:23:03 UTC) #11
Toon Verwaest
Only looked at patch 2, that lgtm with minor comments https://codereview.chromium.org/2520883002/diff/20001/src/ast/scopes.cc File src/ast/scopes.cc (right): https://codereview.chromium.org/2520883002/diff/20001/src/ast/scopes.cc#newcode640 ...
4 years, 1 month ago (2016-11-22 08:30:18 UTC) #12
Dan Ehrenberg
lgtm Generally, the fix seems good, but I hope we can eventually move to a ...
4 years, 1 month ago (2016-11-22 16:07:00 UTC) #13
Toon Verwaest
https://codereview.chromium.org/2520883002/diff/20001/src/ast/scopes.cc File src/ast/scopes.cc (right): https://codereview.chromium.org/2520883002/diff/20001/src/ast/scopes.cc#newcode640 src/ast/scopes.cc:640: Scope* parent = outer_scope(); On 2016/11/22 16:07:00, Dan Ehrenberg ...
4 years, 1 month ago (2016-11-22 16:18:37 UTC) #14
Toon Verwaest
https://codereview.chromium.org/2520883002/diff/20001/src/ast/scopes.cc File src/ast/scopes.cc (right): https://codereview.chromium.org/2520883002/diff/20001/src/ast/scopes.cc#newcode649 src/ast/scopes.cc:649: } On 2016/11/22 16:07:00, Dan Ehrenberg wrote: > This ...
4 years, 1 month ago (2016-11-22 16:19:47 UTC) #15
Toon Verwaest
Added offline comments for the record. https://codereview.chromium.org/2520883002/diff/60001/src/ast/scopes.cc File src/ast/scopes.cc (right): https://codereview.chromium.org/2520883002/diff/60001/src/ast/scopes.cc#newcode640 src/ast/scopes.cc:640: if (!is_block_scope() || ...
4 years ago (2016-11-23 12:20:45 UTC) #18
neis
https://codereview.chromium.org/2520883002/diff/20001/src/ast/scopes.cc File src/ast/scopes.cc (right): https://codereview.chromium.org/2520883002/diff/20001/src/ast/scopes.cc#newcode640 src/ast/scopes.cc:640: Scope* parent = outer_scope(); On 2016/11/22 08:30:18, Toon Verwaest ...
4 years ago (2016-11-23 12:51:08 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2520883002/100001
4 years ago (2016-11-23 13:23:07 UTC) #32
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years ago (2016-11-23 13:25:10 UTC) #35
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/f385268d11d6da9508e481202b39f75f4b56afdd Cr-Commit-Position: refs/heads/master@{#41222}
4 years ago (2016-11-23 13:25:43 UTC) #37
Michael Achenbach
A revert of this CL (patchset #6 id:100001) has been created in https://codereview.chromium.org/2519333005/ by machenbach@chromium.org. ...
4 years ago (2016-11-23 15:22:44 UTC) #38
neis
https://codereview.chromium.org/2520883002/diff/60001/src/ast/scopes.cc File src/ast/scopes.cc (right): https://codereview.chromium.org/2520883002/diff/60001/src/ast/scopes.cc#newcode640 src/ast/scopes.cc:640: if (!is_block_scope() || is_declaration_scope()) return false; // Shortcut. On ...
4 years ago (2016-11-23 15:52:38 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2520883002/120001
4 years ago (2016-11-24 09:19:39 UTC) #43
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years ago (2016-11-24 09:48:03 UTC) #46
commit-bot: I haz the power
4 years ago (2016-11-24 09:48:33 UTC) #48
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/b481afd89300d097531347412c68c5d5fb74476d
Cr-Commit-Position: refs/heads/master@{#41253}

Powered by Google App Engine
This is Rietveld 408576698