chromium/v8/src/heap/cppgc/memory.cc

// Copyright 2021 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "src/heap/cppgc/memory.h"

#include <cstddef>

#include "src/heap/cppgc/globals.h"

namespace cppgc {
namespace internal {

void NoSanitizeMemset(void* address, char c, size_t bytes) {}

#if defined(V8_USE_MEMORY_SANITIZER) || defined(V8_USE_ADDRESS_SANITIZER) || \
    DEBUG

void SetMemoryAccessible(void* address, size_t size) {}

void SetMemoryInaccessible(void* address, size_t size) {}

void CheckMemoryIsInaccessible(const void* address, size_t size) {}

#endif

}  // namespace internal
}  // namespace cppgc