V8 Project
v8::internal::LargeObjectIterator Class Reference

#include <spaces.h>

+ Inheritance diagram for v8::internal::LargeObjectIterator:
+ Collaboration diagram for v8::internal::LargeObjectIterator:

Public Member Functions

 LargeObjectIterator (LargeObjectSpace *space)
 
 LargeObjectIterator (LargeObjectSpace *space, HeapObjectCallback size_func)
 
HeapObjectNext ()
 
virtual HeapObjectnext_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 Attributes

LargePagecurrent_
 
HeapObjectCallback size_func_
 

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)
 

Detailed Description

Definition at line 2803 of file spaces.h.

Constructor & Destructor Documentation

◆ LargeObjectIterator() [1/2]

v8::internal::LargeObjectIterator::LargeObjectIterator ( LargeObjectSpace space)
explicit

Definition at line 2770 of file spaces.cc.

2770  {
2771  current_ = space->first_page_;
2772  size_func_ = NULL;
2773 }
HeapObjectCallback size_func_
Definition: spaces.h:2815
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 current_, NULL, size_func_, and space().

+ Here is the call graph for this function:

◆ LargeObjectIterator() [2/2]

v8::internal::LargeObjectIterator::LargeObjectIterator ( LargeObjectSpace space,
HeapObjectCallback  size_func 
)

Definition at line 2776 of file spaces.cc.

2777  {
2778  current_ = space->first_page_;
2779  size_func_ = size_func;
2780 }

References current_, size_func_, and space().

+ Here is the call graph for this function:

Member Function Documentation

◆ Next()

HeapObject * v8::internal::LargeObjectIterator::Next ( )

Definition at line 2783 of file spaces.cc.

2783  {
2784  if (current_ == NULL) return NULL;
2785 
2786  HeapObject* object = current_->GetObject();
2788  return object;
2789 }
HeapObject * GetObject()
Definition: spaces.h:798
LargePage * next_page() const
Definition: spaces.h:800

References current_, v8::internal::LargePage::GetObject(), v8::internal::LargePage::next_page(), and NULL.

Referenced by v8::internal::IncrementalMarking::Abort(), v8::internal::MarkCompactCollector::ClearMarkbits(), v8::internal::MarkCompactCollector::EvacuateNewSpaceAndCandidates(), v8::internal::MemoryChunk::FromAnyPointerAddress(), and next_object().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ next_object()

virtual HeapObject* v8::internal::LargeObjectIterator::next_object ( )
inlinevirtual

Implements v8::internal::ObjectIterator.

Definition at line 2811 of file spaces.h.

2811 { return Next(); }

References Next().

+ Here is the call graph for this function:

Member Data Documentation

◆ current_

LargePage* v8::internal::LargeObjectIterator::current_
private

Definition at line 2814 of file spaces.h.

Referenced by LargeObjectIterator(), and Next().

◆ size_func_

HeapObjectCallback v8::internal::LargeObjectIterator::size_func_
private

Definition at line 2815 of file spaces.h.

Referenced by LargeObjectIterator().


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