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

Public Types

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

Public Member Functions

 Node ()
 
void Initialize (int index, Node **first_free)
 
void Acquire (Object *object)
 
void Release ()
 
Objectobject () const
 
Object ** location ()
 
Handle< Objecthandle ()
 
bool has_wrapper_class_id () const
 
uint16_t wrapper_class_id () const
 
State state () const
 
void set_state (State state)
 
bool is_independent ()
 
void set_independent (bool v)
 
bool is_partially_dependent ()
 
void set_partially_dependent (bool v)
 
bool is_in_new_space_list ()
 
void set_in_new_space_list (bool v)
 
bool IsNearDeath () const
 
bool IsWeak () const
 
bool IsRetainer () const
 
bool IsStrongRetainer () const
 
bool IsWeakRetainer () const
 
void MarkPending ()
 
void MarkIndependent ()
 
void MarkPartiallyDependent ()
 
void clear_partially_dependent ()
 
void set_parameter (void *parameter)
 
void * parameter () const
 
Nodenext_free ()
 
void set_next_free (Node *value)
 
void MakeWeak (void *parameter, WeakCallback weak_callback)
 
void * ClearWeakness ()
 
bool PostGarbageCollectionProcessing (Isolate *isolate)
 
GlobalHandlesGetGlobalHandles ()
 

Static Public Member Functions

static NodeFromLocation (Object **location)
 

Detailed Description

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

Member Enumeration Documentation

enum State
Enumerator
FREE 
NORMAL 
WEAK 
PENDING 
NEAR_DEATH 

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

Constructor & Destructor Documentation

Member Function Documentation

void clear_partially_dependent ( )
inline
bool has_wrapper_class_id ( ) const
inline
void Initialize ( int  index,
Node **  first_free 
)
inline
bool IsNearDeath ( ) const
inline
bool IsStrongRetainer ( ) const
inline
bool IsWeak ( ) const
inline
void MarkIndependent ( )
inline
Node* next_free ( )
inline
Object* object ( ) const
inline
void set_in_new_space_list ( bool  v)
inline
void set_independent ( bool  v)
inline
void set_next_free ( Node value)
inline
uint16_t wrapper_class_id ( ) const
inline

Field Documentation

Node* next_free

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

Referenced by GlobalHandles::Create().

void* parameter

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


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