#include <heap-allocator.h>
|
| | HeapAllocator (LocalHeap *) |
| |
| void | Setup (LinearAllocationArea *new_allocation_info=nullptr, LinearAllocationArea *old_allocation_info=nullptr) |
| |
| void | SetReadOnlySpace (ReadOnlySpace *) |
| |
| V8_WARN_UNUSED_RESULT V8_INLINE AllocationResult | AllocateRaw (int size_in_bytes, AllocationType allocation, AllocationOrigin origin=AllocationOrigin::kRuntime, AllocationAlignment alignment=kTaggedAligned) |
| |
| template<AllocationType type> |
| V8_WARN_UNUSED_RESULT V8_INLINE AllocationResult | AllocateRaw (int size_in_bytes, AllocationOrigin origin=AllocationOrigin::kRuntime, AllocationAlignment alignment=kTaggedAligned) |
| |
| template<AllocationRetryMode mode> |
| V8_WARN_UNUSED_RESULT V8_INLINE Tagged< HeapObject > | AllocateRawWith (int size, AllocationType allocation, AllocationOrigin origin=AllocationOrigin::kRuntime, AllocationAlignment alignment=kTaggedAligned) |
| |
| V8_INLINE bool | CanAllocateInReadOnlySpace () const |
| |
| void | FreeLinearAllocationAreas () |
| |
| void | MakeLinearAllocationAreasIterable () |
| |
| void | MarkLinearAllocationAreasBlack () |
| |
| void | UnmarkLinearAllocationsArea () |
| |
| void | MarkSharedLinearAllocationAreasBlack () |
| |
| void | UnmarkSharedLinearAllocationAreas () |
| |
| void | FreeLinearAllocationAreasAndResetFreeLists () |
| |
| void | FreeSharedLinearAllocationAreasAndResetFreeLists () |
| |
| void | PauseAllocationObservers () |
| |
| void | ResumeAllocationObservers () |
| |
| void | PublishPendingAllocations () |
| |
| void | AddAllocationObserver (AllocationObserver *observer, AllocationObserver *new_space_observer) |
| |
| void | RemoveAllocationObserver (AllocationObserver *observer, AllocationObserver *new_space_observer) |
| |
| MainAllocator * | new_space_allocator () |
| |
| const MainAllocator * | new_space_allocator () const |
| |
| MainAllocator * | old_space_allocator () |
| |
| MainAllocator * | trusted_space_allocator () |
| |
| MainAllocator * | code_space_allocator () |
| |
| MainAllocator * | shared_space_allocator () |
| |
| template<typename Function > |
| V8_WARN_UNUSED_RESULT V8_INLINE auto | CustomAllocateWithRetryOrFail (Function &&Allocate, AllocationType allocation) |
| |
| template<typename AllocateFunction , typename RetryFunction > |
| auto | AllocateRawWithRetryOrFailSlowPath (AllocateFunction &&Allocate, RetryFunction &&RetryAllocate, AllocationType allocation) |
| |
| template<typename Function > |
| V8_WARN_UNUSED_RESULT auto | CustomAllocateWithRetryOrFail (Function &&Allocate, AllocationType allocation) |
| |
|
| V8_INLINE PagedSpace * | code_space () const |
| |
| V8_INLINE CodeLargeObjectSpace * | code_lo_space () const |
| |
| V8_INLINE NewSpace * | new_space () const |
| |
| V8_INLINE NewLargeObjectSpace * | new_lo_space () const |
| |
| V8_INLINE OldLargeObjectSpace * | lo_space () const |
| |
| V8_INLINE OldLargeObjectSpace * | shared_lo_space () const |
| |
| V8_INLINE OldLargeObjectSpace * | shared_trusted_lo_space () const |
| |
| V8_INLINE PagedSpace * | old_space () const |
| |
| V8_INLINE ReadOnlySpace * | read_only_space () const |
| |
| V8_INLINE PagedSpace * | trusted_space () const |
| |
| V8_INLINE OldLargeObjectSpace * | trusted_lo_space () const |
| |
| V8_WARN_UNUSED_RESULT AllocationResult | AllocateRawLargeInternal (int size_in_bytes, AllocationType allocation, AllocationOrigin origin, AllocationAlignment alignment) |
| |
| template<typename AllocateFunction , typename RetryFunction > |
| V8_WARN_UNUSED_RESULT auto | AllocateRawWithRetryOrFailSlowPath (AllocateFunction &&Allocate, RetryFunction &&RetryAllocate, AllocationType allocation) |
| |
| V8_WARN_UNUSED_RESULT AllocationResult | AllocateRawWithRetryOrFailSlowPath (int size, AllocationType allocation, AllocationOrigin origin, AllocationAlignment alignment) |
| |
| template<typename AllocateFunction , typename RetryFunction > |
| V8_WARN_UNUSED_RESULT auto | AllocateRawWithLightRetrySlowPath (AllocateFunction &&Allocate, RetryFunction &&RetryAllocate, AllocationType allocation) |
| |
| V8_WARN_UNUSED_RESULT AllocationResult | AllocateRawWithLightRetrySlowPath (int size, AllocationType allocation, AllocationOrigin origin, AllocationAlignment alignment) |
| |
| void | CollectGarbage (AllocationType allocation) |
| |
| void | CollectAllAvailableGarbage (AllocationType allocation) |
| |
| V8_WARN_UNUSED_RESULT AllocationResult | RetryAllocateRaw (int size_in_bytes, AllocationType allocation, AllocationOrigin origin, AllocationAlignment alignment) |
| |
| bool | ReachedAllocationTimeout () |
| |
Definition at line 35 of file heap-allocator.h.
◆ AllocationRetryMode
◆ HeapAllocator()
| v8::internal::HeapAllocator::HeapAllocator |
( |
LocalHeap * | local_heap | ) |
|
|
explicit |
◆ AddAllocationObserver()
◆ AllocateRaw() [1/2]
◆ AllocateRaw() [2/2]
◆ AllocateRawLargeInternal()
◆ AllocateRawWith()
◆ AllocateRawWithLightRetrySlowPath() [1/2]
template<typename AllocateFunction , typename RetryFunction >
| V8_WARN_UNUSED_RESULT auto v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath |
( |
AllocateFunction && | Allocate, |
|
|
RetryFunction && | RetryAllocate, |
|
|
AllocationType | allocation ) |
|
inlineprivate |
◆ AllocateRawWithLightRetrySlowPath() [2/2]
◆ AllocateRawWithRetryOrFailSlowPath() [1/3]
template<typename AllocateFunction , typename RetryFunction >
| auto v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath |
( |
AllocateFunction && | Allocate, |
|
|
RetryFunction && | RetryAllocate, |
|
|
AllocationType | allocation ) |
◆ AllocateRawWithRetryOrFailSlowPath() [2/3]
template<typename AllocateFunction , typename RetryFunction >
| V8_WARN_UNUSED_RESULT auto v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath |
( |
AllocateFunction && | Allocate, |
|
|
RetryFunction && | RetryAllocate, |
|
|
AllocationType | allocation ) |
|
inlineprivate |
◆ AllocateRawWithRetryOrFailSlowPath() [3/3]
◆ CanAllocateInReadOnlySpace()
| bool v8::internal::HeapAllocator::CanAllocateInReadOnlySpace |
( |
| ) |
const |
◆ code_lo_space()
◆ code_space()
| PagedSpace * v8::internal::HeapAllocator::code_space |
( |
| ) |
const |
|
private |
◆ code_space_allocator()
| MainAllocator * v8::internal::HeapAllocator::code_space_allocator |
( |
| ) |
|
|
inline |
◆ CollectAllAvailableGarbage()
| void v8::internal::HeapAllocator::CollectAllAvailableGarbage |
( |
AllocationType | allocation | ) |
|
|
private |
◆ CollectGarbage()
| void v8::internal::HeapAllocator::CollectGarbage |
( |
AllocationType | allocation | ) |
|
|
private |
◆ CustomAllocateWithRetryOrFail() [1/2]
◆ CustomAllocateWithRetryOrFail() [2/2]
◆ FreeLinearAllocationAreas()
| void v8::internal::HeapAllocator::FreeLinearAllocationAreas |
( |
| ) |
|
◆ FreeLinearAllocationAreasAndResetFreeLists()
| void v8::internal::HeapAllocator::FreeLinearAllocationAreasAndResetFreeLists |
( |
| ) |
|
◆ FreeSharedLinearAllocationAreasAndResetFreeLists()
| void v8::internal::HeapAllocator::FreeSharedLinearAllocationAreasAndResetFreeLists |
( |
| ) |
|
◆ lo_space()
◆ MakeLinearAllocationAreasIterable()
| void v8::internal::HeapAllocator::MakeLinearAllocationAreasIterable |
( |
| ) |
|
◆ MarkLinearAllocationAreasBlack()
| void v8::internal::HeapAllocator::MarkLinearAllocationAreasBlack |
( |
| ) |
|
◆ MarkSharedLinearAllocationAreasBlack()
| void v8::internal::HeapAllocator::MarkSharedLinearAllocationAreasBlack |
( |
| ) |
|
◆ new_lo_space()
◆ new_space()
| NewSpace * v8::internal::HeapAllocator::new_space |
( |
| ) |
const |
|
private |
◆ new_space_allocator() [1/2]
| MainAllocator * v8::internal::HeapAllocator::new_space_allocator |
( |
| ) |
|
|
inline |
◆ new_space_allocator() [2/2]
| const MainAllocator * v8::internal::HeapAllocator::new_space_allocator |
( |
| ) |
const |
|
inline |
◆ old_space()
| PagedSpace * v8::internal::HeapAllocator::old_space |
( |
| ) |
const |
|
private |
◆ old_space_allocator()
| MainAllocator * v8::internal::HeapAllocator::old_space_allocator |
( |
| ) |
|
|
inline |
◆ PauseAllocationObservers()
| void v8::internal::HeapAllocator::PauseAllocationObservers |
( |
| ) |
|
◆ PublishPendingAllocations()
| void v8::internal::HeapAllocator::PublishPendingAllocations |
( |
| ) |
|
◆ ReachedAllocationTimeout()
| bool v8::internal::HeapAllocator::ReachedAllocationTimeout |
( |
| ) |
|
|
private |
◆ read_only_space()
| ReadOnlySpace * v8::internal::HeapAllocator::read_only_space |
( |
| ) |
const |
|
private |
◆ RemoveAllocationObserver()
◆ ResumeAllocationObservers()
| void v8::internal::HeapAllocator::ResumeAllocationObservers |
( |
| ) |
|
◆ RetryAllocateRaw()
◆ SetReadOnlySpace()
| void v8::internal::HeapAllocator::SetReadOnlySpace |
( |
ReadOnlySpace * | read_only_space | ) |
|
◆ Setup()
◆ shared_lo_space()
◆ shared_space_allocator()
| MainAllocator * v8::internal::HeapAllocator::shared_space_allocator |
( |
| ) |
|
|
inline |
◆ shared_trusted_lo_space()
◆ trusted_lo_space()
◆ trusted_space()
| PagedSpace * v8::internal::HeapAllocator::trusted_space |
( |
| ) |
const |
|
private |
◆ trusted_space_allocator()
| MainAllocator * v8::internal::HeapAllocator::trusted_space_allocator |
( |
| ) |
|
|
inline |
◆ UnmarkLinearAllocationsArea()
| void v8::internal::HeapAllocator::UnmarkLinearAllocationsArea |
( |
| ) |
|
◆ UnmarkSharedLinearAllocationAreas()
| void v8::internal::HeapAllocator::UnmarkSharedLinearAllocationAreas |
( |
| ) |
|
◆ code_space_allocator_
| std::optional<MainAllocator> v8::internal::HeapAllocator::code_space_allocator_ |
|
private |
◆ heap_
| Heap* const v8::internal::HeapAllocator::heap_ |
|
private |
◆ local_heap_
| LocalHeap* v8::internal::HeapAllocator::local_heap_ |
|
private |
◆ new_space_allocator_
| std::optional<MainAllocator> v8::internal::HeapAllocator::new_space_allocator_ |
|
private |
◆ old_space_allocator_
| std::optional<MainAllocator> v8::internal::HeapAllocator::old_space_allocator_ |
|
private |
◆ read_only_space_
◆ shared_lo_space_
◆ shared_space_allocator_
| std::optional<MainAllocator> v8::internal::HeapAllocator::shared_space_allocator_ |
|
private |
◆ shared_trusted_lo_space_
◆ shared_trusted_space_allocator_
| std::optional<MainAllocator> v8::internal::HeapAllocator::shared_trusted_space_allocator_ |
|
private |
◆ spaces_
◆ trusted_space_allocator_
| std::optional<MainAllocator> v8::internal::HeapAllocator::trusted_space_allocator_ |
|
private |
The documentation for this class was generated from the following files: