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

#include <api.h>

Public Member Functions

 HandleScopeImplementer (Isolate *isolate)
 
 ~HandleScopeImplementer ()
 
char * RestoreThread (char *from)
 
char * ArchiveThread (char *to)
 
void FreeThreadResources ()
 
void Iterate (v8::internal::ObjectVisitor *v)
 
internal::Object ** GetSpareOrNewBlock ()
 
void DeleteExtensions (internal::Object **prev_limit)
 
void IncrementCallDepth ()
 
void DecrementCallDepth ()
 
bool CallDepthIsZero ()
 
void EnterContext (Handle< Object > context)
 
bool LeaveLastContext ()
 
Handle< ObjectLastEnteredContext ()
 
void SaveContext (Context *context)
 
ContextRestoreContext ()
 
bool HasSavedContexts ()
 
List< internal::Object ** > * blocks ()
 
Isolateisolate () const
 
void ReturnBlock (Object **block)
 

Static Public Member Functions

static int ArchiveSpacePerThread ()
 
static char * Iterate (v8::internal::ObjectVisitor *v, char *data)
 

Friends

class DeferredHandles
 
class DeferredHandleScope
 

Detailed Description

Definition at line 407 of file api.h.

Constructor & Destructor Documentation

HandleScopeImplementer ( Isolate isolate)
inlineexplicit

Definition at line 409 of file api.h.

Definition at line 418 of file api.h.

References v8::internal::DeleteArray().

Member Function Documentation

int ArchiveSpacePerThread ( )
static

Definition at line 6521 of file api.cc.

Referenced by ThreadManager::IterateArchivedThreads().

char * ArchiveThread ( char *  to)

Definition at line 6508 of file api.cc.

bool CallDepthIsZero ( )
inline

Definition at line 438 of file api.h.

Referenced by V8::FireCallCompletedCallback().

void DecrementCallDepth ( )
inline

Definition at line 437 of file api.h.

Referenced by V8::FireCallCompletedCallback().

void DeleteExtensions ( internal::Object **  prev_limit)
inline
void EnterContext ( Handle< Object context)
inline

Definition at line 528 of file api.h.

Referenced by Context::Enter().

void FreeThreadResources ( )

Definition at line 6503 of file api.cc.

Referenced by ThreadManager::FreeThreadResources().

internal::Object ** GetSpareOrNewBlock ( )
inline

Definition at line 547 of file api.h.

References v8::internal::kHandleBlockSize, and v8::internal::NULL.

Referenced by DeferredHandleScope::DeferredHandleScope().

bool HasSavedContexts ( )
inline

Definition at line 523 of file api.h.

void IncrementCallDepth ( )
inline

Definition at line 436 of file api.h.

Referenced by V8::FireCallCompletedCallback().

void Iterate ( v8::internal::ObjectVisitor *  v)
static char* Iterate ( v8::internal::ObjectVisitor *  v,
char *  data 
)
static
Handle< Object > LastEnteredContext ( )
inline

Definition at line 540 of file api.h.

Referenced by Context::GetEntered().

bool LeaveLastContext ( )
inline

Definition at line 533 of file api.h.

Referenced by Context::Exit().

Context * RestoreContext ( )
inline

Definition at line 518 of file api.h.

Referenced by Context::Exit().

char * RestoreThread ( char *  from)

Definition at line 6526 of file api.cc.

Referenced by ThreadManager::RestoreThread().

void ReturnBlock ( Object **  block)
inline

Definition at line 454 of file api.h.

References ASSERT, v8::internal::DeleteArray(), and v8::internal::NULL.

void SaveContext ( Context context)
inline

Definition at line 513 of file api.h.

Referenced by Context::Enter().

Friends And Related Function Documentation

friend class DeferredHandles
friend

Definition at line 503 of file api.h.

friend class DeferredHandleScope
friend

Definition at line 504 of file api.h.


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