michael@0: /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- michael@0: * vim: set ts=8 sts=4 et sw=4 tw=99: michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef jit_mips_BaselineRegisters_mips_h michael@0: #define jit_mips_BaselineRegisters_mips_h michael@0: michael@0: #ifdef JS_ION michael@0: michael@0: #include "jit/IonMacroAssembler.h" michael@0: michael@0: namespace js { michael@0: namespace jit { michael@0: michael@0: static MOZ_CONSTEXPR_VAR Register BaselineFrameReg = s5; michael@0: static MOZ_CONSTEXPR_VAR Register BaselineStackReg = sp; michael@0: michael@0: static MOZ_CONSTEXPR_VAR ValueOperand R0(v1, v0); michael@0: static MOZ_CONSTEXPR_VAR ValueOperand R1(s7, s6); michael@0: static MOZ_CONSTEXPR_VAR ValueOperand R2(t7, t6); michael@0: michael@0: // BaselineTailCallReg and BaselineStubReg michael@0: // These use registers that are not preserved across calls. michael@0: static MOZ_CONSTEXPR_VAR Register BaselineTailCallReg = ra; michael@0: static MOZ_CONSTEXPR_VAR Register BaselineStubReg = t5; michael@0: michael@0: static MOZ_CONSTEXPR_VAR Register ExtractTemp0 = InvalidReg; michael@0: static MOZ_CONSTEXPR_VAR Register ExtractTemp1 = InvalidReg; michael@0: michael@0: // Register used internally by MacroAssemblerMIPS. michael@0: static MOZ_CONSTEXPR_VAR Register BaselineSecondScratchReg = SecondScratchReg; michael@0: michael@0: // Note that BaselineTailCallReg is actually just the link register. michael@0: // In MIPS code emission, we do not clobber BaselineTailCallReg since we keep michael@0: // the return address for calls there. michael@0: michael@0: // FloatReg0 must be equal to ReturnFloatReg. michael@0: static MOZ_CONSTEXPR_VAR FloatRegister FloatReg0 = f0; michael@0: static MOZ_CONSTEXPR_VAR FloatRegister FloatReg1 = f2; michael@0: michael@0: } // namespace jit michael@0: } // namespace js michael@0: michael@0: #endif // JS_ION michael@0: michael@0: #endif /* jit_mips_BaselineRegisters_mips_h */ michael@0: