• Jakob Gruber's avatar
    [snapshot] Deoptimize all in --stress-snapshot mode · 6888d68b
    Jakob Gruber authored
    We don't yet support serialization of optimized code, so whenever the
    serializer encounters an 'unexpected' Code object, it aborts.
    
    Snapshot::ClearReconstructableDataForSerialization does not clear
    weak links created through compilation dependencies. These links
    make Code objects reachable even though recompilable data has been
    cleared from JSFunctions/SFIs/JSRegExps.
    
    Forcing a full deopt of the entire isolate is the simple of way of
    solving this until serialization support for optimized code has been
    implemented.
    
    Bug: v8:10416,v8:10500,v8:10518
    Change-Id: Ie1386cc9fa983b435825afa15441df38409bff98
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2196122
    Auto-Submit: Jakob Gruber <jgruber@chromium.org>
    Reviewed-by: 's avatarLeszek Swirski <leszeks@chromium.org>
    Reviewed-by: 's avatarClemens Backes <clemensb@chromium.org>
    Commit-Queue: Clemens Backes <clemensb@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#67737}
    6888d68b
d8.cc 133 KB