#ifndef V8_HEAP_MAIN_ALLOCATOR_H_
#define V8_HEAP_MAIN_ALLOCATOR_H_
#include <optional>
#include "src/common/globals.h"
#include "src/heap/allocation-observer.h"
#include "src/heap/allocation-result.h"
#include "src/heap/gc-tracer.h"
#include "src/heap/linear-allocation-area.h"
#include "src/tasks/cancelable-task.h"
namespace v8 {
namespace internal {
class Heap;
class LocalHeap;
class MainAllocator;
class PagedNewSpace;
class PagedSpaceBase;
class SemiSpaceNewSpace;
class SpaceWithLinearArea;
class AllocatorPolicy { … };
class SemiSpaceNewSpaceAllocatorPolicy final : public AllocatorPolicy { … };
class PagedSpaceAllocatorPolicy final : public AllocatorPolicy { … };
class PagedNewSpaceAllocatorPolicy final : public AllocatorPolicy { … };
class LinearAreaOriginalData { … };
class MainAllocator { … };
}
}
#endif