• Manos Koukoutos's avatar
    [wasm][turbofan] Set up basic inlining infrastructure · ab4cf929
    Manos Koukoutos authored
    We introduce basic wasm inlining infrastructure behind a flag. The
    implementation is currently incomplete. Additionally, we always inline
    the function at index 0; proper inlining heuristics will be added later.
    
    Changes:
    - Rename WasmInliningPhase -> JSWasmInliningPhase
    - Introduce WasmInliningPhase and WasmInliner.
    - Pass additional parameters as needed to GenerateCodeForWasmFunction.
    - Remove EnsureEnd in WasmGraphAssembler. Create end node at the start
      of compilation.
    - Add a simple test.
    
    Bug: v8:12166
    Change-Id: Ifd7006ba378e9f74cd248b71e16869fbbb8a82be
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3141575
    Commit-Queue: Manos Koukoutos <manoskouk@chromium.org>
    Reviewed-by: 's avatarGeorg Neis <neis@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#76689}
    ab4cf929
wasm-compiler.cc 326 KB