js/src/jit/mips/BaselineRegisters-mips.h

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:ac5144928fbc
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2 * vim: set ts=8 sts=4 et sw=4 tw=99:
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_mips_BaselineRegisters_mips_h
8 #define jit_mips_BaselineRegisters_mips_h
9
10 #ifdef JS_ION
11
12 #include "jit/IonMacroAssembler.h"
13
14 namespace js {
15 namespace jit {
16
17 static MOZ_CONSTEXPR_VAR Register BaselineFrameReg = s5;
18 static MOZ_CONSTEXPR_VAR Register BaselineStackReg = sp;
19
20 static MOZ_CONSTEXPR_VAR ValueOperand R0(v1, v0);
21 static MOZ_CONSTEXPR_VAR ValueOperand R1(s7, s6);
22 static MOZ_CONSTEXPR_VAR ValueOperand R2(t7, t6);
23
24 // BaselineTailCallReg and BaselineStubReg
25 // These use registers that are not preserved across calls.
26 static MOZ_CONSTEXPR_VAR Register BaselineTailCallReg = ra;
27 static MOZ_CONSTEXPR_VAR Register BaselineStubReg = t5;
28
29 static MOZ_CONSTEXPR_VAR Register ExtractTemp0 = InvalidReg;
30 static MOZ_CONSTEXPR_VAR Register ExtractTemp1 = InvalidReg;
31
32 // Register used internally by MacroAssemblerMIPS.
33 static MOZ_CONSTEXPR_VAR Register BaselineSecondScratchReg = SecondScratchReg;
34
35 // Note that BaselineTailCallReg is actually just the link register.
36 // In MIPS code emission, we do not clobber BaselineTailCallReg since we keep
37 // the return address for calls there.
38
39 // FloatReg0 must be equal to ReturnFloatReg.
40 static MOZ_CONSTEXPR_VAR FloatRegister FloatReg0 = f0;
41 static MOZ_CONSTEXPR_VAR FloatRegister FloatReg1 = f2;
42
43 } // namespace jit
44 } // namespace js
45
46 #endif // JS_ION
47
48 #endif /* jit_mips_BaselineRegisters_mips_h */
49

mercurial