• sreten.kovacevic's avatar
    MIPS[64]: Port `[arm] Introduce UseScratchRegisterScope` · 3eb4de34
    sreten.kovacevic authored
    Add UseScratchRegisterScope for MIPS and use it instead of using at register directly.
    
    Original commit message:
    `Introduce a stripped down version of UseScratchRegisterScope for ARM and use it
    inside the assembler and macro-assembler. At the exception of the Call
    instructions, we now use this scope instead of using the ip register
    directly. This is inspired from how the ARM64 backend works.
    
    In general, the benefit of doing this is we can catch cases where ip is being
    used both by the caller and by the assembler. But more specifically, TurboFan
    reserves r9 as an extra scratch register because ip can already be used by the
    assembler. With this utility, we can isolate the cases in the code generator
    which need an extra register and potentially fix them, allowing us to give r9
    back to the register allocator.
    
    This patch uncovered places in the assembler where we were using ip
    unconditionally when we could have re-used the destination register instead.`
    
    Bug: 
    Change-Id: I1a35c1661579882801605337abfc95f75b47f052
    Reviewed-on: https://chromium-review.googlesource.com/574923
    Commit-Queue: Ivica Bogosavljevic <ivica.bogosavljevic@imgtec.com>
    Reviewed-by: 's avatarIvica Bogosavljevic <ivica.bogosavljevic@imgtec.com>
    Cr-Commit-Position: refs/heads/master@{#46963}
    3eb4de34
Name
Last commit
Last update
..
OWNERS Loading commit data...
assembler-mips64-inl.h Loading commit data...
assembler-mips64.cc Loading commit data...
assembler-mips64.h Loading commit data...
code-stubs-mips64.cc Loading commit data...
code-stubs-mips64.h Loading commit data...
codegen-mips64.cc Loading commit data...
codegen-mips64.h Loading commit data...
constants-mips64.cc Loading commit data...
constants-mips64.h Loading commit data...
cpu-mips64.cc Loading commit data...
deoptimizer-mips64.cc Loading commit data...
disasm-mips64.cc Loading commit data...
frames-mips64.cc Loading commit data...
frames-mips64.h Loading commit data...
interface-descriptors-mips64.cc Loading commit data...
macro-assembler-mips64.cc Loading commit data...
macro-assembler-mips64.h Loading commit data...
simulator-mips64.cc Loading commit data...
simulator-mips64.h Loading commit data...