• Leszek Swirski's avatar
    [scopes] Push sloppy eval check through eval scopes · f6057ff1
    Leszek Swirski authored
    Sloppy eval extends the outer declaration scope's context. This is also
    true for sloppy eval inside of other sloppy evals -- the outer declaration
    scope's context is extended rather than the outer sloppy eval's
    declaration scope. However, we consider eval scopes to also be declaration
    scopes, for the purposes of strict eval and caching lookup variables. So,
    we need to make sure that we skip through sloppy eval scopes when marking
    a scope as calls_sloppy_eval.
    
    In fact, we implement this rather as never marking sloppy eval scopes as
    calls_sloppy_eval, under the assumption that the parent scope will already
    have been marked calls_sloppy_eval by the outer eval.
    
    As a drive-by, fix a TODO to move this logic from calls_sloppy_eval() to
    RecordEvalCall(), rename the variable to something more meaningful, and
    make Snapshotting to use a new calls_eval bit on Scope.
    
    Bug: chromium:996751
    Change-Id: I27ccc7ef429a7ce60b3bb02bf64a3820ae4a2c36
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1773247
    Commit-Queue: Toon Verwaest <verwaest@chromium.org>
    Reviewed-by: 's avatarToon Verwaest <verwaest@chromium.org>
    Auto-Submit: Leszek Swirski <leszeks@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#63455}
    f6057ff1
Name
Last commit
Last update
benchmarks Loading commit data...
build_overrides Loading commit data...
custom_deps Loading commit data...
docs Loading commit data...
gni Loading commit data...
include Loading commit data...
infra Loading commit data...
samples Loading commit data...
src Loading commit data...
test Loading commit data...
testing Loading commit data...
third_party Loading commit data...
tools Loading commit data...
.clang-format Loading commit data...
.clang-tidy Loading commit data...
.editorconfig Loading commit data...
.flake8 Loading commit data...
.git-blame-ignore-revs Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gn Loading commit data...
.vpython Loading commit data...
.ycm_extra_conf.py Loading commit data...
AUTHORS Loading commit data...
BUILD.gn Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
COMMON_OWNERS Loading commit data...
ChangeLog Loading commit data...
DEPS Loading commit data...
ENG_REVIEW_OWNERS Loading commit data...
INFRA_OWNERS Loading commit data...
INTL_OWNERS Loading commit data...
LICENSE Loading commit data...
LICENSE.fdlibm Loading commit data...
LICENSE.strongtalk Loading commit data...
LICENSE.v8 Loading commit data...
LICENSE.valgrind Loading commit data...
MIPS_OWNERS Loading commit data...
OWNERS Loading commit data...
PPC_OWNERS Loading commit data...
PRESUBMIT.py Loading commit data...
README.md Loading commit data...
S390_OWNERS Loading commit data...
WATCHLISTS Loading commit data...
codereview.settings Loading commit data...