V8 Project
v8::internal::Position Class Reference
+ Collaboration diagram for v8::internal::Position:

Public Member Functions

 Position (ProfileNode *node)
 
 INLINE (ProfileNode *current_child())
 
 INLINE (bool has_current_child())
 
 INLINE (void next_child())
 

Public Attributes

ProfileNodenode
 

Private Attributes

int child_idx_
 

Detailed Description

Definition at line 280 of file profile-generator.cc.

Constructor & Destructor Documentation

◆ Position()

v8::internal::Position::Position ( ProfileNode node)
inlineexplicit

Definition at line 282 of file profile-generator.cc.

Member Function Documentation

◆ INLINE() [1/3]

v8::internal::Position::INLINE ( bool   has_current_child())
inline

Definition at line 287 of file profile-generator.cc.

287  {
288  return child_idx_ < node->children()->length();
289  }
const List< ProfileNode * > * children() const

References child_idx_, v8::internal::ProfileNode::children(), and node.

+ Here is the call graph for this function:

◆ INLINE() [2/3]

v8::internal::Position::INLINE ( ProfileNode current_child())
inline

Definition at line 284 of file profile-generator.cc.

284  {
285  return node->children()->at(child_idx_);
286  }

References child_idx_, v8::internal::ProfileNode::children(), and node.

+ Here is the call graph for this function:

◆ INLINE() [3/3]

v8::internal::Position::INLINE ( void   next_child())
inline

Definition at line 290 of file profile-generator.cc.

290 { ++child_idx_; }

References child_idx_.

Member Data Documentation

◆ child_idx_

int v8::internal::Position::child_idx_
private

Definition at line 294 of file profile-generator.cc.

Referenced by INLINE().

◆ node

ProfileNode* v8::internal::Position::node

Definition at line 292 of file profile-generator.cc.

Referenced by INLINE(), and v8::internal::ProfileTree::TraverseDepthFirst().


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