v8  3.11.10(node0.8.26)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Space Class Referenceabstract

#include <spaces.h>

Inheritance diagram for Space:
Collaboration diagram for Space:

Public Member Functions

 Space (Heap *heap, AllocationSpace id, Executability executable)
 
virtual ~Space ()
 
Heapheap () const
 
Executability executable ()
 
AllocationSpace identity ()
 
virtual intptr_t Size ()=0
 
virtual intptr_t SizeOfObjects ()
 
virtual int RoundSizeDownToObjectAlignment (int size)
 
virtual bool ReserveSpace (int bytes)=0
 
- Public Member Functions inherited from Malloced
void * operator new (size_t size)
 
void operator delete (void *p)
 

Additional Inherited Members

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

Detailed Description

Definition at line 759 of file spaces.h.

Constructor & Destructor Documentation

Space ( Heap heap,
AllocationSpace  id,
Executability  executable 
)
inline

Definition at line 761 of file spaces.h.

virtual ~Space ( )
inlinevirtual

Definition at line 764 of file spaces.h.

Member Function Documentation

Executability executable ( )
inline

Definition at line 769 of file spaces.h.

Referenced by SemiSpace::Commit(), PagedSpace::Expand(), and SemiSpace::GrowTo().

virtual bool ReserveSpace ( int  bytes)
pure virtual
virtual int RoundSizeDownToObjectAlignment ( int  size)
inlinevirtual
virtual intptr_t Size ( )
pure virtual

Implemented in LargeObjectSpace, NewSpace, SemiSpace, and PagedSpace.

Referenced by Space::SizeOfObjects().

virtual intptr_t SizeOfObjects ( )
inlinevirtual

Reimplemented in LargeObjectSpace, and PagedSpace.

Definition at line 779 of file spaces.h.

References Space::Size().


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