chromium/v8/src/zone/zone.cc

// Copyright 2012 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/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;  // Must be a multiple of 8.

#else  // !V8_USE_ADDRESS_SANITIZER

constexpr size_t kASanRedzoneBytes =;

#endif  // V8_USE_ADDRESS_SANITIZER

}  // namespace

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() {}

}  // namespace internal
}  // namespace v8