v8/test
Seth Brenith 3c20dfeda1 [debug] Don't crash when breaking on entry to functions with heap vars
Any function with heap-allocated variables starts by creating and
pushing a new context for its execution. When entering the debugger due
to the stack check in the beginning of InterpreterEntryTrampoline, the
function has not yet had a chance to push that new context. The code in
ScopeIterator currently assumes that any function which needs a context
already has one by the time the debugger attempts to iterate scopes, but
in this case that assumption is invalid, which can cause a null deref.

This change introduces a new function ScopeIterator::NeedsAndHasContext
to replace previous calls to current_scope_->NeedsContext(). This new
function checks for the case where the current scope matches the closure
scope but the context matches the containing context for the function,
which implies that the function has not yet pushed its own context.

Bug: v8:10319, chromium:1038747
Change-Id: I29636f269c44d35b68d8446769d17170eed50e89
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2168021
Commit-Queue: Seth Brenith <seth.brenith@microsoft.com>
Reviewed-by: Simon Zünd <szuend@chromium.org>
Cr-Commit-Position: refs/heads/master@{#67519}
2020-05-01 18:21:36 +00:00
..
benchmarks Create master files per benchmark in csuite 2020-02-26 10:37:33 +00:00
cctest [wasm-simd] Update SIMD opcode numbers as per the Spec change 2020-05-01 18:05:46 +00:00
common [wasm] Remove interpreter compilation hint 2020-04-30 09:50:15 +00:00
debugger [debug] Don't crash when breaking on entry to functions with heap vars 2020-05-01 18:21:36 +00:00
debugging Wasm debugging with LLDB: access Wasm engine state 2020-04-28 01:02:32 +00:00
fuzzer [wasm-simd][fuzzer] Add more f32x4 ops to fuzzer 2020-04-30 22:21:40 +00:00
inspector [debug][liftoff] Test inspection and stepping at trap 2020-04-29 16:05:22 +00:00
intl Roll ICU from 65.1 to 67.1 (f2223961) & correct tests 2020-04-30 10:45:15 +00:00
js-perf-test [cleanup][test] Fix typo in js-perf-test/Scope/with.js 2020-02-12 10:59:54 +00:00
memory [owners] Remove redundant OWNERS files in test/ 2019-06-24 12:44:32 +00:00
message [wasm] Remove the --wasm-interpret-all flag 2020-04-28 08:14:52 +00:00
mjsunit [wasm-simd] Update SIMD opcode numbers as per the Spec change 2020-05-01 18:05:46 +00:00
mkgrokdump [heap] Enable Verify for RO_SPACE when it is shared 2019-11-04 09:55:45 +00:00
mozilla Remove and update some outdated TODO(mstarzinger). 2019-12-13 10:18:04 +00:00
test262 Roll test262 2020-04-30 15:09:27 +00:00
torque [torque] avoid ambiguity if a catch catches from other handlers 2020-05-01 14:47:01 +00:00
unittests Add bit left-rotation machine operator 2020-05-01 18:09:16 +00:00
wasm-api-tests heap: Rework forced GCs 2020-04-30 11:23:15 +00:00
wasm-js [wasm] Remove remaining multi-value tests 2020-04-22 19:49:03 +00:00
wasm-spec-tests [wasm] Remove remaining multi-value tests 2020-04-22 19:49:03 +00:00
webkit [class] Improve error message for calling anonymous class constructors 2019-12-05 21:13:07 +00:00
BUILD.gn [preparser] deprecate stand-alone "preparser" test-suite 2019-11-20 08:52:59 +00:00
OWNERS Use relative paths to OWNERS files 2019-08-12 13:52:52 +00:00