v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
reglist-ia32.h
Go to the documentation of this file.
1// Copyright 2022 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_IA32_REGLIST_IA32_H_
6#define V8_CODEGEN_IA32_REGLIST_IA32_H_
7
10
11namespace v8 {
12namespace internal {
13
14using RegList = RegListBase<Register>;
15using DoubleRegList = RegListBase<DoubleRegister>;
18
19// Caller-saved registers
20constexpr RegList kJSCallerSaved = {
21 eax, ecx, edx,
22 ebx, // used as caller-saved register in JavaScript code
23 edi}; // callee function
24
25// Caller-saved registers according to the x86 ABI
26constexpr RegList kCallerSaved = {eax, ecx, edx};
27
28constexpr int kNumJSCallerSaved = 5;
29
30} // namespace internal
31} // namespace v8
32
33#endif // V8_CODEGEN_IA32_REGLIST_IA32_H_
RegListBase< DoubleRegister > DoubleRegList
Definition reglist-arm.h:15
const int kNumJSCallerSaved
Definition reglist-arm.h:28
RegListBase< Register > RegList
Definition reglist-arm.h:14
const RegList kCallerSaved
Definition reglist-arm.h:42
const RegList kJSCallerSaved
Definition reglist-arm.h:23
#define ASSERT_TRIVIALLY_COPYABLE(T)
Definition macros.h:267