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

Issue 2171703004: Rescope arrow-function parameter lists by moving the delta to the parameter scope (Closed)

Created:
4 years, 5 months ago by adamk
Modified:
4 years, 5 months ago
Reviewers:
nickie, Toon Verwaest
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

Rescope arrow-function parameter lists by moving the delta to the parameter scope This replaces the AstVisitor approach for scope rewriting with a Scope-only solution, using a new Scope::Snapshot object that keeps track of inner scopes, unresolved variables, and temps. The only use of the AstVisitor is now for parameter varblock scopes introduced due to sloppy eval in parameters, which greatly simplifies the rewriter as it no longer needs to handle temps. A future CL may be able to eliminate it altogether by taking a snapshot per function argument. Based on verwaest's https://codereview.chromium.org/2166023002/. BUG=v8:5226 Committed: https://crrev.com/e9dea58fa22fe57d5b256e3ca4310822f2d3c950 Cr-Commit-Position: refs/heads/master@{#37989}

Patch Set 1 #

Patch Set 2 : Add a few more DCHECKs #

Total comments: 2

Patch Set 3 : Remove unnecessary DCHECK #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -111 lines) Patch
M src/ast/scopes.h View 1 chunk +17 lines, -0 lines 0 comments Download
M src/ast/scopes.cc View 1 2 1 chunk +45 lines, -0 lines 0 comments Download
M src/parsing/parameter-initializer-rewriter.h View 1 chunk +9 lines, -5 lines 0 comments Download
M src/parsing/parameter-initializer-rewriter.cc View 5 chunks +24 lines, -55 lines 0 comments Download
M src/parsing/parser.h View 1 chunk +2 lines, -2 lines 0 comments Download
M src/parsing/parser.cc View 3 chunks +6 lines, -16 lines 0 comments Download
M src/parsing/parser-base.h View 2 chunks +4 lines, -2 lines 0 comments Download
M src/parsing/pattern-rewriter.cc View 1 chunk +8 lines, -24 lines 0 comments Download
M src/parsing/preparser.h View 2 chunks +6 lines, -7 lines 0 comments Download

Messages

Total messages: 17 (10 generated)
adamk
4 years, 5 months ago (2016-07-21 19:57:57 UTC) #2
Toon Verwaest
lgtm, thanks for taking over!
4 years, 5 months ago (2016-07-22 08:28:06 UTC) #9
nickie
LGTM, one comment. https://codereview.chromium.org/2171703004/diff/20001/src/ast/scopes.cc File src/ast/scopes.cc (right): https://codereview.chromium.org/2171703004/diff/20001/src/ast/scopes.cc#newcode390 src/ast/scopes.cc:390: DCHECK_EQ(new_parent, outer_scope_->inner_scope_); I'm not sure why ...
4 years, 5 months ago (2016-07-22 09:05:31 UTC) #10
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/2171703004/40001
4 years, 5 months ago (2016-07-22 23:04:13 UTC) #13
adamk
https://codereview.chromium.org/2171703004/diff/20001/src/ast/scopes.cc File src/ast/scopes.cc (right): https://codereview.chromium.org/2171703004/diff/20001/src/ast/scopes.cc#newcode390 src/ast/scopes.cc:390: DCHECK_EQ(new_parent, outer_scope_->inner_scope_); On 2016/07/22 09:05:31, nickie wrote: > I'm ...
4 years, 5 months ago (2016-07-22 23:04:34 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 5 months ago (2016-07-22 23:28:22 UTC) #15
commit-bot: I haz the power
4 years, 5 months ago (2016-07-22 23:31:04 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/e9dea58fa22fe57d5b256e3ca4310822f2d3c950
Cr-Commit-Position: refs/heads/master@{#37989}

Powered by Google App Engine
This is Rietveld 408576698