v8
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Friends | List of all members
v8::HandleScope Class Reference

#include <v8.h>

Inheritance diagram for v8::HandleScope:
v8::EscapableHandleScope

Public Member Functions

 HandleScope (Isolate *isolate)
 
 ~HandleScope ()
 
V8_INLINE IsolateGetIsolate () const
 

Static Public Member Functions

static int NumberOfHandles (Isolate *isolate)
 

Protected Member Functions

V8_INLINE HandleScope ()
 
void Initialize (Isolate *isolate)
 

Static Protected Member Functions

static internal::Object ** CreateHandle (internal::Isolate *isolate, internal::Object *value)
 

Friends

template<class F >
class Local
 
class Object
 
class Context
 

Detailed Description

A stack-allocated class that governs a number of local handles. After a handle scope has been created, all local handles will be allocated within that handle scope until either the handle scope is deleted or another handle scope is created. If there is already a handle scope and a new one is created, all allocations will take place in the new handle scope until it is deleted. After that, new handles will again be allocated in the original handle scope.

After the handle scope of a local handle has been deleted the garbage collector will no longer track the object stored in the handle and may deallocate it. The behavior of accessing a handle for which the handle scope has been deleted is undefined.

Constructor & Destructor Documentation

v8::HandleScope::HandleScope ( Isolate isolate)
v8::HandleScope::~HandleScope ( )
V8_INLINE v8::HandleScope::HandleScope ( )
inlineprotected

Member Function Documentation

static internal::Object** v8::HandleScope::CreateHandle ( internal::Isolate *  isolate,
internal::Object *  value 
)
staticprotected
V8_INLINE Isolate* v8::HandleScope::GetIsolate ( ) const
inline
void v8::HandleScope::Initialize ( Isolate isolate)
protected
static int v8::HandleScope::NumberOfHandles ( Isolate isolate)
static

Counts the number of allocated handles.

Friends And Related Function Documentation

friend class Context
friend
template<class F >
friend class Local
friend
friend class Object
friend

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