#include <spaces.h>
Definition at line 1186 of file spaces.h.
◆ PageMode
Enumerator |
---|
kOnePageOnly | |
kAllPagesInSpace | |
Definition at line 1209 of file spaces.h.
◆ HeapObjectIterator() [1/3]
v8::internal::HeapObjectIterator::HeapObjectIterator |
( |
PagedSpace * |
space | ) |
|
|
explicit |
Definition at line 21 of file spaces.cc.
void Initialize(PagedSpace *owner, Address start, Address end, PageMode mode, HeapObjectCallback size_func)
enable harmony numeric enable harmony object literal extensions Optimize object Array DOM strings and string trace pretenuring decisions of HAllocate instructions Enables optimizations which favor memory size over execution speed maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining trace the tracking of allocation sites deoptimize every n garbage collections perform array bounds checks elimination analyze liveness of environment slots and zap dead values flushes the cache of optimized code for closures on every GC allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms do not emit check maps for constant values that have a leaf deoptimize the optimized code if the layout of the maps changes enable context specialization in TurboFan execution budget before interrupt is triggered max percentage of megamorphic generic ICs to allow optimization enable use of SAHF instruction if enable use of VFP3 instructions if available enable use of NEON instructions if enable use of SDIV and UDIV instructions if enable use of MLS instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of d16 d31 registers on ARM this requires VFP3 force all emitted branches to be in long enable alignment of csp to bytes on platforms which prefer the register to always be expose gc extension under the specified name show built in functions in stack traces use random jit cookie to mask large constants minimum length for automatic enable preparsing CPU profiler sampling interval in microseconds trace out of bounds accesses to external arrays default size of stack region v8 is allowed to maximum length of function source code printed in a stack trace min size of a semi space(in MBytes)
enable harmony numeric enable harmony object literal extensions Optimize object Array DOM strings and string trace pretenuring decisions of HAllocate instructions Enables optimizations which favor memory size over execution speed maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining trace the tracking of allocation sites deoptimize every n garbage collections perform array bounds checks elimination analyze liveness of environment slots and zap dead values flushes the cache of optimized code for closures on every GC allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms do not emit check maps for constant values that have a leaf deoptimize the optimized code if the layout of the maps changes enable context specialization in TurboFan execution budget before interrupt is triggered max percentage of megamorphic generic ICs to allow optimization enable use of SAHF instruction if enable use of VFP3 instructions if available enable use of NEON instructions if enable use of SDIV and UDIV instructions if enable use of MLS instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of d16 d31 registers on ARM this requires VFP3 force all emitted branches to be in long enable alignment of csp to bytes on platforms which prefer the register to always be NULL
References Initialize(), kAllPagesInSpace, NULL, and space().
◆ HeapObjectIterator() [2/3]
◆ HeapObjectIterator() [3/3]
Definition at line 40 of file spaces.cc.
42 Space* owner = page->owner();
43 DCHECK(owner == page->heap()->old_pointer_space() ||
44 owner == page->heap()->old_data_space() ||
45 owner == page->heap()->map_space() ||
46 owner == page->heap()->cell_space() ||
47 owner == page->heap()->property_cell_space() ||
48 owner == page->heap()->code_space());
49 Initialize(
reinterpret_cast<PagedSpace*
>(owner), page->area_start(),
51 DCHECK(page->WasSwept() || page->SweepingCompleted());
#define DCHECK(condition)
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().
◆ AdvanceToNextPage()
bool v8::internal::HeapObjectIterator::AdvanceToNextPage |
( |
| ) |
|
|
private |
Definition at line 68 of file spaces.cc.
78 cur_page = cur_page->next_page();
82 DCHECK(cur_page->WasSwept() || cur_page->SweepingCompleted());
static MemoryChunk * FromAddress(Address a)
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().
◆ FromCurrentPage()
HeapObject * v8::internal::HeapObjectIterator::FromCurrentPage |
( |
| ) |
|
|
inlineprivate |
Definition at line 84 of file spaces-inl.h.
94 if (!obj->IsFiller()) {
HeapObjectCallback size_func_
static HeapObject * FromAddress(Address address)
#define DCHECK_OBJECT_SIZE(size)
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().
◆ Initialize()
Definition at line 55 of file spaces.cc.
enable harmony numeric enable harmony object literal extensions Optimize object Array DOM strings and string trace pretenuring decisions of HAllocate instructions Enables optimizations which favor memory size over execution speed maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining trace the tracking of allocation sites deoptimize every n garbage collections perform array bounds checks elimination analyze liveness of environment slots and zap dead values flushes the cache of optimized code for closures on every GC allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms do not emit check maps for constant values that have a leaf deoptimize the optimized code if the layout of the maps changes enable context specialization in TurboFan execution budget before interrupt is triggered max percentage of megamorphic generic ICs to allow optimization enable use of SAHF instruction if enable use of VFP3 instructions if available enable use of NEON instructions if enable use of SDIV and UDIV instructions if enable use of MLS instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of d16 d31 registers on ARM this requires VFP3 force all emitted branches to be in long mode(MIPS only)") DEFINE_BOOL(enable_always_align_csp
References cur_addr_, cur_end_, mode(), page_mode_, size_func_, space(), and space_.
Referenced by HeapObjectIterator().
◆ Next()
HeapObject* v8::internal::HeapObjectIterator::Next |
( |
| ) |
|
|
inline |
Definition at line 1198 of file spaces.h.
1201 if (next_obj !=
NULL)
return next_obj;
HeapObject * FromCurrentPage()
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().
◆ next_object()
virtual HeapObject* v8::internal::HeapObjectIterator::next_object |
( |
| ) |
|
|
inlinevirtual |
◆ cur_addr_
Address v8::internal::HeapObjectIterator::cur_addr_ |
|
private |
◆ cur_end_
Address v8::internal::HeapObjectIterator::cur_end_ |
|
private |
◆ page_mode_
PageMode v8::internal::HeapObjectIterator::page_mode_ |
|
private |
◆ size_func_
◆ space_
PagedSpace* v8::internal::HeapObjectIterator::space_ |
|
private |
The documentation for this class was generated from the following files: