• Jakob Kummerow's avatar
    [wasm] Count direct calls · 9ca0bfef
    Jakob Kummerow authored
    This adds feedback collection to count the number of executions of
    call_direct instructions in Liftoff code. The purpose is better
    inlining decisions in Turbofan, which are enabled by having call
    count information for all kinds of calls.
    The new feature is gated on --wasm-speculative-inlining. While
    direct calls don't need to speculate about their target, the whole
    feedback collection infrastructure depends on that flag.
    
    Bug: v8:12166
    Change-Id: Ie24a988fcea631f370188dc21e60a5fac923dd3d
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3571807Reviewed-by: 's avatarManos Koukoutos <manoskouk@chromium.org>
    Commit-Queue: Jakob Kummerow <jkummerow@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#79846}
    9ca0bfef
module-compiler.cc 157 KB