• jochen's avatar
    Fully deserialize the scope chain after parsing, not before · 94492437
    jochen authored
    To avoid a dependency on the heap during parsing, we only create a scope chain
    without linking to the associated ScopeInfo objects before parsing. This is
    enough to avoid special cases during parsing of arrow functions / eval.
    
    Looking at the outer scope's variables during parsing was only needed for hosting
    sloppy block functions inside eval. To be able to do this now, we hoist for the
    outer-most eval scope after parsing, in DeclarationScope::Analyze.
    
    DeclarationScope::Analyze is also where we replace the outer scope chain with the
    fully deserialized version, so variables can be resolved.
    
    Also, this unifies background and foreground thread parsing, as we don't have to
    worry about ScopeInfos getting accessed before we're back on the main thread.
    
    BUG=v8:5215
    R=verwaest@chromium.org,marja@chromium.org,adamk@chromium.org
    
    Review-Url: https://codereview.chromium.org/2306413002
    Cr-Commit-Position: refs/heads/master@{#39452}
    94492437
Name
Last commit
Last update
..
OWNERS Loading commit data...
ast-expression-rewriter.cc Loading commit data...
ast-expression-rewriter.h Loading commit data...
ast-literal-reindexer.cc Loading commit data...
ast-literal-reindexer.h Loading commit data...
ast-numbering.cc Loading commit data...
ast-numbering.h Loading commit data...
ast-traversal-visitor.h Loading commit data...
ast-type-bounds.h Loading commit data...
ast-types.cc Loading commit data...
ast-types.h Loading commit data...
ast-value-factory.cc Loading commit data...
ast-value-factory.h Loading commit data...
ast.cc Loading commit data...
ast.h Loading commit data...
compile-time-value.cc Loading commit data...
compile-time-value.h Loading commit data...
context-slot-cache.cc Loading commit data...
context-slot-cache.h Loading commit data...
modules.cc Loading commit data...
modules.h Loading commit data...
prettyprinter.cc Loading commit data...
prettyprinter.h Loading commit data...
scopeinfo.cc Loading commit data...
scopes.cc Loading commit data...
scopes.h Loading commit data...
variables.cc Loading commit data...
variables.h Loading commit data...