5 #ifndef V8_WASM_BASELINE_LIFTOFF_ASSEMBLER_DEFS_H_ 6 #define V8_WASM_BASELINE_LIFTOFF_ASSEMBLER_DEFS_H_ 8 #include "src/assembler-arch.h" 9 #include "src/reglist.h" 15 #if V8_TARGET_ARCH_IA32 17 constexpr RegList kLiftoffAssemblerGpCacheRegs =
18 Register::ListOf<eax, ecx, edx, esi, edi>();
21 constexpr RegList kLiftoffAssemblerFpCacheRegs =
22 DoubleRegister::ListOf<xmm0, xmm1, xmm2, xmm3, xmm4, xmm5, xmm6>();
24 #elif V8_TARGET_ARCH_X64 26 constexpr RegList kLiftoffAssemblerGpCacheRegs =
27 Register::ListOf<rax, rcx, rdx, rbx, rsi, rdi, r9>();
29 constexpr RegList kLiftoffAssemblerFpCacheRegs =
30 DoubleRegister::ListOf<xmm0, xmm1, xmm2, xmm3, xmm4, xmm5, xmm6, xmm7>();
32 #elif V8_TARGET_ARCH_MIPS 34 constexpr RegList kLiftoffAssemblerGpCacheRegs =
35 Register::ListOf<a0, a1, a2, a3, t0, t1, t2, t3, t4, t5, t6, s7, v0, v1>();
37 constexpr RegList kLiftoffAssemblerFpCacheRegs =
38 DoubleRegister::ListOf<f0, f2, f4, f6, f8, f10, f12, f14, f16, f18, f20,
41 #elif V8_TARGET_ARCH_MIPS64 43 constexpr RegList kLiftoffAssemblerGpCacheRegs =
44 Register::ListOf<a0, a1, a2, a3, a4, a5, a6, a7, t0, t1, t2, s7, v0, v1>();
46 constexpr RegList kLiftoffAssemblerFpCacheRegs =
47 DoubleRegister::ListOf<f0, f2, f4, f6, f8, f10, f12, f14, f16, f18, f20,
50 #elif V8_TARGET_ARCH_ARM 53 constexpr RegList kLiftoffAssemblerGpCacheRegs =
54 Register::ListOf<r0, r1, r2, r3, r4, r5, r6, r8, r9>();
57 constexpr RegList kLiftoffAssemblerFpCacheRegs =
58 LowDwVfpRegister::ListOf<d0, d1, d2, d3, d4, d5, d6, d7, d8, d9, d10, d11,
61 #elif V8_TARGET_ARCH_ARM64 64 constexpr RegList kLiftoffAssemblerGpCacheRegs =
65 CPURegister::ListOf<x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12,
66 x13, x14, x15, x18, x19, x20, x21, x22, x23, x24, x25,
70 constexpr RegList kLiftoffAssemblerFpCacheRegs =
71 CPURegister::ListOf<d0, d1, d2, d3, d4, d5, d6, d7, d8, d9, d10, d11, d12,
72 d13, d14, d16, d17, d18, d19, d20, d21, d22, d23, d24,
73 d25, d26, d27, d28, d29>();
77 constexpr RegList kLiftoffAssemblerGpCacheRegs = 0xff;
79 constexpr RegList kLiftoffAssemblerFpCacheRegs = 0xff;
83 #if V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_X64 85 constexpr Condition kEqual = equal;
86 constexpr Condition kUnequal = not_equal;
87 constexpr Condition kSignedLessThan = less;
88 constexpr Condition kSignedLessEqual = less_equal;
89 constexpr Condition kSignedGreaterThan = greater;
90 constexpr Condition kSignedGreaterEqual = greater_equal;
91 constexpr Condition kUnsignedLessThan = below;
92 constexpr Condition kUnsignedLessEqual = below_equal;
93 constexpr Condition kUnsignedGreaterThan = above;
94 constexpr Condition kUnsignedGreaterEqual = above_equal;
96 #elif V8_TARGET_ARCH_MIPS || V8_TARGET_ARCH_MIPS64 98 constexpr Condition kEqual = eq;
99 constexpr Condition kUnequal = ne;
100 constexpr Condition kSignedLessThan = lt;
101 constexpr Condition kSignedLessEqual = le;
102 constexpr Condition kSignedGreaterThan = gt;
103 constexpr Condition kSignedGreaterEqual = ge;
104 constexpr Condition kUnsignedLessThan = ult;
105 constexpr Condition kUnsignedLessEqual = ule;
106 constexpr Condition kUnsignedGreaterThan = ugt;
107 constexpr Condition kUnsignedGreaterEqual = uge;
109 #elif V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64 111 constexpr Condition kEqual = eq;
112 constexpr Condition kUnequal = ne;
113 constexpr Condition kSignedLessThan = lt;
114 constexpr Condition kSignedLessEqual = le;
115 constexpr Condition kSignedGreaterThan = gt;
116 constexpr Condition kSignedGreaterEqual = ge;
117 constexpr Condition kUnsignedLessThan = lo;
118 constexpr Condition kUnsignedLessEqual = ls;
119 constexpr Condition kUnsignedGreaterThan = hi;
120 constexpr Condition kUnsignedGreaterEqual = hs;
125 constexpr Condition kEqual =
static_cast<Condition
>(0);
126 constexpr Condition kUnequal =
static_cast<Condition
>(0);
127 constexpr Condition kSignedLessThan =
static_cast<Condition
>(0);
128 constexpr Condition kSignedLessEqual =
static_cast<Condition
>(0);
129 constexpr Condition kSignedGreaterThan =
static_cast<Condition
>(0);
130 constexpr Condition kSignedGreaterEqual =
static_cast<Condition
>(0);
131 constexpr Condition kUnsignedLessThan =
static_cast<Condition
>(0);
132 constexpr Condition kUnsignedLessEqual =
static_cast<Condition
>(0);
133 constexpr Condition kUnsignedGreaterThan =
static_cast<Condition
>(0);
134 constexpr Condition kUnsignedGreaterEqual =
static_cast<Condition
>(0);
142 #endif // V8_WASM_BASELINE_LIFTOFF_ASSEMBLER_DEFS_H_