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/. */
7 #ifndef jit_IonGenericCallStub_h
8 #define jit_IonGenericCallStub_h
10 #include "jit/Registers.h"
14 #ifndef JS_USE_LINK_REGISTER
15 static constexpr Register IonGenericCallReturnAddrReg
= CallTempReg0
;
18 static constexpr Register IonGenericCallCalleeReg
= CallTempReg1
;
19 static constexpr Register IonGenericCallArgcReg
= CallTempReg2
;
20 static constexpr Register IonGenericCallScratch
= CallTempReg3
;
21 static constexpr Register IonGenericCallScratch2
= CallTempReg4
;
22 static constexpr Register IonGenericCallScratch3
= CallTempReg5
;
25 // We need a second scratch register that does not alias `lr` or
26 // any of the registers the ABI uses to pass arguments.
27 static_assert(CallTempReg0
== CallTempNonArgRegs
[0]);
28 static constexpr Register IonGenericSecondScratchReg
= CallTempReg0
;
31 } // namespace js::jit
33 #endif /* jit_IonGenericCallStub_h */