V8 Project
|
#include <spaces.h>
Public Member Functions | |
FreeListCategory () | |
intptr_t | Concatenate (FreeListCategory *category) |
void | Reset () |
void | Free (FreeListNode *node, int size_in_bytes) |
FreeListNode * | PickNodeFromList (int *node_size) |
FreeListNode * | PickNodeFromList (int size_in_bytes, int *node_size) |
intptr_t | EvictFreeListItemsInList (Page *p) |
bool | ContainsPageFreeListItemsInList (Page *p) |
void | RepairFreeList (Heap *heap) |
FreeListNode * | top () const |
void | set_top (FreeListNode *top) |
FreeListNode ** | GetEndAddress () |
FreeListNode * | end () const |
void | set_end (FreeListNode *end) |
int * | GetAvailableAddress () |
int | available () const |
void | set_available (int available) |
base::Mutex * | mutex () |
bool | IsEmpty () |
Private Attributes | |
base::AtomicWord | top_ |
FreeListNode * | end_ |
base::Mutex | mutex_ |
int | available_ |
|
inline |
Definition at line 1440 of file spaces.h.
|
inline |
Definition at line 1469 of file spaces.h.
References available_.
Referenced by v8::internal::FreeList::available(), Concatenate(), v8::internal::FreeList::FindNodeFor(), and set_available().
intptr_t v8::internal::FreeListCategory::Concatenate | ( | FreeListCategory * | category | ) |
Definition at line 2028 of file spaces.cc.
References available(), available_, DCHECK, end(), end_, mutex(), v8::base::NoBarrier_Store(), NULL, Reset(), v8::internal::FreeListNode::set_next(), set_top(), top(), and top_.
Referenced by v8::internal::FreeList::Concatenate().
Definition at line 2081 of file spaces.cc.
References v8::internal::HeapObject::address(), v8::internal::MemoryChunk::FromAddress(), v8::internal::FreeListNode::next(), NULL, and top().
|
inline |
intptr_t v8::internal::FreeListCategory::EvictFreeListItemsInList | ( | Page * | p | ) |
Definition at line 2059 of file spaces.cc.
References available_, v8::internal::MemoryChunk::FromAddress(), v8::internal::FreeListNode::next(), v8::internal::FreeListNode::next_address(), NULL, set_end(), set_top(), v8::internal::FreeSpace::Size(), and top().
Referenced by v8::internal::FreeList::ContainsPageFreeListItems(), and v8::internal::FreeList::EvictFreeListItems().
void v8::internal::FreeListCategory::Free | ( | FreeListNode * | node, |
int | size_in_bytes | ||
) |
Definition at line 2130 of file spaces.cc.
References available_, end_, NULL, v8::internal::FreeListNode::set_next(), set_top(), and top().
Referenced by v8::internal::FreeList::Free(), and PickNodeFromList().
|
inline |
|
inline |
|
inline |
Definition at line 1474 of file spaces.h.
References top().
Referenced by v8::internal::FreeList::IsEmpty().
|
inline |
Definition at line 1472 of file spaces.h.
References mutex_.
Referenced by Concatenate().
FreeListNode * v8::internal::FreeListCategory::PickNodeFromList | ( | int * | node_size | ) |
Definition at line 2091 of file spaces.cc.
References v8::internal::HeapObject::address(), available_, v8::internal::MemoryChunk::FromAddress(), v8::internal::MemoryChunk::IsEvacuationCandidate(), v8::internal::FreeListNode::next(), NULL, set_end(), set_top(), and top().
Referenced by v8::internal::FreeList::FindNodeFor(), and PickNodeFromList().
FreeListNode * v8::internal::FreeListCategory::PickNodeFromList | ( | int | size_in_bytes, |
int * | node_size | ||
) |
Definition at line 2118 of file spaces.cc.
References Free(), NULL, and PickNodeFromList().
void v8::internal::FreeListCategory::RepairFreeList | ( | Heap * | heap | ) |
Definition at line 2140 of file spaces.cc.
References v8::internal::HeapObject::address(), DCHECK, v8::internal::FreeListNode::next(), NULL, and top().
Referenced by v8::internal::FreeList::RepairLists().
void v8::internal::FreeListCategory::Reset | ( | ) |
Definition at line 2052 of file spaces.cc.
References NULL, set_available(), set_end(), and set_top().
Referenced by Concatenate(), and v8::internal::FreeList::Reset().
|
inline |
Definition at line 1470 of file spaces.h.
References available(), and available_.
Referenced by v8::internal::FreeList::FindNodeFor(), and Reset().
|
inline |
Definition at line 1466 of file spaces.h.
Referenced by EvictFreeListItemsInList(), v8::internal::FreeList::FindNodeFor(), PickNodeFromList(), and Reset().
|
inline |
Definition at line 1460 of file spaces.h.
References v8::base::NoBarrier_Store(), top(), and top_.
Referenced by Concatenate(), EvictFreeListItemsInList(), v8::internal::FreeList::FindNodeFor(), Free(), PickNodeFromList(), and Reset().
|
inline |
Definition at line 1456 of file spaces.h.
References v8::base::NoBarrier_Load(), and top_.
Referenced by Concatenate(), ContainsPageFreeListItemsInList(), EvictFreeListItemsInList(), v8::internal::FreeList::FindNodeFor(), Free(), IsEmpty(), PickNodeFromList(), RepairFreeList(), and set_top().
|
private |
Definition at line 1488 of file spaces.h.
Referenced by available(), Concatenate(), EvictFreeListItemsInList(), Free(), GetAvailableAddress(), PickNodeFromList(), and set_available().
|
private |
Definition at line 1484 of file spaces.h.
Referenced by Concatenate(), end(), Free(), GetEndAddress(), and set_end().
|
private |
|
private |
Definition at line 1483 of file spaces.h.
Referenced by Concatenate(), set_top(), and top().