15 volatile uint8_t*
const base =
static_cast<uint8_t*
>(address);
16 for (
size_t i = 0;
i < bytes; ++
i) {
21#if defined(V8_USE_MEMORY_SANITIZER) || defined(V8_USE_ADDRESS_SANITIZER) || \
25#if defined(V8_USE_MEMORY_SANITIZER)
29#elif defined(V8_USE_ADDRESS_SANITIZER)
35 memset(address, 0, size);
41#if defined(V8_USE_MEMORY_SANITIZER)
43 memset(address, 0, size);
46#elif defined(V8_USE_ADDRESS_SANITIZER)
59#if defined(V8_USE_MEMORY_SANITIZER)
62 "CheckMemoryIsInaccessibleIsNoop() needs to reflect "
63 "CheckMemoryIsInaccessible().");
66#elif defined(V8_USE_ADDRESS_SANITIZER)
69 "CheckMemoryIsInaccessibleIsNoop() needs to reflect "
70 "CheckMemoryIsInaccessible().");
73#if defined(V8_HOST_ARCH_64_BIT)
83 "CheckMemoryIsInaccessibleIsNoop() needs to reflect "
84 "CheckMemoryIsInaccessible().");
#define ASAN_UNPOISON_MEMORY_REGION(start, size)
#define ASAN_POISON_MEMORY_REGION(start, size)
#define ASAN_CHECK_WHOLE_MEMORY_REGION_IS_POISONED(start, size)
#define MSAN_MEMORY_IS_INITIALIZED(start, size)
#define MSAN_ALLOCATED_UNINITIALIZED_MEMORY(start, size)
V8_INLINE void CheckMemoryIsZero(const void *address, size_t size)
void NoSanitizeMemset(void *address, char c, size_t bytes)
V8_INLINE void CheckMemoryIsInaccessible(const void *address, size_t size)
V8_INLINE void CheckMemoryIsZapped(const void *address, size_t size)
V8_INLINE void SetMemoryInaccessible(void *address, size_t size)
V8_INLINE void ZapMemory(void *address, size_t size)
V8_INLINE void SetMemoryAccessible(void *address, size_t size)
constexpr bool CheckMemoryIsInaccessibleIsNoop()