Home
last modified time | relevance | path

Searched refs:nodes_ (Results 1 – 2 of 2) sorted by relevance

/system/extras/simpleperf/
DCallChainJoiner.h94 return node->parent_index == 0u ? nullptr : nodes_ + node->parent_index; in GetParent()
97 int GetNodeIndex(CacheNode* node) { return node - nodes_; } in GetNodeIndex()
100 CacheNode* prev = &nodes_[node->leaf_link_prev]; in RemoveNodeFromLRUList()
101 CacheNode* next = &nodes_[node->leaf_link_next]; in RemoveNodeFromLRUList()
107 CacheNode* next = &nodes_[0]; in AppendNodeToLRUList()
108 CacheNode* prev = &nodes_[next->leaf_link_prev]; in AppendNodeToLRUList()
126 CacheNode* nodes_; variable
DCallChainJoiner.cpp34 nodes_ = new CacheNode[cache_stat_.max_node_count + 1]; // with 1 sentinel node in LRUCache()
36 nodes_[0].is_leaf = 1; in LRUCache()
37 nodes_[0].parent_index = 0; in LRUCache()
38 nodes_[0].leaf_link_prev = nodes_[0].leaf_link_next = 0; in LRUCache()
42 delete[] nodes_; in ~LRUCache()
136 return &nodes_[++cache_stat_.used_node_count]; in AllocNode()
139 CacheNode* node = &nodes_[nodes_->leaf_link_next]; in AllocNode()