• Leszek Swirski's avatar
    [parser] Move Compiler::Analyze into Parser · 65d738d4
    Leszek Swirski authored
    Move rewriting, scope analysis, and internalization, to be unconditional
    operations done after parsing rather than a separate compile phase. This
    removes some of the complexity about rememberering when to call
    Compiler::Analyze, and makes these paths a bit more uniform.
    
    Also, forbid allocating any more AST strings after AstValueFactory
    internalization, by nulling out the Zone. Add an InternalizePartial
    method which doesn't null out the zone for those cases where we do want
    to be able to allocate after internalizing (e.g. internalization before
    scope analysis).
    
    Change-Id: Id444246d8362a1d169baf664fc37657d9576fd96
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2182458Reviewed-by: 's avatarToon Verwaest <verwaest@chromium.org>
    Commit-Queue: Leszek Swirski <leszeks@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#67608}
    65d738d4
Name
Last commit
Last update
..
api Loading commit data...
asmjs Loading commit data...
assembler Loading commit data...
base Loading commit data...
codegen Loading commit data...
compiler Loading commit data...
compiler-dispatcher Loading commit data...
date Loading commit data...
diagnostics Loading commit data...
execution Loading commit data...
heap Loading commit data...
interpreter Loading commit data...
libplatform Loading commit data...
logging Loading commit data...
numbers Loading commit data...
objects Loading commit data...
parser Loading commit data...
profiler Loading commit data...
regress Loading commit data...
strings Loading commit data...
tasks Loading commit data...
torque Loading commit data...
utils Loading commit data...
wasm Loading commit data...
zone Loading commit data...
BUILD.gn Loading commit data...
DEPS Loading commit data...
run-all-unittests.cc Loading commit data...
test-helpers.cc Loading commit data...
test-helpers.h Loading commit data...
test-utils.cc Loading commit data...
test-utils.h Loading commit data...
testcfg.py Loading commit data...
unittests.status Loading commit data...