• Marja Hölttä's avatar
    [parser|ast] Simplify AstNodeFactory Zone usage. · f270bbfa
    Marja Hölttä authored
    AstNodeFactory used to get the Zone directly from AstValueFactory. But that's
    generally the wrong Zone (the main Zone, instead of the temp Zone), and the
    creator of AstNodeFactory had to call set_zone right after. By adding a Zone
    param, we can pass the correct Zone right away.
    
    Also made PreParserFactory have an AstNodeFactory, so that we don't need to
    create temporary AstNodeFactories all the time.
    
    Also removed AstNodeFactory::BodyScope since DiscardableZoneScope essentially
    did the same thing already.
    
    BUG=v8:5516,v8:6092
    
    Change-Id: I189d2e6afe91c91e49d8ed7e3496a0d9c405e1c5
    Reviewed-on: https://chromium-review.googlesource.com/507129
    Commit-Queue: Marja Hölttä <marja@chromium.org>
    Reviewed-by: 's avatarDaniel Vogelheim <vogelheim@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#45370}
    f270bbfa
Name
Last commit
Last update
..
OWNERS Loading commit data...
duplicate-finder.h Loading commit data...
expression-classifier.h Loading commit data...
func-name-inferrer.cc Loading commit data...
func-name-inferrer.h Loading commit data...
parameter-initializer-rewriter.cc Loading commit data...
parameter-initializer-rewriter.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...