• Thibaud Michaud's avatar
    Reland "Reland "[wasm] Resume suspender on resolved promise"" · dfbe5028
    Thibaud Michaud authored
    This is a reland of f942f656
    
    Changes: Change the order of initialization for wasm continuations to
    ensure object integrity if a GC happens during allocation. Also add
    missing handles.
    
    Original change's description:
    > Reland "[wasm] Resume suspender on resolved promise"
    >
    > 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/+/3427203
    > 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@{#78890}
    
    Bug: v8:12191
    Change-Id: I0e1362d3a9da1fd8c0d600ad9776ce2fd26c6a52
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3434145Reviewed-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@{#78922}
    dfbe5028
stack-switching.js 4.17 KB