• Clemens Backes's avatar
    [wasm] Fix tier down after deserialization · 2547e1ce
    Clemens Backes authored
    Since the compilation progress was never initialized on deserialization,
    tier down was always skipped on such modules.
    By initializing to the expected state after deserialization (i.e. all
    code as TurboFan code), we make sure that later recompilation works as
    expected.
    
    Drive-by: Fix an unnecessary copy of a {shared_ptr} in deserialization.
    
    R=thibaudm@chromium.org
    
    Bug: chromium:1110258
    Change-Id: Ia12af888e4b11aabfb8cd4e1201e9fa3cd2ceb47
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2323355
    Commit-Queue: Clemens Backes <clemensb@chromium.org>
    Reviewed-by: 's avatarThibaud Michaud <thibaudm@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#69458}
    2547e1ce
test-wasm-serialization.cc 12.2 KB