V8 Project
v8::internal::compiler::GenericNode< B, S >::Inputs::iterator Class Reference

#include <generic-node.h>

+ Collaboration diagram for v8::internal::compiler::GenericNode< B, S >::Inputs::iterator:

Public Member Functions

 iterator (const typename GenericNode< B, S >::Inputs::iterator &other)
 
Soperator* ()
 
GenericNode< B, S >::Edge edge ()
 
bool operator== (const iterator &other) const
 
bool operator!= (const iterator &other) const
 
iteratoroperator++ ()
 
iteratorUpdateToAndIncrement (GenericNode< B, S > *new_to)
 
int index ()
 

Private Member Functions

 iterator (GenericNode *node, int index)
 
InputGetInput () const
 

Private Attributes

GenericNodenode_
 
int index_
 

Friends

class GenericNode
 

Detailed Description

template<class B, class S>
class v8::internal::compiler::GenericNode< B, S >::Inputs::iterator

Definition at line 182 of file generic-node.h.

Constructor & Destructor Documentation

◆ iterator() [1/2]

template<class B , class S >
v8::internal::compiler::GenericNode< B, S >::Inputs::iterator::iterator ( const typename GenericNode< B, S >::Inputs::iterator other)
inline

Definition at line 184 of file generic-node.h.

◆ iterator() [2/2]

template<class B , class S >
v8::internal::compiler::GenericNode< B, S >::Inputs::iterator::iterator ( GenericNode node,
int  index 
)
inlineexplicitprivate

Definition at line 213 of file generic-node.h.

Member Function Documentation

◆ edge()

template<class B , class S >
GenericNode<B, S>::Edge v8::internal::compiler::GenericNode< B, S >::Inputs::iterator::edge ( )
inline

Definition at line 189 of file generic-node.h.

189  {
190  return typename GenericNode::Edge(GetInput());
191  }

◆ GetInput()

template<class B , class S >
Input* v8::internal::compiler::GenericNode< B, S >::Inputs::iterator::GetInput ( ) const
inlineprivate

Definition at line 216 of file generic-node.h.

216 { return node_->GetInputRecordPtr(index_); }
Input * GetInputRecordPtr(int index) const
Definition: generic-node.h:118

◆ index()

template<class B , class S >
int v8::internal::compiler::GenericNode< B, S >::Inputs::iterator::index ( )
inline

Definition at line 208 of file generic-node.h.

208 { return index_; }

◆ operator!=()

template<class B , class S >
bool v8::internal::compiler::GenericNode< B, S >::Inputs::iterator::operator!= ( const iterator other) const
inline

Definition at line 195 of file generic-node.h.

195 { return !(other == *this); }

◆ operator*()

template<class B , class S >
S* v8::internal::compiler::GenericNode< B, S >::Inputs::iterator::operator* ( )
inline

Definition at line 188 of file generic-node.h.

188 { return static_cast<S*>(GetInput()->to); }

References v8::internal::S.

◆ operator++()

template<class B , class S >
iterator& v8::internal::compiler::GenericNode< B, S >::Inputs::iterator::operator++ ( )
inline

Definition at line 196 of file generic-node.h.

196  {
197  DCHECK(node_ != NULL);
198  DCHECK(index_ < node_->input_count_);
199  ++index_;
200  return *this;
201  }
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
#define DCHECK(condition)
Definition: logging.h:205

References DCHECK, v8::internal::compiler::GenericNode< B, S >::input_count_, and NULL.

◆ operator==()

template<class B , class S >
bool v8::internal::compiler::GenericNode< B, S >::Inputs::iterator::operator== ( const iterator other) const
inline

Definition at line 192 of file generic-node.h.

192  {
193  return other.index_ == index_ && other.node_ == node_;
194  }

References v8::internal::compiler::GenericNode< B, S >::Inputs::iterator::index_, and v8::internal::compiler::GenericNode< B, S >::Inputs::iterator::node_.

◆ UpdateToAndIncrement()

template<class B , class S >
iterator& v8::internal::compiler::GenericNode< B, S >::Inputs::iterator::UpdateToAndIncrement ( GenericNode< B, S > *  new_to)
inline

Definition at line 202 of file generic-node.h.

202  {
203  typename GenericNode<B, S>::Input* input = GetInput();
204  input->Update(new_to);
205  index_++;
206  return *this;
207  }

References v8::internal::compiler::GenericNode< B, S >::Input::Update().

+ Here is the call graph for this function:

Friends And Related Function Documentation

◆ GenericNode

template<class B , class S >
friend class GenericNode
friend

Definition at line 211 of file generic-node.h.

Member Data Documentation

◆ index_

template<class B , class S >
int v8::internal::compiler::GenericNode< B, S >::Inputs::iterator::index_
private

◆ node_

template<class B , class S >
GenericNode* v8::internal::compiler::GenericNode< B, S >::Inputs::iterator::node_
private

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