SharedICRegisters-mips64.h (1492B)
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- 2 * vim: set ts=8 sts=2 et sw=2 tw=80: 3 * This Source Code Form is subject to the terms of the Mozilla Public 4 * License, v. 2.0. If a copy of the MPL was not distributed with this 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 6 7 #ifndef jit_mips64_SharedICRegisters_mips64_h 8 #define jit_mips64_SharedICRegisters_mips64_h 9 10 #include "jit/mips64/Assembler-mips64.h" 11 #include "jit/Registers.h" 12 #include "jit/RegisterSets.h" 13 14 namespace js { 15 namespace jit { 16 17 // ValueOperands R0, R1, and R2. 18 // R0 == JSReturnReg, and R2 uses registers not preserved across calls. R1 value 19 // should be preserved across calls. 20 static constexpr ValueOperand R0(v1); 21 static constexpr ValueOperand R1(s4); 22 static constexpr ValueOperand R2(a6); 23 24 // ICTailCallReg and ICStubReg 25 // These use registers that are not preserved across calls. 26 static constexpr Register ICTailCallReg = ra; 27 static constexpr Register ICStubReg = a5; 28 29 // Note that ICTailCallReg is actually just the link register. 30 // In MIPS code emission, we do not clobber ICTailCallReg since we keep 31 // the return address for calls there. 32 33 // FloatReg0 must be equal to ReturnFloatReg. 34 static constexpr FloatRegister FloatReg0 = f0; 35 static constexpr FloatRegister FloatReg1 = f2; 36 static constexpr FloatRegister FloatReg2 = f4; 37 static constexpr FloatRegister FloatReg3 = f6; 38 39 } // namespace jit 40 } // namespace js 41 42 #endif /* jit_mips64_SharedICRegisters_mips64_h */