• yangguo's avatar
    [debugger] correctly find function context. · 835b0383
    yangguo authored
    In the debugger we are interested in getting the context for the
    current frame, which is usually a function context. To do that,
    we used to call Context::declaration_context, which may also
    return a block context. This is wrong and can lead to crashes.
    Instead, we now use a newly introduced Context::closure_context,
    which skips block contexts. This works fine for the debugger,
    since we have other means to find and materialize block contexts.
    
    R=rossberg@chromium.org
    BUG=chromium:582051
    LOG=N
    
    Review URL: https://codereview.chromium.org/1648263002
    
    Cr-Commit-Position: refs/heads/master@{#33627}
    835b0383
Name
Last commit
Last update
..
benchmarks Loading commit data...
cctest Loading commit data...
fuzzer Loading commit data...
intl Loading commit data...
js-perf-test Loading commit data...
memory Loading commit data...
message Loading commit data...
mjsunit Loading commit data...
mozilla Loading commit data...
preparser Loading commit data...
promises-aplus Loading commit data...
simdjs Loading commit data...
test262 Loading commit data...
unittests Loading commit data...
webkit Loading commit data...
bot_default.gyp Loading commit data...
bot_default.isolate Loading commit data...
default.gyp Loading commit data...
default.isolate Loading commit data...
ignition.gyp Loading commit data...
ignition.isolate Loading commit data...
optimize_for_size.gyp Loading commit data...
optimize_for_size.isolate Loading commit data...