5#ifndef V8_BASE_PLATFORM_MEMORY_PROTECTION_KEY_H_
6#define V8_BASE_PLATFORM_MEMORY_PROTECTION_KEY_H_
10#if V8_HAS_PKU_JIT_WRITE_PROTECT
33 static constexpr int kNoMemoryProtectionKey = -1;
36 static constexpr int kDefaultProtectionKey = 0;
49#if defined(PKEY_DISABLE_ACCESS)
50 static_assert(kDisableAccess == PKEY_DISABLE_ACCESS);
51 static_assert(kDisableWrite == PKEY_DISABLE_WRITE);
56 static bool HasMemoryProtectionKeySupport();
59 static int AllocateKey();
72 static bool SetPermissionsAndKey(
73 base::AddressRegion region,
78 static void SetPermissionsForKey(
int key, Permission permissions);
81 static Permission GetKeyPermission(
int key);
std::unique_ptr< ValueMirror > key