• Andreas Haas's avatar
    [wasm] Do not serialize modules that don't contain TurboFan code · 272e5a87
    Andreas Haas authored
    The wasm serialization format only contains TurboFan code. All other
    functions are only represented by placeholders. With this CL
    serialization fails if the serialized module does not contain any
    TurboFan functions and would therefore consist only of placeholders.
    
    This is a defense in depth approach, because ideally serialization
    only gets triggered when TurboFan code is available. However, in some
    scenarios like debugging it can happen that modules without TurboFan
    code get serialized.
    
    Bug: v8:12281
    Change-Id: Ib05430ff89eb2317da80fc0d086ce1d7ab0e919d
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3212510
    Commit-Queue: Andreas Haas <ahaas@chromium.org>
    Reviewed-by: 's avatarJakob Kummerow <jkummerow@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#77715}
    272e5a87
test-serialization-with-lazy-compilation.js 1.5 KB