11cb0ef41Sopenharmony_ci// Copyright 2020 the V8 project authors. All rights reserved. 21cb0ef41Sopenharmony_ci// Use of this source code is governed by a BSD-style license that can be 31cb0ef41Sopenharmony_ci// found in the LICENSE file. 41cb0ef41Sopenharmony_ci 51cb0ef41Sopenharmony_ci#ifndef INCLUDE_V8_UNWINDER_STATE_H_ 61cb0ef41Sopenharmony_ci#define INCLUDE_V8_UNWINDER_STATE_H_ 71cb0ef41Sopenharmony_ci 81cb0ef41Sopenharmony_cinamespace v8 { 91cb0ef41Sopenharmony_ci 101cb0ef41Sopenharmony_ci#ifdef V8_TARGET_ARCH_ARM 111cb0ef41Sopenharmony_cistruct CalleeSavedRegisters { 121cb0ef41Sopenharmony_ci void* arm_r4; 131cb0ef41Sopenharmony_ci void* arm_r5; 141cb0ef41Sopenharmony_ci void* arm_r6; 151cb0ef41Sopenharmony_ci void* arm_r7; 161cb0ef41Sopenharmony_ci void* arm_r8; 171cb0ef41Sopenharmony_ci void* arm_r9; 181cb0ef41Sopenharmony_ci void* arm_r10; 191cb0ef41Sopenharmony_ci}; 201cb0ef41Sopenharmony_ci#elif V8_TARGET_ARCH_X64 || V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_ARM64 || \ 211cb0ef41Sopenharmony_ci V8_TARGET_ARCH_MIPS || V8_TARGET_ARCH_MIPS64 || V8_TARGET_ARCH_PPC || \ 221cb0ef41Sopenharmony_ci V8_TARGET_ARCH_PPC64 || V8_TARGET_ARCH_RISCV64 || V8_TARGET_ARCH_S390 || \ 231cb0ef41Sopenharmony_ci V8_TARGET_ARCH_LOONG64 241cb0ef41Sopenharmony_cistruct CalleeSavedRegisters {}; 251cb0ef41Sopenharmony_ci#else 261cb0ef41Sopenharmony_ci#error Target architecture was not detected as supported by v8 271cb0ef41Sopenharmony_ci#endif 281cb0ef41Sopenharmony_ci 291cb0ef41Sopenharmony_ci} // namespace v8 301cb0ef41Sopenharmony_ci 311cb0ef41Sopenharmony_ci#endif // INCLUDE_V8_UNWINDER _STATE_H_ 32