• Adam Klein's avatar
    [parser] Greatly simplify Array spread rewriting code · 18cac20c
    Adam Klein authored
    Since each Array literal containing a spread is individually queued for
    rewriting, there's no need for an AstVisitor here: a simple linear
    pass through the queue is sufficient.
    
    This patch deletes AstExpressionRewriter and all the machinery supporting
    it in the AST. This code was built with the idea of using it as
    a general expression rewriting mechanism in the parser, but those use
    cases never materialized, and Array spread remains the only thing
    that used this code.
    
    Bug: v8:6092
    Change-Id: I754c4883099e840881b005f20216f86e57721d5a
    Reviewed-on: https://chromium-review.googlesource.com/765051Reviewed-by: 's avatarMarja Hölttä <marja@chromium.org>
    Commit-Queue: Adam Klein <adamk@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#49337}
    18cac20c
Name
Last commit
Last update
..
OWNERS Loading commit data...
background-parsing-task.cc Loading commit data...
background-parsing-task.h Loading commit data...
duplicate-finder.h Loading commit data...
expression-classifier.h Loading commit data...
expression-scope-reparenter.cc Loading commit data...
expression-scope-reparenter.h Loading commit data...
func-name-inferrer.cc Loading commit data...
func-name-inferrer.h Loading commit data...
parse-info.cc Loading commit data...
parse-info.h Loading commit data...
parser-base.h Loading commit data...
parser.cc Loading commit data...
parser.h Loading commit data...
parsing.cc Loading commit data...
parsing.h Loading commit data...
pattern-rewriter.cc Loading commit data...
preparse-data-format.h Loading commit data...
preparse-data.cc Loading commit data...
preparse-data.h Loading commit data...
preparsed-scope-data.cc Loading commit data...
preparsed-scope-data.h Loading commit data...
preparser.cc Loading commit data...
preparser.h Loading commit data...
rewriter.cc Loading commit data...
rewriter.h Loading commit data...
scanner-character-streams.cc Loading commit data...
scanner-character-streams.h Loading commit data...
scanner.cc Loading commit data...
scanner.h Loading commit data...
token.cc Loading commit data...
token.h Loading commit data...