V8 Project
v8::internal::GlobalHandles::NodeIterator Class Reference
+ Collaboration diagram for v8::internal::GlobalHandles::NodeIterator:

Public Member Functions

 NodeIterator (GlobalHandles *global_handles)
 
bool done () const
 
Nodenode () const
 
void Advance ()
 

Private Member Functions

 DISALLOW_COPY_AND_ASSIGN (NodeIterator)
 

Private Attributes

NodeBlockblock_
 
int index_
 

Detailed Description

Definition at line 399 of file global-handles.cc.

Constructor & Destructor Documentation

◆ NodeIterator()

v8::internal::GlobalHandles::NodeIterator::NodeIterator ( GlobalHandles global_handles)
inlineexplicit

Definition at line 401 of file global-handles.cc.

402  : block_(global_handles->first_used_block_),
403  index_(0) {}

Member Function Documentation

◆ Advance()

void v8::internal::GlobalHandles::NodeIterator::Advance ( )
inline

Definition at line 412 of file global-handles.cc.

412  {
413  DCHECK(!done());
414  if (++index_ < NodeBlock::kSize) return;
415  index_ = 0;
416  block_ = block_->next_used();
417  }
#define DCHECK(condition)
Definition: logging.h:205

References DCHECK, and v8::internal::GlobalHandles::NodeBlock::kSize.

◆ DISALLOW_COPY_AND_ASSIGN()

v8::internal::GlobalHandles::NodeIterator::DISALLOW_COPY_AND_ASSIGN ( NodeIterator  )
private

◆ done()

bool v8::internal::GlobalHandles::NodeIterator::done ( ) const
inline

Definition at line 405 of file global-handles.cc.

405 { return block_ == NULL; }
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 NULL.

Referenced by v8::internal::GlobalHandles::IdentifyWeakHandles(), v8::internal::GlobalHandles::IterateAllRoots(), v8::internal::GlobalHandles::IterateAllRootsWithClassIds(), v8::internal::GlobalHandles::IterateStrongRoots(), v8::internal::GlobalHandles::IterateWeakRoots(), v8::internal::GlobalHandles::NumberOfGlobalObjectWeakHandles(), v8::internal::GlobalHandles::NumberOfWeakHandles(), v8::internal::GlobalHandles::PostGarbageCollectionProcessing(), and v8::internal::GlobalHandles::RecordStats().

+ Here is the caller graph for this function:

◆ node()

Node* v8::internal::GlobalHandles::NodeIterator::node ( ) const
inline

Definition at line 407 of file global-handles.cc.

407  {
408  DCHECK(!done());
409  return block_->node_at(index_);
410  }

References DCHECK.

Member Data Documentation

◆ block_

NodeBlock* v8::internal::GlobalHandles::NodeIterator::block_
private

Definition at line 420 of file global-handles.cc.

◆ index_

int v8::internal::GlobalHandles::NodeIterator::index_
private

Definition at line 421 of file global-handles.cc.


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