• Jakob Gruber's avatar
    [osr] Add new osr-related fields and accessors to FeedbackVector · 14615a8d
    Jakob Gruber authored
    This adds the OSR state to the FV, where the state consists of the
    osr_urgency (same semantics as previously on the BytecodeArray) and a
    maybe_has_optimized_osr_code bit (set if any optimized OSR Turbofan code
    exists for this function).
    
    The two are packed into one field for efficient OSR checks in generated
    code (to be implemented in the followup CL).
    
    Bug: v8:12161
    Change-Id: Id4edb8f5db0bf02e0d04b87aeec8d8c53e213503
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3596120
    Commit-Queue: Jakob Linke <jgruber@chromium.org>
    Auto-Submit: Jakob Linke <jgruber@chromium.org>
    Reviewed-by: 's avatarLeszek Swirski <leszeks@chromium.org>
    Commit-Queue: Leszek Swirski <leszeks@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#80053}
    14615a8d
feedback-vector-inl.h 16.8 KB