• Thibaud Michaud's avatar
    Reland "[wasm] Resume suspender on resolved promise" · f942f656
    Thibaud Michaud authored
    This is a reland of a865d16b
    
    Changes:
    - Make the next ID atomic
    - Leave more space for runtime calls in debug mode
    
    Original change's description:
    > [wasm] Resume suspender on resolved promise
    >
    > Implement the WasmResume builtin, which resumes a wasm suspender
    > when the corresponding JS promise resolves.
    >
    > Drive-by 1: Fix detection of empty stacks in the stack frame iterator.
    > Drive-by 2: Add a stack ID for better tracing.
    >
    > R=ahaas@chromium.org
    > CC=​fgm@chromium.org
    >
    > Bug: v8:12191
    > Change-Id: Ifa3f00c4259f802292b04d426c739e9b551f87b9
    > Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3420827
    > Reviewed-by: Andreas Haas <ahaas@chromium.org>
    > Reviewed-by: Jakob Kummerow <jkummerow@chromium.org>
    > Commit-Queue: Thibaud Michaud <thibaudm@chromium.org>
    > Cr-Commit-Position: refs/heads/main@{#78842}
    
    Bug: v8:12191
    Change-Id: I3c231690b27be79a0c00e13043342bb4a3628886
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3427203Reviewed-by: 's avatarAndreas Haas <ahaas@chromium.org>
    Reviewed-by: 's avatarJakob Kummerow <jkummerow@chromium.org>
    Commit-Queue: Thibaud Michaud <thibaudm@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#78890}
    f942f656
stack-switching.js 4.17 KB