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

#include <global-handles.h>

Public Types

enum  SingletonHandle { I18N_TEMPLATE_ONE, I18N_TEMPLATE_TWO, DATE_CACHE_VERSION, NUMBER_OF_SINGLETON_HANDLES }
 

Public Member Functions

 EternalHandles ()
 
 ~EternalHandles ()
 
int NumberOfHandles ()
 
void Create (Isolate *isolate, Object *object, int *index)
 
Handle< ObjectGet (int index)
 
Handle< ObjectGetSingleton (SingletonHandle singleton)
 
bool Exists (SingletonHandle singleton)
 
Handle< ObjectCreateSingleton (Isolate *isolate, Object *object, SingletonHandle singleton)
 
void IterateAllRoots (ObjectVisitor *visitor)
 
void IterateNewSpaceRoots (ObjectVisitor *visitor)
 
void PostGarbageCollectionProcessing (Heap *heap)
 

Detailed Description

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

Member Enumeration Documentation

Enumerator
I18N_TEMPLATE_ONE 
I18N_TEMPLATE_TWO 
DATE_CACHE_VERSION 
NUMBER_OF_SINGLETON_HANDLES 

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

Constructor & Destructor Documentation

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

References ARRAY_SIZE.

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

Member Function Documentation

void Create ( Isolate isolate,
Object object,
int *  index 
)
Handle<Object> CreateSingleton ( Isolate isolate,
Object object,
SingletonHandle  singleton 
)
inline

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

References EternalHandles::Create(), and EternalHandles::Get().

bool Exists ( SingletonHandle  singleton)
inline
Handle<Object> Get ( int  index)
inline
Handle<Object> GetSingleton ( SingletonHandle  singleton)
inline
void IterateAllRoots ( ObjectVisitor *  visitor)

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

References ASSERT, and v8::internal::Min().

Referenced by Heap::IterateStrongRoots().

void IterateNewSpaceRoots ( ObjectVisitor *  visitor)

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

Referenced by Heap::IterateStrongRoots().

int NumberOfHandles ( )
inline

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

Referenced by StartupSerializer::SerializeStrongReferences(), and TEST().

void PostGarbageCollectionProcessing ( Heap heap)

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

References Heap::InNewSpace().


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