Lines Matching refs:node
16 void MemRankings::Insert(MemEntryImpl* node) {
18 head_->set_prev(node);
21 tail_ = node;
23 node->set_prev(NULL);
24 node->set_next(head_);
25 head_ = node;
28 void MemRankings::Remove(MemEntryImpl* node) {
29 MemEntryImpl* prev = node->prev();
30 MemEntryImpl* next = node->next();
32 if (head_ == node)
35 if (tail_ == node)
44 node->set_next(NULL);
45 node->set_prev(NULL);
48 void MemRankings::UpdateRank(MemEntryImpl* node) {
49 Remove(node);
50 Insert(node);
53 MemEntryImpl* MemRankings::GetNext(MemEntryImpl* node) {
54 if (!node)
57 return node->next();
60 MemEntryImpl* MemRankings::GetPrev(MemEntryImpl* node) {
61 if (!node)
64 return node->prev();