1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit/x64/BaselineRegisters-x64.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,39 @@ 1.4 +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- 1.5 + * vim: set ts=8 sts=4 et sw=4 tw=99: 1.6 + * This Source Code Form is subject to the terms of the Mozilla Public 1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.9 + 1.10 +#ifndef jit_x64_BaselineRegisters_x64_h 1.11 +#define jit_x64_BaselineRegisters_x64_h 1.12 + 1.13 +#ifdef JS_ION 1.14 + 1.15 +#include "jit/IonMacroAssembler.h" 1.16 + 1.17 +namespace js { 1.18 +namespace jit { 1.19 + 1.20 +static MOZ_CONSTEXPR_VAR Register BaselineFrameReg = rbp; 1.21 +static MOZ_CONSTEXPR_VAR Register BaselineStackReg = rsp; 1.22 + 1.23 +static MOZ_CONSTEXPR_VAR ValueOperand R0(rcx); 1.24 +static MOZ_CONSTEXPR_VAR ValueOperand R1(rbx); 1.25 +static MOZ_CONSTEXPR_VAR ValueOperand R2(rax); 1.26 + 1.27 +static MOZ_CONSTEXPR_VAR Register BaselineTailCallReg = rsi; 1.28 +static MOZ_CONSTEXPR_VAR Register BaselineStubReg = rdi; 1.29 + 1.30 +static MOZ_CONSTEXPR_VAR Register ExtractTemp0 = r14; 1.31 +static MOZ_CONSTEXPR_VAR Register ExtractTemp1 = r15; 1.32 + 1.33 +// FloatReg0 must be equal to ReturnFloatReg. 1.34 +static MOZ_CONSTEXPR_VAR FloatRegister FloatReg0 = xmm0; 1.35 +static MOZ_CONSTEXPR_VAR FloatRegister FloatReg1 = xmm1; 1.36 + 1.37 +} // namespace jit 1.38 +} // namespace js 1.39 + 1.40 +#endif // JS_ION 1.41 + 1.42 +#endif /* jit_x64_BaselineRegisters_x64_h */