• Toon Verwaest's avatar
    [parser] Cache scope-info-backed lookup results on entry scope · 11a25229
    Toon Verwaest authored
    We'll always lookup variables in the entry scope-info-backed chain through a
    single entrypoint, hence we can cache any variables we create in that chain on
    the entry-point's VariableMap. Otherwise we always have to redo all negative
    lookups until we hit the scope that introduces it (the script scope being the
    final possible scope to introduce it).
    
    This should allow us to get rid of the ContextSlotCache as well.
    
    Change-Id: I2dc2c9c35d69f35dab3fe3d0353aba1ac68515a5
    Reviewed-on: https://chromium-review.googlesource.com/c/1337729Reviewed-by: 's avatarIgor Sheludko <ishell@chromium.org>
    Commit-Queue: Toon Verwaest <verwaest@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#57542}
    11a25229
Name
Last commit
Last update
..
OWNERS Loading commit data...
ast-function-literal-id-reindexer.cc Loading commit data...
ast-function-literal-id-reindexer.h Loading commit data...
ast-source-ranges.h Loading commit data...
ast-traversal-visitor.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...
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...
scopes-inl.h Loading commit data...
scopes.cc Loading commit data...
scopes.h Loading commit data...
variables.cc Loading commit data...
variables.h Loading commit data...