v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::SpaceWithLinearArea Class Referenceabstract

#include <spaces.h>

Inheritance diagram for v8::internal::SpaceWithLinearArea:
Collaboration diagram for v8::internal::SpaceWithLinearArea:

Public Member Functions

 SpaceWithLinearArea (Heap *heap, AllocationSpace id, std::unique_ptr< FreeList > free_list)
 
virtual AllocatorPolicyCreateAllocatorPolicy (MainAllocator *allocator)=0
 
- Public Member Functions inherited from v8::internal::Space
 Space (Heap *heap, AllocationSpace id, std::unique_ptr< FreeList > free_list)
 
 ~Space () override=default
 
 Space (const Space &)=delete
 
Spaceoperator= (const Space &)=delete
 
virtual size_t SizeOfObjects () const
 
virtual size_t Available () const =0
 
virtual std::unique_ptr< ObjectIteratorGetObjectIterator (Heap *heap)=0
 
void IncrementExternalBackingStoreBytes (ExternalBackingStoreType type, size_t amount)
 
void DecrementExternalBackingStoreBytes (ExternalBackingStoreType type, size_t amount)
 
virtual size_t ExternalBackingStoreBytes (ExternalBackingStoreType type) const
 
virtual MutablePageMetadatafirst_page ()
 
virtual MutablePageMetadatalast_page ()
 
virtual const MutablePageMetadatafirst_page () const
 
virtual const MutablePageMetadatalast_page () const
 
virtual heap::List< MutablePageMetadata > & memory_chunk_list ()
 
virtual PageMetadataInitializePage (MutablePageMetadata *chunk)
 
virtual void NotifyBlackAreaCreated (size_t size)
 
virtual void NotifyBlackAreaDestroyed (size_t size)
 
FreeListfree_list ()
 
Address FirstPageAddress () const
 
- Public Member Functions inherited from v8::internal::BaseSpace
 BaseSpace (const BaseSpace &)=delete
 
BaseSpaceoperator= (const BaseSpace &)=delete
 
Heapheap () const
 
AllocationSpace identity () const
 
virtual size_t CommittedMemory () const
 
virtual size_t MaximumCommittedMemory () const
 
virtual size_t CommittedPhysicalMemory () const =0
 
virtual size_t Size () const =0
 

Friends

class MainAllocator
 

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 * operator new (size_t size)
 
static void operator delete (void *p)
 
- Protected Member Functions inherited from v8::internal::BaseSpace
 BaseSpace (Heap *heap, AllocationSpace id)
 
virtual ~BaseSpace ()=default
 
void AccountCommitted (size_t bytes)
 
void AccountUncommitted (size_t bytes)
 
- Protected Attributes inherited from v8::internal::Space
heap::List< MutablePageMetadatamemory_chunk_list_
 
std::atomic< size_texternal_backing_store_bytes_ [static_cast< int >(ExternalBackingStoreType::kNumValues)] = {0}
 
std::unique_ptr< FreeListfree_list_
 
- Protected Attributes inherited from v8::internal::BaseSpace
Heapheap_
 
AllocationSpace id_
 
std::atomic< size_tcommitted_ {0}
 
size_t max_committed_ = 0
 

Detailed Description

Definition at line 216 of file spaces.h.

Constructor & Destructor Documentation

◆ SpaceWithLinearArea()

v8::internal::SpaceWithLinearArea::SpaceWithLinearArea ( Heap * heap,
AllocationSpace id,
std::unique_ptr< FreeList > free_list )

Definition at line 39 of file spaces.cc.

Member Function Documentation

◆ CreateAllocatorPolicy()

virtual AllocatorPolicy * v8::internal::SpaceWithLinearArea::CreateAllocatorPolicy ( MainAllocator * allocator)
pure virtual

Friends And Related Symbol Documentation

◆ MainAllocator

friend class MainAllocator
friend

Definition at line 225 of file spaces.h.


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