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::Node Class Reference
Collaboration diagram for GlobalHandles::Node:

Public Types

enum  State {
  FREE, NORMAL, WEAK, PENDING,
  NEAR_DEATH
}
 

Public Member Functions

 Node ()
 
void Initialize (int index, Node **first_free)
 
void Acquire (Object *object, GlobalHandles *global_handles)
 
void Release (GlobalHandles *global_handles)
 
Objectobject () const
 
Object ** location ()
 
Handle< Objecthandle ()
 
bool has_wrapper_class_id () const
 
uint16_t wrapper_class_id () const
 
void set_wrapper_class_id (uint16_t class_id)
 
State state () const
 
bool IsNearDeath () const
 
bool IsWeak () const
 
bool IsRetainer () const
 
bool IsStrongRetainer () const
 
bool IsWeakRetainer () const
 
void MarkPending ()
 
void MarkIndependent ()
 
bool is_independent () const
 
void set_in_new_space_list (bool v)
 
bool is_in_new_space_list () const
 
WeakReferenceCallback callback ()
 
void set_parameter (void *parameter)
 
void * parameter () const
 
Nodenext_free ()
 
void set_next_free (Node *value)
 
void MakeWeak (GlobalHandles *global_handles, void *parameter, WeakReferenceCallback callback)
 
void ClearWeakness (GlobalHandles *global_handles)
 
bool PostGarbageCollectionProcessing (Isolate *isolate, GlobalHandles *global_handles)
 

Static Public Member Functions

static NodeFromLocation (Object **location)
 

Detailed Description

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

Member Enumeration Documentation

enum State
Enumerator
FREE 
NORMAL 
WEAK 
PENDING 
NEAR_DEATH 

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

Constructor & Destructor Documentation

Node ( )
inline

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

Member Function Documentation

bool has_wrapper_class_id ( ) const
inline

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

References HeapProfiler::kPersistentHandleNoClassId.

void Initialize ( int  index,
Node **  first_free 
)
inline

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

References ASSERT, and GlobalHandles::Node::FREE.

Referenced by GlobalHandles::NodeBlock::PutNodesOnFreeList().

bool IsNearDeath ( ) const
inline
bool IsRetainer ( ) const
inline
bool IsStrongRetainer ( ) const
inline
bool IsWeak ( ) const
inline
void MarkIndependent ( )
inline

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

References ASSERT, and GlobalHandles::Node::FREE.

Referenced by GlobalHandles::MarkIndependent().

void MarkPending ( )
inline
Node* next_free ( )
inline

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

References ASSERT, and GlobalHandles::Node::FREE.

Object* object ( ) const
inline
void* parameter ( ) const
inline
void set_in_new_space_list ( bool  v)
inline
void set_next_free ( Node value)
inline

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

References ASSERT, and GlobalHandles::Node::FREE.

void set_wrapper_class_id ( uint16_t  class_id)
inline

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

Referenced by GlobalHandles::SetWrapperClassId().

State state ( ) const
inline
uint16_t wrapper_class_id ( ) const
inline

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

Referenced by GlobalHandles::GetWrapperClassId().

Field Documentation

Node* next_free

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

Referenced by GlobalHandles::Create().

void* parameter

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


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