chromium/v8/src/heap/heap-allocator-inl.h

// Copyright 2020 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.

#ifndef V8_HEAP_HEAP_ALLOCATOR_INL_H_
#define V8_HEAP_HEAP_ALLOCATOR_INL_H_

#include "src/base/logging.h"
#include "src/common/assert-scope.h"
#include "src/common/globals.h"
#include "src/heap/heap-allocator.h"
#include "src/heap/large-spaces.h"
#include "src/heap/local-heap.h"
#include "src/heap/main-allocator-inl.h"
#include "src/heap/new-spaces.h"
#include "src/heap/paged-spaces.h"
#include "src/heap/read-only-spaces.h"
#include "src/heap/zapping.h"

namespace v8 {
namespace internal {

PagedSpace* HeapAllocator::code_space() const {}

CodeLargeObjectSpace* HeapAllocator::code_lo_space() const {}

OldLargeObjectSpace* HeapAllocator::lo_space() const {}

OldLargeObjectSpace* HeapAllocator::shared_lo_space() const {}

NewSpace* HeapAllocator::new_space() const {}

NewLargeObjectSpace* HeapAllocator::new_lo_space() const {}

PagedSpace* HeapAllocator::old_space() const {}

ReadOnlySpace* HeapAllocator::read_only_space() const {}

PagedSpace* HeapAllocator::trusted_space() const {}

OldLargeObjectSpace* HeapAllocator::trusted_lo_space() const {}

OldLargeObjectSpace* HeapAllocator::shared_trusted_lo_space() const {}

bool HeapAllocator::CanAllocateInReadOnlySpace() const {}

template <AllocationType type>
V8_WARN_UNUSED_RESULT V8_INLINE AllocationResult HeapAllocator::AllocateRaw(
    int size_in_bytes, AllocationOrigin origin, AllocationAlignment alignment) {}

AllocationResult HeapAllocator::AllocateRaw(int size_in_bytes,
                                            AllocationType type,
                                            AllocationOrigin origin,
                                            AllocationAlignment alignment) {}

AllocationResult HeapAllocator::AllocateRawData(int size_in_bytes,
                                                AllocationType type,
                                                AllocationOrigin origin,
                                                AllocationAlignment alignment) {}

template <HeapAllocator::AllocationRetryMode mode>
V8_WARN_UNUSED_RESULT V8_INLINE Tagged<HeapObject>
HeapAllocator::AllocateRawWith(int size, AllocationType allocation,
                               AllocationOrigin origin,
                               AllocationAlignment alignment) {}

}  // namespace internal
}  // namespace v8

#endif  // V8_HEAP_HEAP_ALLOCATOR_INL_H_