v8  3.25.30(node0.11.13)
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< Context > context)
 
void LeaveContext ()
 
bool LastEnteredContextWas (Handle< Context > context)
 
Handle< ContextLastEnteredContext ()
 
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 512 of file api.h.

Constructor & Destructor Documentation

HandleScopeImplementer ( Isolate isolate)
inlineexplicit

Definition at line 514 of file api.h.

Definition at line 523 of file api.h.

References v8::internal::DeleteArray().

Member Function Documentation

int ArchiveSpacePerThread ( )
static

Definition at line 7504 of file api.cc.

Referenced by ThreadManager::IterateArchivedThreads().

char * ArchiveThread ( char *  to)

Definition at line 7492 of file api.cc.

References HandleScopeData::Initialize().

bool CallDepthIsZero ( )
inline

Definition at line 543 of file api.h.

Referenced by V8::FireCallCompletedCallback(), and V8::RunMicrotasks().

void DecrementCallDepth ( )
inline

Definition at line 542 of file api.h.

Referenced by V8::FireCallCompletedCallback(), and V8::RunMicrotasks().

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

Definition at line 634 of file api.h.

Referenced by Context::Enter().

void FreeThreadResources ( )

Definition at line 7487 of file api.cc.

Referenced by ThreadManager::FreeThreadResources().

internal::Object ** GetSpareOrNewBlock ( )
inline

Definition at line 656 of file api.h.

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

Referenced by DeferredHandleScope::DeferredHandleScope().

bool HasSavedContexts ( )
inline

Definition at line 629 of file api.h.

void IncrementCallDepth ( )
inline

Definition at line 541 of file api.h.

Referenced by V8::FireCallCompletedCallback(), and V8::RunMicrotasks().

void Iterate ( v8::internal::ObjectVisitor *  v)

Definition at line 7553 of file api.cc.

Referenced by ThreadManager::Iterate(), Heap::IterateStrongRoots(), and TEST().

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

Definition at line 7560 of file api.cc.

Handle< Context > LastEnteredContext ( )
inline

Definition at line 649 of file api.h.

Referenced by Isolate::GetEnteredContext().

bool LastEnteredContextWas ( Handle< Context context)
inline

Definition at line 644 of file api.h.

Referenced by Context::Exit().

void LeaveContext ( )
inline

Definition at line 639 of file api.h.

Referenced by Context::Exit().

Context * RestoreContext ( )
inline

Definition at line 624 of file api.h.

Referenced by Context::Exit().

char * RestoreThread ( char *  from)

Definition at line 7509 of file api.cc.

Referenced by ThreadManager::RestoreThread().

void ReturnBlock ( Object **  block)
inline

Definition at line 560 of file api.h.

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

void SaveContext ( Context context)
inline

Definition at line 619 of file api.h.

Referenced by Context::Enter().

Friends And Related Function Documentation

friend class DeferredHandles
friend

Definition at line 609 of file api.h.

friend class DeferredHandleScope
friend

Definition at line 610 of file api.h.


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