• Clemens Backes's avatar
    [wasm] Fix C API for dynamic tiering · 23611173
    Clemens Backes authored
    The Wasm C API currently disabled dynamic tiering, in order to have
    deterministic behaviour for serialization of Wasm modules.
    As dynamic tiering is now shipped, also the C API should follow.
    
    Serialization of a Wasm module now just serializes the current state, so
    embedders are responsible for warming up a module before serializing it.
    
    If requested, we can add an internal API to enforce full tier-up of all
    functions, but we will leave that for later.
    
    R=ahaas@chromium.org, jkummerow@chromium.org
    
    Bug: v8:12899
    Change-Id: I55df63f0b6c1f285e4983f9f7d5fb66aa41637bd
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3660261Reviewed-by: 's avatarJakob Kummerow <jkummerow@chromium.org>
    Reviewed-by: 's avatarAndreas Haas <ahaas@chromium.org>
    Commit-Queue: Clemens Backes <clemensb@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#80727}
    23611173
c-api.cc 108 KB