• 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
Name
Last commit
Last update
..
arm Loading commit data...
arm64 Loading commit data...
ia32 Loading commit data...
mips Loading commit data...
mips64 Loading commit data...
ppc Loading commit data...
s390 Loading commit data...
x64 Loading commit data...
DEPS Loading commit data...
liftoff-assembler-defs.h Loading commit data...
liftoff-assembler.cc Loading commit data...
liftoff-assembler.h Loading commit data...
liftoff-compiler.cc Loading commit data...
liftoff-compiler.h Loading commit data...
liftoff-register.h Loading commit data...