v8  10.1.124 (node 18.2.0)
V8 is Google's open source JavaScript engine
v8-unwinder-state.h
Go to the documentation of this file.
1 // Copyright 2020 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 INCLUDE_V8_UNWINDER_STATE_H_
6 #define INCLUDE_V8_UNWINDER_STATE_H_
7 
8 namespace v8 {
9 
10 #ifdef V8_TARGET_ARCH_ARM
11 struct CalleeSavedRegisters {
12  void* arm_r4;
13  void* arm_r5;
14  void* arm_r6;
15  void* arm_r7;
16  void* arm_r8;
17  void* arm_r9;
18  void* arm_r10;
19 };
20 #elif V8_TARGET_ARCH_X64 || V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_ARM64 ||
21  V8_TARGET_ARCH_MIPS || V8_TARGET_ARCH_MIPS64 || V8_TARGET_ARCH_PPC ||
22  V8_TARGET_ARCH_PPC64 || V8_TARGET_ARCH_RISCV64 || V8_TARGET_ARCH_S390 ||
23  V8_TARGET_ARCH_LOONG64
24 struct CalleeSavedRegisters {};
25 #else
26 #error Target architecture was not detected as supported by v8
27 #endif
28 
29 } // namespace v8
30 
31 #endif // INCLUDE_V8_UNWINDER _STATE_H_