V8 API Reference, 7.2.502.16 (for Deno 0.2.4)
v8::internal::NewSpace Class Reference
Inheritance diagram for v8::internal::NewSpace:
v8::internal::SpaceWithLinearArea v8::internal::Space v8::internal::Malloced

Public Types

typedef PageIterator iterator
 

Public Member Functions

 NewSpace (Heap *heap, v8::PageAllocator *page_allocator, size_t initial_semispace_capacity, size_t max_semispace_capacity)
 
bool Contains (HeapObject *o)
 
bool ContainsSlow (Address a)
 
bool Contains (Object *o)
 
void TearDown ()
 
void Flip ()
 
void Grow ()
 
void Shrink ()
 
size_t Size () override
 
size_t SizeOfObjects () override
 
size_t Capacity ()
 
size_t TotalCapacity ()
 
size_t CommittedMemory () override
 
size_t MaximumCommittedMemory () override
 
size_t CommittedPhysicalMemory () override
 
size_t Available () override
 
size_t ExternalBackingStoreBytes (ExternalBackingStoreType type) const override
 
size_t AllocatedSinceLastGC ()
 
void MovePageFromSpaceToSpace (Page *page)
 
bool Rebalance ()
 
size_t MaximumCapacity ()
 
bool IsAtMaximumCapacity ()
 
size_t InitialTotalCapacity ()
 
void ResetOriginalTop ()
 
Address original_top_acquire ()
 
Address original_limit_relaxed ()
 
Address first_allocatable_address ()
 
Address age_mark ()
 
void set_age_mark (Address mark)
 
V8_WARN_UNUSED_RESULT V8_INLINE AllocationResult AllocateRawAligned (int size_in_bytes, AllocationAlignment alignment)
 
V8_WARN_UNUSED_RESULT V8_INLINE AllocationResult AllocateRawUnaligned (int size_in_bytes)
 
V8_WARN_UNUSED_RESULT V8_INLINE AllocationResult AllocateRaw (int size_in_bytes, AllocationAlignment alignment)
 
V8_WARN_UNUSED_RESULT AllocationResult AllocateRawSynchronized (int size_in_bytes, AllocationAlignment alignment)
 
void ResetLinearAllocationArea ()
 
void UpdateInlineAllocationLimit (size_t size_in_bytes) override
 
bool ToSpaceContainsSlow (Address a)
 
bool ToSpaceContains (Object *o)
 
bool FromSpaceContains (Object *o)
 
bool AddFreshPage ()
 
bool AddFreshPageSynchronized ()
 
bool CommitFromSpaceIfNeeded ()
 
bool UncommitFromSpace ()
 
bool IsFromSpaceCommitted ()
 
SemiSpaceactive_space ()
 
Pagefirst_page ()
 
Pagelast_page ()
 
iterator begin ()
 
iterator end ()
 
std::unique_ptr< ObjectIteratorGetObjectIterator () override
 
SemiSpacefrom_space ()
 
SemiSpaceto_space ()
 
- Public Member Functions inherited from v8::internal::SpaceWithLinearArea
 SpaceWithLinearArea (Heap *heap, AllocationSpace id)
 
Address top ()
 
Address limit ()
 
Addressallocation_top_address ()
 
Addressallocation_limit_address ()
 
V8_EXPORT_PRIVATE void AddAllocationObserver (AllocationObserver *observer) override
 
V8_EXPORT_PRIVATE void RemoveAllocationObserver (AllocationObserver *observer) override
 
V8_EXPORT_PRIVATE void ResumeAllocationObservers () override
 
V8_EXPORT_PRIVATE void PauseAllocationObservers () override
 
Address ComputeLimit (Address start, Address end, size_t min_size)
 
- Public Member Functions inherited from v8::internal::Space
 Space (Heap *heap, AllocationSpace id)
 
Heapheap () const
 
AllocationSpace identity ()
 
const charname ()
 
void AllocationStep (int bytes_since_last, Address soon_object, int size)
 
virtual int RoundSizeDownToObjectAlignment (int size)
 
void AccountCommitted (size_t bytes)
 
void AccountUncommitted (size_t bytes)
 
void IncrementExternalBackingStoreBytes (ExternalBackingStoreType type, size_t amount)
 
void DecrementExternalBackingStoreBytes (ExternalBackingStoreType type, size_t amount)
 
V8_EXPORT_PRIVATE void * GetRandomMmapAddr ()
 
MemoryChunkfirst_page ()
 
MemoryChunklast_page ()
 
base::List< MemoryChunk > & memory_chunk_list ()
 
- Public Member Functions inherited from v8::internal::Malloced
void * operator new (size_t size)
 
void operator delete (void *p)
 

Friends

class SemiSpaceIterator
 

Additional Inherited Members

- Static Public Member Functions inherited from v8::internal::Space
static void MoveExternalBackingStoreBytes (ExternalBackingStoreType type, Space *from, Space *to, size_t amount)
 
- Static Public Member Functions inherited from v8::internal::Malloced
static void * New (size_t size)
 
static void Delete (void *p)
 
- Protected Member Functions inherited from v8::internal::SpaceWithLinearArea
void InlineAllocationStep (Address top, Address top_for_next_step, Address soon_object, size_t size)
 
V8_EXPORT_PRIVATE void StartNextInlineAllocationStep () override
 
- Protected Member Functions inherited from v8::internal::Space
intptr_t GetNextInlineAllocationStepSize ()
 
bool AllocationObserversActive ()
 
- Protected Attributes inherited from v8::internal::SpaceWithLinearArea
LinearAllocationArea allocation_info_
 
Address top_on_previous_step_
 
- Protected Attributes inherited from v8::internal::Space
std::vector< AllocationObserver * > allocation_observers_
 
base::List< MemoryChunkmemory_chunk_list_
 
std::atomic< size_t > * external_backing_store_bytes_
 

Detailed Description

Definition at line 2563 of file spaces.h.


The documentation for this class was generated from the following files: