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

#include <global-handles.h>

Data Structures

class  Node
 
class  NodeBlock
 
class  NodeIterator
 

Public Member Functions

 ~GlobalHandles ()
 
Handle< ObjectCreate (Object *value)
 
void Destroy (Object **location)
 
void MakeWeak (Object **location, void *parameter, WeakReferenceCallback callback)
 
int NumberOfWeakHandles ()
 
void RecordStats (HeapStats *stats)
 
int NumberOfGlobalObjectWeakHandles ()
 
int NumberOfGlobalHandles ()
 
void ClearWeakness (Object **location)
 
void MarkIndependent (Object **location)
 
bool PostGarbageCollectionProcessing (GarbageCollector collector)
 
void IterateStrongRoots (ObjectVisitor *v)
 
void IterateAllRoots (ObjectVisitor *v)
 
void IterateAllRootsWithClassIds (ObjectVisitor *v)
 
void IterateWeakRoots (ObjectVisitor *v)
 
void IterateWeakRoots (WeakReferenceGuest f, WeakReferenceCallback callback)
 
void IdentifyWeakHandles (WeakSlotCallback f)
 
void IterateNewSpaceStrongAndDependentRoots (ObjectVisitor *v)
 
void IdentifyNewSpaceWeakIndependentHandles (WeakSlotCallbackWithHeap f)
 
void IterateNewSpaceWeakIndependentRoots (ObjectVisitor *v)
 
void AddObjectGroup (Object ***handles, size_t length, v8::RetainedObjectInfo *info)
 
void AddImplicitReferences (HeapObject **parent, Object ***children, size_t length)
 
List< ObjectGroup * > * object_groups ()
 
List< ImplicitRefGroup * > * implicit_ref_groups ()
 
void RemoveObjectGroups ()
 
void RemoveImplicitRefGroups ()
 
void TearDown ()
 
Isolateisolate ()
 

Static Public Member Functions

static void SetWrapperClassId (Object **location, uint16_t class_id)
 
static uint16_t GetWrapperClassId (Object **location)
 
static bool IsIndependent (Object **location)
 
static bool IsNearDeath (Object **location)
 
static bool IsWeak (Object **location)
 

Friends

class Isolate
 

Detailed Description

Definition at line 113 of file global-handles.h.

Constructor & Destructor Documentation

Definition at line 394 of file global-handles.cc.

References GlobalHandles::NodeBlock::next(), and v8::internal::NULL.

Member Function Documentation

void AddImplicitReferences ( HeapObject **  parent,
Object ***  children,
size_t  length 
)
void AddObjectGroup ( Object ***  handles,
size_t  length,
v8::RetainedObjectInfo info 
)
void ClearWeakness ( Object **  location)
uint16_t GetWrapperClassId ( Object **  location)
static
void IdentifyWeakHandles ( WeakSlotCallback  f)

Definition at line 491 of file global-handles.cc.

References GlobalHandles::NodeIterator::done().

List<ImplicitRefGroup*>* implicit_ref_groups ( )
inline

Definition at line 223 of file global-handles.h.

bool IsIndependent ( Object **  location)
static
bool IsNearDeath ( Object **  location)
static

Definition at line 456 of file global-handles.cc.

References GlobalHandles::Node::FromLocation(), and GlobalHandles::Node::IsNearDeath().

Referenced by TEST().

Isolate* isolate ( )
inline

Definition at line 234 of file global-handles.h.

bool IsWeak ( Object **  location)
static

Definition at line 461 of file global-handles.cc.

References GlobalHandles::Node::FromLocation(), and GlobalHandles::Node::IsWeak().

Referenced by TEST().

void IterateAllRoots ( ObjectVisitor *  v)
void IterateAllRootsWithClassIds ( ObjectVisitor *  v)

Definition at line 611 of file global-handles.cc.

References GlobalHandles::NodeIterator::done().

Referenced by V8::VisitHandlesWithClassIds().

void IterateNewSpaceStrongAndDependentRoots ( ObjectVisitor *  v)
void IterateNewSpaceWeakIndependentRoots ( ObjectVisitor *  v)
void IterateStrongRoots ( ObjectVisitor *  v)

Definition at line 593 of file global-handles.cc.

References GlobalHandles::NodeIterator::done().

Referenced by Heap::IterateStrongRoots().

void IterateWeakRoots ( ObjectVisitor *  v)

Definition at line 474 of file global-handles.cc.

References GlobalHandles::NodeIterator::done().

void IterateWeakRoots ( WeakReferenceGuest  f,
WeakReferenceCallback  callback 
)

Definition at line 481 of file global-handles.cc.

References GlobalHandles::NodeIterator::done().

void MarkIndependent ( Object **  location)
int NumberOfGlobalHandles ( )
inline

Definition at line 148 of file global-handles.h.

Referenced by HeapProfiler::GetPersistentHandleCount().

int NumberOfGlobalObjectWeakHandles ( )
inline

Definition at line 143 of file global-handles.h.

int NumberOfWeakHandles ( )
inline

Definition at line 137 of file global-handles.h.

Referenced by StartupSerializer::SerializeStrongReferences().

List<ObjectGroup*>* object_groups ( )
inline

Definition at line 220 of file global-handles.h.

void RemoveImplicitRefGroups ( )

Definition at line 719 of file global-handles.cc.

void RemoveObjectGroups ( )

Definition at line 711 of file global-handles.cc.

void SetWrapperClassId ( Object **  location,
uint16_t  class_id 
)
static
void TearDown ( )

Definition at line 727 of file global-handles.cc.

Referenced by Heap::TearDown().

Friends And Related Function Documentation

friend class Isolate
friend

Definition at line 280 of file global-handles.h.


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