• Leszek Swirski's avatar
    [maglev] Allow deopts from registers and untagged values · 213194f7
    Leszek Swirski authored
    Remove the "bad idea" of spilling whenever there's a deopt, and instead
    use the deoptimizer's register support.
    
    In addition, allow untagged int32 inputs into deopts -- if tagging these
    overflows, then the deoptimizer will automagically create a HeapNumber
    for us. Hooray for code reuse!
    
    Drive-bys:
        1. Print input locations for deopt checkpoints.
        2. Fix ordering of UpdateUse(input)/UpdateUse(deopt) to match the
           use marker.
    
    Bug: v8:7700
    Change-Id: I8069f5bc1bdcd7746a516c7a5cc7e26a15d4e5cb
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3578805Reviewed-by: 's avatarVictor Gomes <victorgomes@chromium.org>
    Commit-Queue: Leszek Swirski <leszeks@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#79950}
    213194f7
maglev-graph-printer.cc 17.2 KB