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

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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/. */
     7 #ifndef jit_mips_BaselineRegisters_mips_h
     8 #define jit_mips_BaselineRegisters_mips_h
    10 #ifdef JS_ION
    12 #include "jit/IonMacroAssembler.h"
    14 namespace js {
    15 namespace jit {
    17 static MOZ_CONSTEXPR_VAR Register BaselineFrameReg = s5;
    18 static MOZ_CONSTEXPR_VAR Register BaselineStackReg = sp;
    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);
    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;
    29 static MOZ_CONSTEXPR_VAR Register ExtractTemp0 = InvalidReg;
    30 static MOZ_CONSTEXPR_VAR Register ExtractTemp1 = InvalidReg;
    32 // Register used internally by MacroAssemblerMIPS.
    33 static MOZ_CONSTEXPR_VAR Register BaselineSecondScratchReg = SecondScratchReg;
    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.
    39 // FloatReg0 must be equal to ReturnFloatReg.
    40 static MOZ_CONSTEXPR_VAR FloatRegister FloatReg0 = f0;
    41 static MOZ_CONSTEXPR_VAR FloatRegister FloatReg1 = f2;
    43 } // namespace jit
    44 } // namespace js
    46 #endif // JS_ION
    48 #endif /* jit_mips_BaselineRegisters_mips_h */

mercurial