V8 Project
|
#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< Object > | Get (int index) |
Handle< Object > | GetSingleton (SingletonHandle singleton) |
bool | Exists (SingletonHandle singleton) |
Handle< Object > | CreateSingleton (Isolate *isolate, Object *object, SingletonHandle singleton) |
void | IterateAllRoots (ObjectVisitor *visitor) |
void | IterateNewSpaceRoots (ObjectVisitor *visitor) |
void | PostGarbageCollectionProcessing (Heap *heap) |
Private Member Functions | |
Object ** | GetLocation (int index) |
DISALLOW_COPY_AND_ASSIGN (EternalHandles) | |
Private Attributes | |
int | size_ |
List< Object ** > | blocks_ |
List< int > | new_space_indices_ |
int | singleton_handles_ [NUMBER_OF_SINGLETON_HANDLES] |
Static Private Attributes | |
static const int | kInvalidIndex = -1 |
static const int | kShift = 8 |
static const int | kSize = 1 << kShift |
static const int | kMask = 0xff |
Definition at line 306 of file global-handles.h.
Enumerator | |
---|---|
I18N_TEMPLATE_ONE | |
I18N_TEMPLATE_TWO | |
DATE_CACHE_VERSION | |
NUMBER_OF_SINGLETON_HANDLES |
Definition at line 308 of file global-handles.h.
v8::internal::EternalHandles::EternalHandles | ( | ) |
Definition at line 992 of file global-handles.cc.
References arraysize, kInvalidIndex, and singleton_handles_.
v8::internal::EternalHandles::~EternalHandles | ( | ) |
Definition at line 1034 of file global-handles.cc.
References v8::internal::List< T, AllocationPolicy >::Add(), blocks_, DCHECK_EQ, DCHECK_NE, v8::internal::Isolate::heap(), v8::internal::Heap::InNewSpace(), kInvalidIndex, kMask, kShift, kSize, v8::internal::MemsetPointer(), new_space_indices_, NULL, and size_.
Referenced by CreateSingleton(), and v8::V8::Eternalize().
|
inline |
Definition at line 341 of file global-handles.h.
References Create(), Get(), and singleton_handles_.
Referenced by v8::internal::anonymous_namespace{i18n.cc}::GetEternal().
|
private |
|
inline |
Definition at line 336 of file global-handles.h.
References kInvalidIndex, and singleton_handles_.
Referenced by v8::Date::DateTimeConfigurationChangeNotification(), v8::internal::anonymous_namespace{i18n.cc}::GetEternal(), and GetSingleton().
Definition at line 325 of file global-handles.h.
References GetLocation().
Referenced by CreateSingleton(), v8::V8::GetEternal(), and GetSingleton().
Definition at line 362 of file global-handles.h.
References blocks_, DCHECK, kMask, kShift, and size_.
Referenced by Get(), IterateNewSpaceRoots(), and PostGarbageCollectionProcessing().
|
inline |
Definition at line 330 of file global-handles.h.
References DCHECK, Exists(), Get(), and singleton_handles_.
Referenced by v8::Date::DateTimeConfigurationChangeNotification(), and v8::internal::anonymous_namespace{i18n.cc}::GetEternal().
void v8::internal::EternalHandles::IterateAllRoots | ( | ObjectVisitor * | visitor | ) |
Definition at line 1004 of file global-handles.cc.
References blocks_, DCHECK, kSize, v8::internal::Min(), and size_.
Referenced by v8::internal::Heap::IterateStrongRoots().
void v8::internal::EternalHandles::IterateNewSpaceRoots | ( | ObjectVisitor * | visitor | ) |
Definition at line 1015 of file global-handles.cc.
References GetLocation(), and new_space_indices_.
Referenced by v8::internal::Heap::IterateStrongRoots().
|
inline |
Definition at line 319 of file global-handles.h.
References size_.
Referenced by v8::internal::StartupSerializer::SerializeStrongReferences().
void v8::internal::EternalHandles::PostGarbageCollectionProcessing | ( | Heap * | heap | ) |
Definition at line 1022 of file global-handles.cc.
References GetLocation(), v8::internal::Heap::InNewSpace(), and new_space_indices_.
Referenced by v8::internal::Heap::PerformGarbageCollection().
Definition at line 368 of file global-handles.h.
Referenced by Create(), GetLocation(), IterateAllRoots(), and ~EternalHandles().
|
staticprivate |
Definition at line 356 of file global-handles.h.
Referenced by Create(), EternalHandles(), and Exists().
|
staticprivate |
Definition at line 359 of file global-handles.h.
Referenced by Create(), and GetLocation().
|
staticprivate |
Definition at line 357 of file global-handles.h.
Referenced by Create(), and GetLocation().
Definition at line 358 of file global-handles.h.
Referenced by Create(), and IterateAllRoots().
Definition at line 369 of file global-handles.h.
Referenced by Create(), IterateNewSpaceRoots(), and PostGarbageCollectionProcessing().
|
private |
Definition at line 370 of file global-handles.h.
Referenced by CreateSingleton(), EternalHandles(), Exists(), and GetSingleton().
|
private |
Definition at line 367 of file global-handles.h.
Referenced by Create(), GetLocation(), IterateAllRoots(), and NumberOfHandles().