• Paolo Severini's avatar
    [wasm] Generate distinct IR trace files for Wasm import call wrappers · 037e64c8
    Paolo Severini authored
    Currently, when running with --trace-turbo, V8 generates a different
    .json file for each wasm-to-js thunk that it compiles, but these files
    all have the same name "turbo-wasm-to-js-0.json", and only one file is
    generated.
    This makes it difficult to actually examine the difference in the IR
    for this call wrappers produced for different signatures.
    
    This patch fixes this by naming each trace file as:
    "wasm-to-js-<kind>-<signature>-0.json", like for example
    "turbo-wasm-to-js-5-ii-i-0.json".
    
    Change-Id: Iebb73829cddd4f6bbf9d02ed1ce94a80dcfa5ca7
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2316834
    Commit-Queue: Paolo Severini <paolosev@microsoft.com>
    Reviewed-by: 's avatarClemens Backes <clemensb@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#69085}
    037e64c8
wasm-module.cc 25.7 KB