• Benedikt Meurer's avatar
    [debugger] Properly remove promises from prediction stack upon `await`. · e6f991c8
    Benedikt Meurer authored
    Make sure that we pop the async function promise from the catch
    prediction stack when `await`ing inside an async function, and
    push it back onto the stack when we're resuming execution. This
    is to ensure that we don't leak memory when there are suspended
    async functions while navigating away to a new page.
    
    Bug: chromium:968603
    Change-Id: I004715bc95d426958f1a89ce76c4856da1d4ceee
    Cq-Include-Trybots: luci.chromium.try:linux-rel,win7-rel
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1655652
    Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
    Commit-Queue: Yang Guo <yangguo@chromium.org>
    Auto-Submit: Benedikt Meurer <bmeurer@chromium.org>
    Reviewed-by: 's avatarYang Guo <yangguo@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#62117}
    e6f991c8
builtins-async-function-gen.cc 13.4 KB