• Lu Yahan's avatar
    [riscv64][wasm] Count direct calls · 73d76e01
    Lu Yahan authored
    Port 9ca0bfef
    
    Original Commit Message:
    
        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.
    
    Change-Id: I91e34d765e5a08c382d678acdb0fca57d5d3fb7e
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3578235
    Auto-Submit: Yahan Lu <yahan@iscas.ac.cn>
    Reviewed-by: 's avatarji qiu <qiuji@iscas.ac.cn>
    Commit-Queue: ji qiu <qiuji@iscas.ac.cn>
    Cr-Commit-Position: refs/heads/main@{#79878}
    73d76e01
macro-assembler-riscv64.h 53 KB