• Andreas Haas's avatar
    [wasm] Force liftoff compilation after deserialization · 5c7e3230
    Andreas Haas authored
    The serialized module contains information for each function whether the
    serialized code for the function exists, and whether the function has
    been executed before serialization. The latter information is used to
    decide if the function should get compiled eagerly after deserialization
    (in case the function has been executed before serialization), or if the
    function should get compiled lazily because it will probably not be
    executed anytime soon.
    
    So far this code only worked for eager compilation. When lazy compilation
    was enabled, all functions would get compiled lazily after
    deserialization. With this CL the behavior described above is extended to
    lazy compilation.
    
    R=clemensb@chromium.org
    
    Bug: v8:12926
    Change-Id: Ifd6f400396222105feffa472c2e8787e1358220e
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3807583Reviewed-by: 's avatarClemens Backes <clemensb@chromium.org>
    Commit-Queue: Andreas Haas <ahaas@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#82171}
    5c7e3230
serialization-with-compilation-hints.js 1.83 KB