5 #ifndef V8_SPLAY_TREE_H_
6 #define V8_SPLAY_TREE_H_
30 template <
typename Config,
class AllocationPolicy>
33 typedef typename Config::Key
Key;
34 typedef typename Config::Value
Value;
46 INLINE(
void operator delete(
void* p)) {
47 AllocationPolicy::Delete(p);
62 bool Insert(
const Key& key, Locator* locator);
67 bool Find(
const Key& key, Locator* locator);
84 bool Move(
const Key& old_key,
const Key& new_key);
112 return AllocationPolicy::Delete(p);
149 template <
class Callback>
150 void ForEach(Callback* callback);
167 template<
class Callback>
171 : callback_(callback) { }
173 callback_->Call(node->
key(), node->
value());
185 void Call(
Node* node) { AllocationPolicy::Delete(node); }
191 template <
class Callback>
void set_value(const Value &value)
NodeToPairAdaptor(Callback *callback)
DISALLOW_COPY_AND_ASSIGN(NodeDeleter)
DISALLOW_COPY_AND_ASSIGN(NodeToPairAdaptor)
INLINE(void operator delete(void *p, AllocationPolicy allocator))
INLINE(void *operator new(size_t size, AllocationPolicy allocator))
INLINE(void operator delete(void *p))
Node(const Key &key, const Value &value)
bool FindGreatestLessThan(const Key &key, Locator *locator)
bool FindLeast(Locator *locator)
bool Remove(const Key &key)
AllocationPolicy allocator()
bool Contains(const Key &key)
bool FindInternal(const Key &key)
SplayTree(AllocationPolicy allocator=AllocationPolicy())
bool Move(const Key &old_key, const Key &new_key)
AllocationPolicy allocator_
void RemoveRootNode(const Key &key)
void ForEach(Callback *callback)
bool FindLeastGreaterThan(const Key &key, Locator *locator)
INLINE(void *operator new(size_t size, AllocationPolicy allocator=AllocationPolicy()))
INLINE(void operator delete(void *p))
bool FindGreatest(Locator *locator)
void InsertInternal(int cmp, Node *node)
INLINE(void operator delete(void *p, AllocationPolicy policy))
DISALLOW_COPY_AND_ASSIGN(SplayTree)
bool Find(const Key &key, Locator *locator)
void ForEachNode(Callback *callback)
void Splay(const Key &key)
bool Insert(const Key &key, Locator *locator)
enable harmony numeric enable harmony object literal extensions Optimize object size
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
Debugger support for the V8 JavaScript engine.