|
V8 Project
|
#include <splay-tree.h>
Inheritance diagram for v8::internal::SplayTree< Config, AllocationPolicy >:
Collaboration diagram for v8::internal::SplayTree< Config, AllocationPolicy >:Classes | |
| class | BASE_EMBEDDED |
| class | Node |
Public Types | |
| typedef Config::Key | Key |
| typedef Config::Value | Value |
Public Member Functions | |
| SplayTree (AllocationPolicy allocator=AllocationPolicy()) | |
| ~SplayTree () | |
| INLINE (void *operator new(size_t size, AllocationPolicy allocator=AllocationPolicy())) | |
| INLINE (void operator delete(void *p)) | |
| INLINE (void operator delete(void *p, AllocationPolicy policy)) | |
| AllocationPolicy | allocator () |
| bool | Contains (const Key &key) |
| bool | Insert (const Key &key, Locator *locator) |
| bool | Find (const Key &key, Locator *locator) |
| bool | FindGreatestLessThan (const Key &key, Locator *locator) |
| bool | FindGreatest (Locator *locator) |
| bool | FindLeastGreaterThan (const Key &key, Locator *locator) |
| bool | FindLeast (Locator *locator) |
| bool | Move (const Key &old_key, const Key &new_key) |
| bool | Remove (const Key &key) |
| void | Clear () |
| bool | is_empty () |
| void | Splay (const Key &key) |
| template<class Callback > | |
| void | ForEach (Callback *callback) |
Protected Member Functions | |
| void | ResetRoot () |
Private Member Functions | |
| bool | FindInternal (const Key &key) |
| void | InsertInternal (int cmp, Node *node) |
| void | RemoveRootNode (const Key &key) |
| template<class Callback > | |
| void | ForEachNode (Callback *callback) |
| DISALLOW_COPY_AND_ASSIGN (SplayTree) | |
Private Attributes | |
| Node * | root_ |
| AllocationPolicy | allocator_ |
Definition at line 31 of file splay-tree.h.
| typedef Config::Key v8::internal::SplayTree< Config, AllocationPolicy >::Key |
Definition at line 33 of file splay-tree.h.
| typedef Config::Value v8::internal::SplayTree< Config, AllocationPolicy >::Value |
Definition at line 34 of file splay-tree.h.
|
inlineexplicit |
Definition at line 38 of file splay-tree.h.
| v8::internal::SplayTree< Config, Allocator >::~SplayTree |
Definition at line 15 of file splay-tree-inl.h.
|
inline |
Definition at line 54 of file splay-tree.h.
References v8::internal::SplayTree< Config, AllocationPolicy >::allocator_.
Referenced by v8::internal::SplayTree< Config, AllocationPolicy >::Node::INLINE(), v8::internal::SplayTree< Config, AllocationPolicy >::INLINE(), and v8::internal::EffectsBase< Var, kNoVar >::zone().
Here is the caller graph for this function:
|
inline |
Definition at line 90 of file splay-tree.h.
References v8::internal::SplayTree< Config, AllocationPolicy >::ResetRoot().
Here is the call graph for this function:| bool v8::internal::SplayTree< Config, Allocator >::Contains | ( | const Key & | key | ) |
Definition at line 71 of file splay-tree-inl.h.
Referenced by v8::internal::EffectsBase< Var, kNoVar >::Contains().
Here is the caller graph for this function:
|
private |
| bool v8::internal::SplayTree< Config, Allocator >::Find | ( | const Key & | key, |
| Locator * | locator | ||
| ) |
Definition at line 77 of file splay-tree-inl.h.
Referenced by v8::internal::CodeMap::GetSharedId(), and v8::internal::CodeMap::MoveCode().
Here is the caller graph for this function:| bool v8::internal::SplayTree< Config, Allocator >::FindGreatest | ( | Locator * | locator | ) |
Definition at line 136 of file splay-tree-inl.h.
References NULL, and v8::internal::SplayTree< Config, AllocationPolicy >::Node::right_.
| bool v8::internal::SplayTree< Config, Allocator >::FindGreatestLessThan | ( | const Key & | key, |
| Locator * | locator | ||
| ) |
Definition at line 88 of file splay-tree-inl.h.
References v8::internal::Compare().
Referenced by v8::internal::CodeMap::DeleteAllCoveredCode(), and v8::internal::CodeMap::FindEntry().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 62 of file splay-tree-inl.h.
References v8::internal::Compare().
Here is the call graph for this function:| bool v8::internal::SplayTree< Config, Allocator >::FindLeast | ( | Locator * | locator | ) |
| bool v8::internal::SplayTree< Config, Allocator >::FindLeastGreaterThan | ( | const Key & | key, |
| Locator * | locator | ||
| ) |
Definition at line 112 of file splay-tree-inl.h.
References v8::internal::Compare(), and v8::internal::SplayTree< Config, AllocationPolicy >::Node::right_.
Here is the call graph for this function:| void v8::internal::SplayTree< Config, Allocator >::ForEach | ( | Callback * | callback | ) |
Definition at line 271 of file splay-tree-inl.h.
Referenced by v8::internal::EffectsBase< Var, kNoVar >::ForEach(), and v8::internal::CodeMap::Print().
Here is the caller graph for this function:
|
private |
Definition at line 278 of file splay-tree-inl.h.
References v8::internal::List< T, AllocationPolicy >::Add(), v8::internal::SplayTree< Config, AllocationPolicy >::Node::left(), NULL, and v8::internal::SplayTree< Config, AllocationPolicy >::Node::right().
Here is the call graph for this function:
|
inline |
Definition at line 42 of file splay-tree.h.
References v8::internal::SplayTree< Config, AllocationPolicy >::allocator(), and size.
Here is the call graph for this function:
|
inline |
Definition at line 46 of file splay-tree.h.
|
inline |
Definition at line 50 of file splay-tree.h.
References UNREACHABLE.
| bool v8::internal::SplayTree< Config, Allocator >::Insert | ( | const Key & | key, |
| Locator * | locator | ||
| ) |
Definition at line 22 of file splay-tree-inl.h.
References v8::internal::Compare().
Referenced by v8::internal::CodeMap::AddCode(), and v8::internal::CodeMap::GetSharedId().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 47 of file splay-tree-inl.h.
References v8::internal::SplayTree< Config, AllocationPolicy >::Node::left_, NULL, and v8::internal::SplayTree< Config, AllocationPolicy >::Node::right_.
|
inline |
Definition at line 92 of file splay-tree.h.
References NULL, and v8::internal::SplayTree< Config, AllocationPolicy >::root_.
| bool v8::internal::SplayTree< Config, Allocator >::Move | ( | const Key & | old_key, |
| const Key & | new_key | ||
| ) |
Definition at line 160 of file splay-tree-inl.h.
| bool v8::internal::SplayTree< Config, Allocator >::Remove | ( | const Key & | key | ) |
Definition at line 180 of file splay-tree-inl.h.
Referenced by v8::internal::CodeMap::DeleteAllCoveredCode(), and v8::internal::CodeMap::MoveCode().
Here is the caller graph for this function:
|
private |
Definition at line 191 of file splay-tree-inl.h.
|
inlineprotected |
Definition at line 154 of file splay-tree.h.
References NULL, and v8::internal::SplayTree< Config, AllocationPolicy >::root_.
Referenced by v8::internal::SplayTree< Config, AllocationPolicy >::Clear(), and v8::internal::ZoneSplayTree< Config >::~ZoneSplayTree().
Here is the caller graph for this function:| void v8::internal::SplayTree< Config, Allocator >::Splay | ( | const Key & | key | ) |
Definition at line 210 of file splay-tree-inl.h.
References v8::internal::Compare(), v8::internal::SplayTree< Config, AllocationPolicy >::Node::key_, v8::internal::SplayTree< Config, AllocationPolicy >::Node::left_, NULL, and v8::internal::SplayTree< Config, AllocationPolicy >::Node::right_.
Here is the call graph for this function:
|
private |
Definition at line 195 of file splay-tree.h.
Referenced by v8::internal::SplayTree< Config, AllocationPolicy >::allocator().
|
private |
Definition at line 194 of file splay-tree.h.
Referenced by v8::internal::SplayTree< Config, AllocationPolicy >::is_empty(), and v8::internal::SplayTree< Config, AllocationPolicy >::ResetRoot().