• yangguo's avatar
    [debugger] fix debug-evaluate wrt shadowed context var. · 089edbfa
    yangguo authored
    Debug-evaluate used to resolve stack variables that shadow
    context variables incorrectly, since the stack variable is
    not visible in the context chain.
    
    To fix this, we limit local variables accessible by debug-
    evaluate to the ones directly referenced inside the function.
    What is not referenced by the function itself, is considered
    optimized out and not accessible by debug-evaluate.
    
    To achieve this, we duplicate the entire context chain up to
    the native context, and write back changes after debug-
    evaluate. Changes to the original context chain will however
    be overwritten. This already happens for catch and block
    scopes though.
    
    Also fix a crash caused by declaring variables inside debug-
    evaluate.
    
    R=mstarzinger@chromium.org
    BUG=v8:4593
    LOG=N
    
    Review URL: https://codereview.chromium.org/1500933002
    
    Cr-Commit-Position: refs/heads/master@{#32828}
    089edbfa
Name
Last commit
Last update
benchmarks Loading commit data...
build Loading commit data...
docs 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/binutils Loading commit data...
tools Loading commit data...
.clang-format Loading commit data...
.gitignore Loading commit data...
.ycm_extra_conf.py Loading commit data...
AUTHORS Loading commit data...
BUILD.gn Loading commit data...
ChangeLog Loading commit data...
DEPS Loading commit data...
LICENSE Loading commit data...
LICENSE.strongtalk Loading commit data...
LICENSE.v8 Loading commit data...
LICENSE.valgrind Loading commit data...
Makefile Loading commit data...
Makefile.android Loading commit data...
Makefile.nacl Loading commit data...
OWNERS Loading commit data...
PRESUBMIT.py Loading commit data...
README.md Loading commit data...
WATCHLISTS Loading commit data...
codereview.settings Loading commit data...
snapshot_toolchain.gni Loading commit data...