• Jakob Gruber's avatar
    [compiler] Ensure the function is compiled after CompileOptimized · ad522951
    Jakob Gruber authored
    The Code object returned by CompileOptimized runtime functions is
    tail-called to continue execution. This Code object should not be the
    CompileLazy builtin.
    
    We ran into this case when the requested code kind was available, but
    not attached - here we returned early from Compiler::CompileOptimized
    without doing anything.
    
    To satisfy the postcondition, this CL removes the early exit and lets
    GetOptimizedCode handle the cached cases (both the FeedbackVector's
    optimized code cache, and the isolate cache).
    
    Bug: v8:8888
    Change-Id: Ie60e6cf27b697ea6685441184b65f28f3583f75a
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2557500Reviewed-by: 's avatarMythri Alle <mythria@chromium.org>
    Commit-Queue: Jakob Gruber <jgruber@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#71358}
    ad522951
compiler.cc 128 KB