V8 Project
v8::internal::SplayTree< Config, AllocationPolicy >::Node Class Reference

#include <splay-tree.h>

+ Collaboration diagram for v8::internal::SplayTree< Config, AllocationPolicy >::Node:

Public Member Functions

 Node (const Key &key, const Value &value)
 
 INLINE (void *operator new(size_t size, AllocationPolicy allocator))
 
 INLINE (void operator delete(void *p))
 
 INLINE (void operator delete(void *p, AllocationPolicy allocator))
 
Key key ()
 
Value value ()
 
Nodeleft ()
 
Noderight ()
 

Private Attributes

Key key_
 
Value value_
 
Nodeleft_
 
Noderight_
 

Friends

class SplayTree
 
class Locator
 

Detailed Description

template<typename Config, class AllocationPolicy>
class v8::internal::SplayTree< Config, AllocationPolicy >::Node

Definition at line 100 of file splay-tree.h.

Constructor & Destructor Documentation

◆ Node()

template<typename Config , class AllocationPolicy >
v8::internal::SplayTree< Config, AllocationPolicy >::Node::Node ( const Key key,
const Value value 
)
inline

Definition at line 102 of file splay-tree.h.

103  : key_(key),
104  value_(value),
105  left_(NULL),
106  right_(NULL) { }
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

Member Function Documentation

◆ INLINE() [1/3]

template<typename Config , class AllocationPolicy >
v8::internal::SplayTree< Config, AllocationPolicy >::Node::INLINE ( void *operator   newsize_t size, AllocationPolicy allocator)
inline

Definition at line 108 of file splay-tree.h.

108  {
109  return allocator.New(static_cast<int>(size));
110  }
AllocationPolicy allocator()
Definition: splay-tree.h:54
enable harmony numeric enable harmony object literal extensions Optimize object size

References v8::internal::SplayTree< Config, AllocationPolicy >::allocator(), and size.

+ Here is the call graph for this function:

◆ INLINE() [2/3]

template<typename Config , class AllocationPolicy >
v8::internal::SplayTree< Config, AllocationPolicy >::Node::INLINE ( void operator   deletevoid *p)
inline

Definition at line 111 of file splay-tree.h.

111  {
112  return AllocationPolicy::Delete(p);
113  }

◆ INLINE() [3/3]

template<typename Config , class AllocationPolicy >
v8::internal::SplayTree< Config, AllocationPolicy >::Node::INLINE ( void operator   deletevoid *p, AllocationPolicy allocator)
inline

Definition at line 116 of file splay-tree.h.

116  {
117  UNREACHABLE();
118  }
#define UNREACHABLE()
Definition: logging.h:30

References UNREACHABLE.

◆ key()

template<typename Config , class AllocationPolicy >
Key v8::internal::SplayTree< Config, AllocationPolicy >::Node::key ( )
inline

Definition at line 120 of file splay-tree.h.

120 { return key_; }

References v8::internal::SplayTree< Config, AllocationPolicy >::Node::key_.

Referenced by v8::internal::SplayTree< Config, AllocationPolicy >::BASE_EMBEDDED< Callback >::Call().

+ Here is the caller graph for this function:

◆ left()

template<typename Config , class AllocationPolicy >
Node* v8::internal::SplayTree< Config, AllocationPolicy >::Node::left ( )
inline

Definition at line 122 of file splay-tree.h.

122 { return left_; }

References v8::internal::SplayTree< Config, AllocationPolicy >::Node::left_.

Referenced by v8::internal::SplayTree< Config, AllocationPolicy >::ForEachNode().

+ Here is the caller graph for this function:

◆ right()

template<typename Config , class AllocationPolicy >
Node* v8::internal::SplayTree< Config, AllocationPolicy >::Node::right ( )
inline

Definition at line 123 of file splay-tree.h.

123 { return right_; }

References v8::internal::SplayTree< Config, AllocationPolicy >::Node::right_.

Referenced by v8::internal::SplayTree< Config, AllocationPolicy >::ForEachNode().

+ Here is the caller graph for this function:

◆ value()

template<typename Config , class AllocationPolicy >
Value v8::internal::SplayTree< Config, AllocationPolicy >::Node::value ( )
inline

Definition at line 121 of file splay-tree.h.

121 { return value_; }

References v8::internal::SplayTree< Config, AllocationPolicy >::Node::value_.

Referenced by v8::internal::SplayTree< Config, AllocationPolicy >::BASE_EMBEDDED< Callback >::Call().

+ Here is the caller graph for this function:

Friends And Related Function Documentation

◆ Locator

template<typename Config , class AllocationPolicy >
friend class Locator
friend

Definition at line 127 of file splay-tree.h.

◆ SplayTree

template<typename Config , class AllocationPolicy >
friend class SplayTree
friend

Definition at line 126 of file splay-tree.h.

Member Data Documentation

◆ key_

template<typename Config , class AllocationPolicy >
Key v8::internal::SplayTree< Config, AllocationPolicy >::Node::key_
private

◆ left_

◆ right_

◆ value_

template<typename Config , class AllocationPolicy >
Value v8::internal::SplayTree< Config, AllocationPolicy >::Node::value_
private

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