tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

SharedICRegisters-arm64.h (1961B)


      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/. */
      6 
      7 #ifndef jit_arm64_SharedICRegisters_arm64_h
      8 #define jit_arm64_SharedICRegisters_arm64_h
      9 
     10 #include "jit/arm64/Assembler-arm64.h"
     11 #include "jit/Registers.h"
     12 #include "jit/RegisterSets.h"
     13 
     14 namespace js {
     15 namespace jit {
     16 
     17 // ValueOperands R0, R1, and R2.
     18 // R0 == JSReturnReg, and R2 uses registers not preserved across calls.
     19 // R1 value should be preserved across calls.
     20 static constexpr Register R0_ = r2;
     21 static constexpr Register R1_ = r19;
     22 static constexpr Register R2_ = r0;
     23 
     24 static constexpr ValueOperand R0(R0_);
     25 static constexpr ValueOperand R1(R1_);
     26 static constexpr ValueOperand R2(R2_);
     27 
     28 // ICTailCallReg and ICStubReg use registers that are not preserved across
     29 // calls.
     30 static constexpr Register ICTailCallReg = r30;
     31 static constexpr Register ICStubReg = r9;
     32 
     33 // R7 - R9 are generally available for use within stubcode.
     34 
     35 // Note that BaselineTailCallReg is actually just the link
     36 // register.  In ARM code emission, we do not clobber BaselineTailCallReg
     37 // since we keep the return address for calls there.
     38 
     39 static constexpr FloatRegister FloatReg0 = {FloatRegisters::d0,
     40                                            FloatRegisters::Double};
     41 static constexpr FloatRegister FloatReg1 = {FloatRegisters::d1,
     42                                            FloatRegisters::Double};
     43 static constexpr FloatRegister FloatReg2 = {FloatRegisters::d2,
     44                                            FloatRegisters::Double};
     45 static constexpr FloatRegister FloatReg3 = {FloatRegisters::d3,
     46                                            FloatRegisters::Double};
     47 
     48 }  // namespace jit
     49 }  // namespace js
     50 
     51 #endif  // jit_arm64_SharedICRegisters_arm64_h