Bug 1874684 - Part 29: Update spec fixme notes. r=mgaudet
[gecko.git] / js / src / jit / IonGenericCallStub.h
blobaa53c307df664a8ce49f0424d5fc06a47e885241
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"
12 namespace js::jit {
14 #ifndef JS_USE_LINK_REGISTER
15 static constexpr Register IonGenericCallReturnAddrReg = CallTempReg0;
16 #endif
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;
24 #ifdef JS_CODEGEN_ARM
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;
29 #endif
31 } // namespace js::jit
33 #endif /* jit_IonGenericCallStub_h */