v8/test
Benedikt Meurer 536e96cc1a [debug] Implement stepping out of async functions in the debugger.
Previously the inspector was trying to handle step-out for async
functions by annotating the async stacks, but this was merely a
hack and didn't work reliably

(a) when the async caller that is `await`ing the result of the
    callee was still in the synchronous part (because then there
    was no async task yet in the inspector), or
(b) not at all when the async stack tracking wasn't enabled or the
    maximum async stack depth was too small.

This CL replaces that hack with a pragmatic solution inside the
V8 debugger, where upon `await` we memorize the async function
object of the caller on the outer promise of the callee, and when
stepping out of the callee we check whether the returned promise
has a memorized async function object and if so, we schedule that
to resume.

This CL thereby effectively reverts https://crrev.com/c/1054618
and replaces it with a V8 debug solution, and thereby further
reduces the (memory) overhead of an AsyncStackTrace.

Fixed: chromium:1246867
Bug: v8:6161, v8:7753, chromium:1277451, chromium:1280519
Change-Id: I6aa79e90f49d204f66bfd37e7a328c7fb8d635b1
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3439865
Reviewed-by: Jaroslav Sevcik <jarin@chromium.org>
Auto-Submit: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
Cr-Commit-Position: refs/heads/main@{#78990}
2022-02-08 06:32:16 +00:00
..
benchmarks [tests] Skip slow tests on certain configurations 2022-01-31 13:52:22 +00:00
bigint [bigint][test] Better random input generation 2021-09-08 15:39:27 +00:00
cctest [runtime] Use a hashtable in ScriptContextTable 2022-02-07 16:06:15 +00:00
common [wasm-gc] Remove rtts with depth 2022-01-31 09:55:05 +00:00
debugger Reland "[class] implement reparsing of class instance member initializers" 2022-01-24 16:24:35 +00:00
debugging
fuzzer [wasm][fuzzer] Temporarily disable gc fuzzing 2022-01-31 13:57:57 +00:00
fuzzilli
inspector [debug] Implement stepping out of async functions in the debugger. 2022-02-08 06:32:16 +00:00
intl [infra] Testrunner fixes for Python3 compatibility 2022-02-04 17:58:05 +00:00
js-perf-test [js-perf-test] Performance benchmarks for BigInt left and right shift 2021-12-02 14:16:15 +00:00
memory
message [errors] Enhance the DataView construction error message 2022-02-07 12:02:48 +00:00
mjsunit [clusterfuzz] Split directory structure 2022-02-07 15:38:46 +00:00
mkgrokdump V8 Sandbox rebranding 2021-12-15 17:09:36 +00:00
mozilla [test] Disable slow mozilla tests on Windows 2022-01-20 13:45:29 +00:00
test262 [Temporal] Add Temporal.(Calendar|TimeZone).from 2022-02-05 07:42:23 +00:00
torque Reland "Reland "[Torque] Generalize Torque literals to larger size"" 2022-02-04 09:40:24 +00:00
unittests Plumb Isolate through HasProperty and friends 2022-02-05 00:39:25 +00:00
wasm-api-tests [wasm] Deserialization should trigger FinishedTopTierCompilation event 2022-01-21 13:21:36 +00:00
wasm-js [wasm] Update spec tests 2022-01-18 14:44:40 +00:00
wasm-spec-tests [wasm] Update spec tests 2022-01-18 14:44:40 +00:00
webkit [test] Disable failing MSVC test 2021-12-01 15:51:59 +00:00
BUILD.gn
OWNERS