tor-browser

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

SharedICRegisters-x86.h (1170B)


      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_x86_SharedICRegisters_x86_h
      8 #define jit_x86_SharedICRegisters_x86_h
      9 
     10 #include "jit/Registers.h"
     11 #include "jit/RegisterSets.h"
     12 #include "jit/x86/Assembler-x86.h"
     13 
     14 namespace js {
     15 namespace jit {
     16 
     17 // ValueOperands R0, R1, and R2
     18 static constexpr ValueOperand R0(ecx, edx);
     19 static constexpr ValueOperand R1(eax, ebx);
     20 static constexpr ValueOperand R2(esi, edi);
     21 
     22 // ICTailCallReg and ICStubReg reuse
     23 // registers from R2.
     24 static constexpr Register ICTailCallReg = esi;
     25 static constexpr Register ICStubReg = edi;
     26 
     27 // FloatReg0 must be equal to ReturnFloatReg.
     28 static constexpr FloatRegister FloatReg0 = xmm0;
     29 static constexpr FloatRegister FloatReg1 = xmm1;
     30 static constexpr FloatRegister FloatReg2 = xmm2;
     31 static constexpr FloatRegister FloatReg3 = xmm3;
     32 
     33 }  // namespace jit
     34 }  // namespace js
     35 
     36 #endif /* jit_x86_SharedICRegisters_x86_h */