|
V8 Project
|
#include <spaces.h>
Inheritance diagram for v8::internal::HeapObjectIterator:
Collaboration diagram for v8::internal::HeapObjectIterator:Public Member Functions | |
| HeapObjectIterator (PagedSpace *space) | |
| HeapObjectIterator (PagedSpace *space, HeapObjectCallback size_func) | |
| HeapObjectIterator (Page *page, HeapObjectCallback size_func) | |
| HeapObject * | Next () |
| virtual HeapObject * | next_object () |
Public Member Functions inherited from v8::internal::ObjectIterator | |
| virtual | ~ObjectIterator () |
Public Member Functions inherited from v8::internal::Malloced | |
| void * | operator new (size_t size) |
| void | operator delete (void *p) |
Private Types | |
| enum | PageMode { kOnePageOnly , kAllPagesInSpace } |
Private Member Functions | |
| HeapObject * | FromCurrentPage () |
| bool | AdvanceToNextPage () |
| void | Initialize (PagedSpace *owner, Address start, Address end, PageMode mode, HeapObjectCallback size_func) |
Private Attributes | |
| Address | cur_addr_ |
| Address | cur_end_ |
| HeapObjectCallback | size_func_ |
| PagedSpace * | space_ |
| PageMode | page_mode_ |
Additional Inherited Members | |
Static Public Member Functions inherited from v8::internal::Malloced | |
| static void | FatalProcessOutOfMemory () |
| static void * | New (size_t size) |
| static void | Delete (void *p) |
|
private |
|
explicit |
Definition at line 21 of file spaces.cc.
References Initialize(), kAllPagesInSpace, NULL, and space().
Here is the call graph for this function:| v8::internal::HeapObjectIterator::HeapObjectIterator | ( | PagedSpace * | space, |
| HeapObjectCallback | size_func | ||
| ) |
Definition at line 30 of file spaces.cc.
References Initialize(), kAllPagesInSpace, NULL, and space().
Here is the call graph for this function:| v8::internal::HeapObjectIterator::HeapObjectIterator | ( | Page * | page, |
| HeapObjectCallback | size_func | ||
| ) |
Definition at line 40 of file spaces.cc.
References v8::internal::MemoryChunk::area_end(), v8::internal::MemoryChunk::area_start(), v8::internal::Heap::cell_space(), v8::internal::Heap::code_space(), DCHECK, v8::internal::MemoryChunk::heap(), Initialize(), kOnePageOnly, v8::internal::Heap::map_space(), v8::internal::Heap::old_data_space(), v8::internal::Heap::old_pointer_space(), v8::internal::MemoryChunk::owner(), v8::internal::Heap::property_cell_space(), v8::internal::MemoryChunk::SweepingCompleted(), and v8::internal::Page::WasSwept().
Here is the call graph for this function:
|
private |
Definition at line 68 of file spaces.cc.
References v8::internal::PagedSpace::anchor(), v8::internal::MemoryChunk::area_end(), v8::internal::MemoryChunk::area_start(), cur_addr_, cur_end_, DCHECK, v8::internal::MemoryChunk::FromAddress(), kOnePageOnly, v8::internal::Page::next_page(), NULL, page_mode_, space_, v8::internal::MemoryChunk::SweepingCompleted(), and v8::internal::Page::WasSwept().
Referenced by Next().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineprivate |
Definition at line 84 of file spaces-inl.h.
References cur_addr_, cur_end_, DCHECK, DCHECK_OBJECT_SIZE, v8::internal::HeapObject::FromAddress(), v8::internal::PagedSpace::limit(), NULL, v8::internal::HeapObject::Size(), size_func_, space_, and v8::internal::PagedSpace::top().
Referenced by Next().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineprivate |
Definition at line 55 of file spaces.cc.
References cur_addr_, cur_end_, mode(), page_mode_, size_func_, space(), and space_.
Referenced by HeapObjectIterator().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 1198 of file spaces.h.
References AdvanceToNextPage(), FromCurrentPage(), and NULL.
Referenced by v8::internal::Heap::ClearAllICsByKind(), v8::internal::MarkCompactCollector::ClearNonLiveReferences(), v8::DumpHeapConstants(), v8::internal::MarkCompactCollector::EvacuateNewSpaceAndCandidates(), v8::internal::PagedSpace::FindObject(), v8::internal::StoreBuffer::IteratePointersToNewSpace(), v8::internal::MarkCompactCollector::MarkLiveObjects(), next_object(), and v8::internal::Heap::Scavenge().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinevirtual |
Implements v8::internal::ObjectIterator.
Definition at line 1206 of file spaces.h.
References Next().
Here is the call graph for this function:
|
private |
Definition at line 1211 of file spaces.h.
Referenced by AdvanceToNextPage(), FromCurrentPage(), and Initialize().
|
private |
Definition at line 1212 of file spaces.h.
Referenced by AdvanceToNextPage(), FromCurrentPage(), and Initialize().
|
private |
Definition at line 1215 of file spaces.h.
Referenced by AdvanceToNextPage(), and Initialize().
|
private |
Definition at line 1213 of file spaces.h.
Referenced by FromCurrentPage(), and Initialize().
|
private |
Definition at line 1214 of file spaces.h.
Referenced by AdvanceToNextPage(), FromCurrentPage(), and Initialize().