tor-browser

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

SharedICRegisters-arm.h (1744B)


      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_arm_SharedICRegisters_arm_h
      8 #define jit_arm_SharedICRegisters_arm_h
      9 
     10 #include "jit/arm/Assembler-arm.h"
     11 #include "jit/Registers.h"
     12 #include "jit/RegisterSets.h"
     13 
     14 namespace js {
     15 namespace jit {
     16 
     17 // r15 = program-counter
     18 // r14 = link-register
     19 // r13 = stack-pointer
     20 // r11 = frame-pointer
     21 
     22 // ValueOperands R0, R1, and R2.
     23 // R0 == JSReturnReg, and R2 uses registers not preserved across calls. R1 value
     24 // should be preserved across calls.
     25 static constexpr ValueOperand R0(r3, r2);
     26 static constexpr ValueOperand R1(r5, r4);
     27 static constexpr ValueOperand R2(r1, r0);
     28 
     29 // ICTailCallReg and ICStubReg
     30 // These use registers that are not preserved across calls.
     31 static constexpr Register ICTailCallReg = r14;
     32 static constexpr Register ICStubReg = r9;
     33 
     34 // Register used internally by MacroAssemblerARM.
     35 static constexpr Register BaselineSecondScratchReg = r6;
     36 
     37 // R7 - R9 are generally available for use within stubcode.
     38 
     39 // Note that ICTailCallReg is actually just the link register. In ARM code
     40 // emission, we do not clobber ICTailCallReg since we keep the return
     41 // address for calls there.
     42 
     43 // FloatReg0 must be equal to ReturnFloatReg.
     44 static constexpr FloatRegister FloatReg0 = d0;
     45 static constexpr FloatRegister FloatReg1 = d1;
     46 static constexpr FloatRegister FloatReg2 = d2;
     47 static constexpr FloatRegister FloatReg3 = d3;
     48 
     49 }  // namespace jit
     50 }  // namespace js
     51 
     52 #endif /* jit_arm_SharedICRegisters_arm_h */