DescriptionRescope 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 #
Messages
Total messages: 17 (10 generated)
|