#include "src/zone/zone.h"
#include <cstring>
#include <memory>
#include "src/base/sanitizer/asan.h"
#include "src/init/v8.h"
#include "src/utils/utils.h"
#include "src/zone/type-stats.h"
namespace v8 {
namespace internal {
namespace {
#ifdef V8_USE_ADDRESS_SANITIZER
constexpr size_t kASanRedzoneBytes = 24;
#else
constexpr size_t kASanRedzoneBytes = …;
#endif
}
Zone::Zone(AccountingAllocator* allocator, const char* name,
bool support_compression)
: … { … }
Zone::~Zone() { … }
void* Zone::AsanNew(size_t size) { … }
void Zone::Reset() { … }
#ifdef DEBUG
bool Zone::Contains(void* ptr) { … }
#endif
void Zone::DeleteAll() { … }
void Zone::ReleaseSegment(Segment* segment) { … }
void Zone::Expand(size_t size) { … }
ZoneScope::ZoneScope(Zone* zone)
: … { … }
ZoneScope::~ZoneScope() { … }
}
}