#ifndef V8_BASE_BUILD_CONFIG_H_
#define V8_BASE_BUILD_CONFIG_H_
#include "include/v8config.h"
#if defined(__ARM_ARCH_7A__) || defined(__ARM_ARCH_7R__) || \
defined(__ARM_ARCH_7__)
#define CAN_USE_ARMV7_INSTRUCTIONS …
#ifdef __ARM_ARCH_EXT_IDIV__
#define CAN_USE_SUDIV …
#endif
#ifndef CAN_USE_VFP3_INSTRUCTIONS
#define CAN_USE_VFP3_INSTRUCTIONS …
#endif
#endif
#if defined(__ARM_ARCH_8A__)
#define CAN_USE_ARMV7_INSTRUCTIONS …
#define CAN_USE_SUDIV …
#define CAN_USE_ARMV8_INSTRUCTIONS …
#ifndef CAN_USE_VFP3_INSTRUCTIONS
#define CAN_USE_VFP3_INSTRUCTIONS …
#endif
#endif
#if defined(V8_HOST_ARCH_ARM64) && defined(V8_OS_MACOS)
#define V8_HAS_PTHREAD_JIT_WRITE_PROTECT …
#else
#define V8_HAS_PTHREAD_JIT_WRITE_PROTECT …
#endif
#if defined(V8_HOST_ARCH_ARM64) && defined(V8_OS_IOS) && \
defined(__IPHONE_17_4) && \
__IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_17_4
#define V8_HAS_BECORE_JIT_WRITE_PROTECT …
#else
#define V8_HAS_BECORE_JIT_WRITE_PROTECT …
#endif
#if defined(V8_OS_LINUX) && defined(V8_HOST_ARCH_X64)
#define V8_HAS_PKU_JIT_WRITE_PROTECT …
#else
#define V8_HAS_PKU_JIT_WRITE_PROTECT …
#endif
#if defined(V8_TARGET_ARCH_IA32) || defined(V8_TARGET_ARCH_X64)
#define V8_TARGET_ARCH_STORES_RETURN_ADDRESS_ON_STACK …
#else
#define V8_TARGET_ARCH_STORES_RETURN_ADDRESS_ON_STACK …
#endif
constexpr int kReturnAddressStackSlotCount = …;
#if defined(V8_HOST_ARCH_PPC64) && !defined(V8_OS_AIX)
constexpr int kPageSizeBits = 19;
#elif defined(ENABLE_HUGEPAGE)
constexpr int kHugePageBits = 21;
constexpr int kHugePageSize = 1 << kHugePageBits;
constexpr int kPageSizeBits = kHugePageBits;
#else
constexpr int kPageSizeBits = …;
#endif
constexpr int kRegularPageSize = …;
#if (defined(V8_OS_MACOS) && defined(V8_HOST_ARCH_ARM64)) || \
(defined(V8_OS_ANDROID) && \
(defined(V8_HOST_ARCH_ARM64) || defined(V8_HOST_ARCH_X64))) || \
defined(V8_HOST_ARCH_LOONG64) || defined(V8_HOST_ARCH_MIPS64) || \
defined(V8_OS_IOS)
constexpr int kMinimumOSPageSize = 16 * 1024;
#elif defined(V8_OS_LINUX) && !defined(V8_OS_ANDROID) && \
(defined(V8_HOST_ARCH_ARM64) || defined(V8_HOST_ARCH_PPC64))
constexpr int kMinimumOSPageSize = 64 * 1024;
#else
constexpr int kMinimumOSPageSize = …;
#endif
#endif