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
Zone Class Reference

#include <zone.h>

Public Member Functions

 Zone (Isolate *isolate)
 
 ~Zone ()
 
void * New (int size)
 
template<typename T >
TNewArray (int length)
 
void DeleteAll ()
 
void DeleteKeptSegment ()
 
bool excess_allocation ()
 
void adjust_segment_bytes_allocated (int delta)
 
Isolateisolate ()
 

Static Public Attributes

static unsigned allocation_size_ = 0
 

Friends

class Isolate
 
class ZoneScope
 

Detailed Description

Definition at line 65 of file zone.h.

Constructor & Destructor Documentation

Zone ( Isolate isolate)
explicit

Definition at line 70 of file zone.cc.

~Zone ( )
inline

Definition at line 68 of file zone.h.

References Zone::DeleteKeptSegment().

Member Function Documentation

void adjust_segment_bytes_allocated ( int  delta)
inline

Definition at line 82 of file zone-inl.h.

References Isolate::counters().

void DeleteKeptSegment ( )

Definition at line 159 of file zone.cc.

References v8::internal::NULL, and Segment::size().

Referenced by Zone::~Zone().

bool excess_allocation ( )
inline

Definition at line 77 of file zone-inl.h.

Isolate* isolate ( )
inline

Definition at line 89 of file zone.h.

T * NewArray ( int  length)
inline

Definition at line 72 of file zone-inl.h.

References Zone::New(), and T.

Referenced by TEST().

Friends And Related Function Documentation

friend class Isolate
friend

Definition at line 94 of file zone.h.

friend class ZoneScope
friend

Definition at line 95 of file zone.h.

Field Documentation

unsigned allocation_size_ = 0
static

Definition at line 91 of file zone.h.

Referenced by Zone::New().


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