v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
reglist.h
Go to the documentation of this file.
1// Copyright 2017 the V8 project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef V8_CODEGEN_REGLIST_H_
6#define V8_CODEGEN_REGLIST_H_
7
8#if V8_TARGET_ARCH_IA32
10#elif V8_TARGET_ARCH_X64
12#elif V8_TARGET_ARCH_ARM64
14#elif V8_TARGET_ARCH_ARM
16#elif V8_TARGET_ARCH_PPC64
18#elif V8_TARGET_ARCH_MIPS64
20#elif V8_TARGET_ARCH_LOONG64
22#elif V8_TARGET_ARCH_S390X
24#elif V8_TARGET_ARCH_RISCV32 || V8_TARGET_ARCH_RISCV64
26#else
27#error Unknown architecture.
28#endif
29
30namespace v8 {
31namespace internal {
32
33static constexpr RegList kEmptyRegList = {};
34
35#define LIST_REG(V) V,
38#undef LIST_REG
39
40static constexpr DoubleRegList kEmptyDoubleRegList = {};
41
42#define LIST_REG(V) V,
45#undef LIST_REG
46
47} // namespace internal
48} // namespace v8
49
50#endif // V8_CODEGEN_REGLIST_H_
static constexpr Register no_reg()
static constexpr DoubleRegList kEmptyDoubleRegList
Definition reglist.h:40
static constexpr RegList kAllocatableGeneralRegisters
Definition reglist.h:36
static constexpr RegList kEmptyRegList
Definition reglist.h:33
static constexpr DoubleRegList kAllocatableDoubleRegisters
Definition reglist.h:43
#define ALLOCATABLE_DOUBLE_REGISTERS(V)
#define ALLOCATABLE_GENERAL_REGISTERS(V)
#define LIST_REG(V)
Definition reglist.h:35