Logo Search packages:      
Sourcecode: chromium-browser version File versions  Download package

v8::HandleScope Class Reference

#include <v8.h>

List of all members.

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.

Definition at line 438 of file v8.h.

Public Member Functions

template<class T>
Local< T > Close (Handle< T > value)

Static Public Member Functions

static internal::Object ** CreateHandle (internal::Object *value)
static int NumberOfHandles ()

Private Member Functions

 HandleScope (const HandleScope &)
void operator delete (void *, size_t)
void * operator new (size_t size)
void operator= (const HandleScope &)
internal::Object ** RawClose (internal::Object **value)

Private Attributes

bool is_closed_
Data previous_


class ImplementationUtilities


class  Data

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

Generated by  Doxygen 1.6.0   Back to index