v8  3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
LargeObjectSpace Class Reference

#include <spaces.h>

Inheritance diagram for LargeObjectSpace:
Collaboration diagram for LargeObjectSpace:

Public Member Functions

 LargeObjectSpace (Heap *heap, intptr_t max_capacity, AllocationSpace id)
 
virtual ~LargeObjectSpace ()
 
bool SetUp ()
 
void TearDown ()
 
MUST_USE_RESULT MaybeObject * AllocateRaw (int object_size, Executability executable)
 
intptr_t Available ()
 
virtual intptr_t Size ()
 
virtual intptr_t SizeOfObjects ()
 
intptr_t MaximumCommittedMemory ()
 
intptr_t CommittedMemory ()
 
size_t CommittedPhysicalMemory ()
 
int PageCount ()
 
MaybeObject * FindObject (Address a)
 
LargePageFindPage (Address a)
 
void FreeUnmarkedObjects ()
 
bool Contains (HeapObject *obj)
 
bool IsEmpty ()
 
LargePagefirst_page ()
 
bool SlowContains (Address addr)
 
- Public Member Functions inherited from Space
 Space (Heap *heap, AllocationSpace id, Executability executable)
 
virtual ~Space ()
 
Heapheap () const
 
Executability executable ()
 
AllocationSpace identity ()
 
virtual int RoundSizeDownToObjectAlignment (int size)
 
- Public Member Functions inherited from Malloced
void * operator new (size_t size)
 
void operator delete (void *p)
 

Static Public Member Functions

static intptr_t ObjectSizeFor (intptr_t chunk_size)
 
- Static Public Member Functions inherited from Malloced
static void FatalProcessOutOfMemory ()
 
static void * New (size_t size)
 
static void Delete (void *p)
 

Friends

class LargeObjectIterator
 

Detailed Description

Definition at line 2797 of file spaces.h.

Constructor & Destructor Documentation

LargeObjectSpace ( Heap heap,
intptr_t  max_capacity,
AllocationSpace  id 
)

Definition at line 2897 of file spaces.cc.

virtual ~LargeObjectSpace ( )
inlinevirtual

Definition at line 2800 of file spaces.h.

Member Function Documentation

intptr_t Available ( )
inline
intptr_t CommittedMemory ( )
inline
bool Contains ( HeapObject obj)
LargePage* first_page ( )
inline

Definition at line 2862 of file spaces.h.

bool IsEmpty ( )
inline

Definition at line 2860 of file spaces.h.

References v8::internal::NULL.

Referenced by TEST().

intptr_t MaximumCommittedMemory ( )
inline

Definition at line 2829 of file spaces.h.

Referenced by Heap::TearDown().

static intptr_t ObjectSizeFor ( intptr_t  chunk_size)
inlinestatic

Definition at line 2808 of file spaces.h.

References MemoryChunk::kObjectStartOffset, and Page::kPageSize.

Referenced by LargeObjectSpace::Available().

int PageCount ( )
inline

Definition at line 2840 of file spaces.h.

bool SetUp ( )
virtual intptr_t Size ( )
inlinevirtual
virtual intptr_t SizeOfObjects ( )
inlinevirtual

Reimplemented from Space.

Definition at line 2825 of file spaces.h.

Referenced by Heap::PrintShortHeapStatistics(), and Heap::PromotedSpaceSizeOfObjects().

bool SlowContains ( Address  addr)
inline

Definition at line 2875 of file spaces.h.

References LargeObjectSpace::FindObject().

Referenced by Heap::Contains(), and Heap::InSpace().

Friends And Related Function Documentation

friend class LargeObjectIterator
friend

Definition at line 2888 of file spaces.h.


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