v8/test/inspector
Benedikt Meurer 379331b7a4 [debugger] Don't attach source positions to implicit returns.
Previously we'd attach source positions to implicit returns that are
generated when leaving an async function with a promise rejection. This
was due to the use of `kNoSourcePosition` on the `end_position` in the
`ReturnStatement` nodes as indicator to pick the return position from
the function literal, instead of really not putting a source position on
that specific `Return` bytecode.

This CL adds a dedicated marker to `ReturnStatement` to express that the
`BytecodeGenerator` should put the return position from the function
literal there instead of overloading the meaning of `kNoSourcePosition`.

Bug: chromium:901819, chromium:782461
Fixed: chromium:1199919, chromium:1201706
Change-Id: I3647e0c3d711e9c3d6ae44606b70ec92ad82e1cf
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2859945
Auto-Submit: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Leszek Swirski <leszeks@chromium.org>
Reviewed-by: Leszek Swirski <leszeks@chromium.org>
Cr-Commit-Position: refs/heads/master@{#74301}
2021-04-30 12:33:29 +00:00
..
console Reland 2 ScriptContext CLs 2020-01-22 15:40:06 +00:00
counters [DevTools] Re-implemented Profiler.getRuntimeCallStats. 2020-09-08 18:32:05 +00:00
cpu-profiler [profiler] Allow empty source URL for asm modules 2021-03-10 09:49:02 +00:00
debugger [debugger] Don't attach source positions to implicit returns. 2021-04-30 12:33:29 +00:00
heap-profiler heap-snapshot: Add detachedness field 2020-09-09 14:42:41 +00:00
regress [debugger] Don't attach source positions to implicit returns. 2021-04-30 12:33:29 +00:00
runtime Fix addBinding when called for multiple contexts 2021-04-26 09:49:09 +00:00
runtime-call-stats [DevTools] Re-implemented Profiler.getRuntimeCallStats. 2020-09-08 18:32:05 +00:00
sessions Reland "[inspector] Report [[Prototype]] as internal property." 2021-04-12 08:44:13 +00:00
type-profiler [tests] Filter out non-existent methods in inspector tests 2020-01-17 12:21:29 +00:00
BUILD.gn [build] Fold v8_wrappers into v8_libbase 2021-02-25 10:56:20 +00:00
DEPS [inspector][fuzzer] Extract functionality for reuse 2020-10-28 08:37:25 +00:00
DIR_METADATA Add DIR_METADATA files to v8. 2020-10-20 22:12:28 +00:00
frontend-channel.h [cleanup] Remove DISALLOW_COPY_AND_ASSIGN in test/{cctest,fuzzer,inspector} 2020-11-10 01:24:43 +00:00
inspector-test.cc [cleanup][test] Remove redundant NOLINT annotations 2021-04-30 11:46:14 +00:00
inspector.status [debugger] Remove "Restart frame" feature. 2021-04-29 13:08:14 +00:00
isolate-data.cc [inspector][fuzzer] Handle termination while creating context 2021-03-23 08:58:14 +00:00
isolate-data.h [inspector][fuzzer] Handle termination while creating context 2021-03-23 08:58:14 +00:00
json-parse-expected.txt [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
json-parse.js [inspector] Refactor protocol-test.js 2017-05-19 00:35:45 +00:00
OWNERS Add DIR_METADATA files to v8. 2020-10-20 22:12:28 +00:00
print-method-not-found-expected.txt [tests] Filter out non-existent methods in inspector tests 2020-01-17 12:21:29 +00:00
print-method-not-found.js [tests] Filter out non-existent methods in inspector tests 2020-01-17 12:21:29 +00:00
protocol-test.js DevTools: add support for system-unique execution context ids 2020-12-23 05:15:47 +00:00
task-runner.cc [cleanup][test] Remove redundant NOLINT annotations 2021-04-30 11:46:14 +00:00
task-runner.h [inspector] do not interrupt with pause when running regexp 2020-12-24 11:06:35 +00:00
tasks.cc [api] Make ScriptOrigin take isolate as parameter 2021-01-14 23:51:04 +00:00
tasks.h [cleanup] Remove DISALLOW_COPY_AND_ASSIGN in test/{cctest,fuzzer,inspector} 2020-11-10 01:24:43 +00:00
testcfg.py [test] Load missing file to Android devices for inspector test suite 2020-07-21 14:11:11 +00:00
utils.cc [inspector][fuzzer] Extract functionality for reuse 2020-10-28 08:37:25 +00:00
utils.h [inspector][fuzzer] Extract functionality for reuse 2020-10-28 08:37:25 +00:00
wasm-inspector-test.js [inspector][wasm] Stop relying on //# sourceURL annotation. 2021-04-09 09:43:53 +00:00