• Mythri A's avatar
    Reland "[compiler] Cache OSR optimized code" · fcff2437
    Mythri A authored
    This is a reland of cfb10028
    with a fix for failures in lite mode.
    
    Original change's description:
    > [compiler] Cache OSR optimized code
    >
    > With lazy feedback allocation, for functions that get OSRed we may
    > not have feedback for the initial part of the functions since feedback
    > vectors might be allocated after the function started executing. Hence
    > we would not be able to optimize the function on the next call. This
    > means we may have to OSR twice before we actually optimize function.
    > This cl introduces OSR cache, so we could reuse the optimized code. One
    > side effect of this cl is that the OSRed code won't be function context
    > specialized anymore.
    >
    > Bug: chromium:987523
    > Change-Id: Ic1e2abca85ccfa0a66a0fa83f7247392cc1e7cb2
    > Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1796329
    > Commit-Queue: Mythri Alle <mythria@chromium.org>
    > Reviewed-by: Ross McIlroy <rmcilroy@chromium.org>
    > Reviewed-by: Georg Neis <neis@chromium.org>
    > Cr-Commit-Position: refs/heads/master@{#64014}
    
    Bug: chromium:987523
    Change-Id: I9c782242b07b24d15247533ab4ee044334b429ff
    TBR: rmcilroy@chromium.org
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1826898
    Commit-Queue: Mythri Alle <mythria@chromium.org>
    Reviewed-by: 's avatarGeorg Neis <neis@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#64023}
    fcff2437
osr-optimized-code-cache.h 3 KB