• 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
..
benchmarks Loading commit data...
cctest Loading commit data...
common Loading commit data...
debugger Loading commit data...
fuzzer Loading commit data...
inspector Loading commit data...
intl Loading commit data...
js-perf-test Loading commit data...
memory Loading commit data...
message Loading commit data...
mjsunit Loading commit data...
mkgrokdump Loading commit data...
mozilla Loading commit data...
preparser Loading commit data...
promises-aplus Loading commit data...
test262 Loading commit data...
unittests Loading commit data...
wasm-spec-tests Loading commit data...
webkit Loading commit data...
BUILD.gn Loading commit data...
bot_default.gyp Loading commit data...
bot_default.isolate Loading commit data...
default.gyp Loading commit data...
default.isolate Loading commit data...
optimize_for_size.gyp Loading commit data...
optimize_for_size.isolate Loading commit data...
perf.gyp Loading commit data...
perf.isolate Loading commit data...