Debian Codegraph @

js/src/jit/mips64/SharedICRegisters-mips64.h

raw
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 // Register used internally by MacroAssemblerMIPS.
30 static constexpr Register BaselineSecondScratchReg = SecondScratchReg;
31
32 // Note that ICTailCallReg is actually just the link register.
33 // In MIPS code emission, we do not clobber ICTailCallReg since we keep
34 // the return address for calls there.
35
36 // FloatReg0 must be equal to ReturnFloatReg.
37 static constexpr FloatRegister FloatReg0 = f0;
38 static constexpr FloatRegister FloatReg1 = f2;
39 static constexpr FloatRegister FloatReg2 = f4;
40 static constexpr FloatRegister FloatReg3 = f6;
41
42 } // namespace jit
43 } // namespace js
44
45 #endif /* jit_mips64_SharedICRegisters_mips64_h */