v8  3.14.5(node0.10.28)
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 CommittedMemory ()
 
int PageCount ()
 
MaybeObject * FindObject (Address a)
 
LargePageFindPage (Address a)
 
void FreeUnmarkedObjects ()
 
bool Contains (HeapObject *obj)
 
bool IsEmpty ()
 
virtual bool ReserveSpace (int bytes)
 
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 2491 of file spaces.h.

Constructor & Destructor Documentation

LargeObjectSpace ( Heap heap,
intptr_t  max_capacity,
AllocationSpace  id 
)

Definition at line 2613 of file spaces.cc.

virtual ~LargeObjectSpace ( )
inlinevirtual

Definition at line 2494 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 2554 of file spaces.h.

bool IsEmpty ( )
inline

Definition at line 2547 of file spaces.h.

References v8::internal::NULL.

Referenced by TEST().

static intptr_t ObjectSizeFor ( intptr_t  chunk_size)
inlinestatic

Definition at line 2502 of file spaces.h.

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

Referenced by LargeObjectSpace::Available().

int PageCount ( )
inline

Definition at line 2527 of file spaces.h.

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

Reimplemented from Space.

Definition at line 2519 of file spaces.h.

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

bool SlowContains ( Address  addr)
inline

Definition at line 2567 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 2579 of file spaces.h.


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