• Benedikt Meurer's avatar
    [debug] Consolidate promise stack runtime functions. · cfaf8957
    Benedikt Meurer authored
    Following up on https://crrev.com/c/3383775 I realized that we could
    just use the existing %DebugPopPromise and %DebugPushPromise runtime
    functions, which do exactly the same job as %DebugAsyncFunctionFinished
    and %DebugAsyncFunctionResumed, and are already used in other places of
    promise instrumentation.
    
    We can also remove %DebugAsyncFunctionEntered and utilize the logic in
    NewJSPromise() to deal with the various promise hooks, and otherwise go
    with %DebugPushPromise for the debugger side.
    
    Bug: chromium:1280519
    Change-Id: I79c77236f19c8783161c1eee36d2a16d52c60e82
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3386382Reviewed-by: 's avatarLeszek Swirski <leszeks@chromium.org>
    Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
    Auto-Submit: Benedikt Meurer <bmeurer@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#78626}
    cfaf8957
builtins-async-function-gen.cc 11.4 KB