• Clemens Hammacher's avatar
    [Liftoff] Use better value for "undefined Register" · bf08329c
    Clemens Hammacher authored
    There is no "no_reg" LiftoffRegister, so we sometimes have to
    initialize it to an arbitrary value, because it will be overwritten
    later anyway. One solution would be to wrap it in base::Optional, but
    that does not really reflect the right semantics, since it's not
    optional, but just set at a later point.
    So far, we used the register with code 0, but on some platforms (e.g.
    mips), register 0 is not a Liftoff cache register. So just use the
    first gp cache register instead.
    
    R=ahaas@chromium.org
    
    Bug: chromium:883280
    Change-Id: I157384ad5a9ca6a20aa198f3217a7d754dc53e30
    Reviewed-on: https://chromium-review.googlesource.com/1221216
    Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
    Reviewed-by: 's avatarAndreas Haas <ahaas@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#55835}
    bf08329c
liftoff-assembler.cc 24.7 KB