V8 Project
v8::DefaultPersistentValueMapTraits< K, V > Class Template Reference

A default trait implementation for PersistentValueMap, which inherits a std:map backing map from StdMapTraits and holds non-weak persistent objects and has no special Dispose handling. More...

#include <v8-util.h>

+ Inheritance diagram for v8::DefaultPersistentValueMapTraits< K, V >:
+ Collaboration diagram for v8::DefaultPersistentValueMapTraits< K, V >:

Public Types

typedef PersistentValueMap< K, V, DefaultPersistentValueMapTraits< K, V > > MapType
 
typedef void WeakCallbackDataType
 
- Public Types inherited from v8::StdMapTraits< K, V >
typedef std::map< K, PersistentContainerValueImpl
 
typedef Impl::iterator Iterator
 

Static Public Member Functions

static WeakCallbackDataTypeWeakCallbackParameter (MapType *map, const K &key, Local< V > value)
 
static MapTypeMapFromWeakCallbackData (const WeakCallbackData< V, WeakCallbackDataType > &data)
 
static K KeyFromWeakCallbackData (const WeakCallbackData< V, WeakCallbackDataType > &data)
 
static void DisposeCallbackData (WeakCallbackDataType *data)
 
static void Dispose (Isolate *isolate, UniquePersistent< V > value, K key)
 
- Static Public Member Functions inherited from v8::StdMapTraits< K, V >
static bool Empty (Impl *impl)
 
static size_t Size (Impl *impl)
 
static void Swap (Impl &a, Impl &b)
 
static Iterator Begin (Impl *impl)
 
static Iterator End (Impl *impl)
 
static K Key (Iterator it)
 
static PersistentContainerValue Value (Iterator it)
 
static PersistentContainerValue Set (Impl *impl, K key, PersistentContainerValue value)
 
static PersistentContainerValue Get (Impl *impl, K key)
 
static PersistentContainerValue Remove (Impl *impl, K key)
 

Static Public Attributes

static const PersistentContainerCallbackType kCallbackType = kNotWeak
 

Detailed Description

template<typename K, typename V>
class v8::DefaultPersistentValueMapTraits< K, V >

A default trait implementation for PersistentValueMap, which inherits a std:map backing map from StdMapTraits and holds non-weak persistent objects and has no special Dispose handling.

You should not derive from this class, since MapType depends on the surrounding class, and hence a subclass cannot simply inherit the methods.

Definition at line 83 of file v8-util.h.

Member Typedef Documentation

◆ MapType

template<typename K , typename V >
typedef PersistentValueMap<K, V, DefaultPersistentValueMapTraits<K, V> > v8::DefaultPersistentValueMapTraits< K, V >::MapType

Definition at line 88 of file v8-util.h.

◆ WeakCallbackDataType

template<typename K , typename V >
typedef void v8::DefaultPersistentValueMapTraits< K, V >::WeakCallbackDataType

Definition at line 89 of file v8-util.h.

Member Function Documentation

◆ Dispose()

template<typename K , typename V >
static void v8::DefaultPersistentValueMapTraits< K, V >::Dispose ( Isolate isolate,
UniquePersistent< V value,
key 
)
inlinestatic

Definition at line 104 of file v8-util.h.

104 { }

◆ DisposeCallbackData()

template<typename K , typename V >
static void v8::DefaultPersistentValueMapTraits< K, V >::DisposeCallbackData ( WeakCallbackDataType data)
inlinestatic

Definition at line 103 of file v8-util.h.

103 { }

◆ KeyFromWeakCallbackData()

template<typename K , typename V >
static K v8::DefaultPersistentValueMapTraits< K, V >::KeyFromWeakCallbackData ( const WeakCallbackData< V, WeakCallbackDataType > &  data)
inlinestatic

Definition at line 99 of file v8-util.h.

100  {
101  return K();
102  }

◆ MapFromWeakCallbackData()

template<typename K , typename V >
static MapType* v8::DefaultPersistentValueMapTraits< K, V >::MapFromWeakCallbackData ( const WeakCallbackData< V, WeakCallbackDataType > &  data)
inlinestatic

Definition at line 95 of file v8-util.h.

96  {
97  return NULL;
98  }
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

References NULL.

◆ WeakCallbackParameter()

template<typename K , typename V >
static WeakCallbackDataType* v8::DefaultPersistentValueMapTraits< K, V >::WeakCallbackParameter ( MapType map,
const K &  key,
Local< V value 
)
inlinestatic

Definition at line 91 of file v8-util.h.

92  {
93  return NULL;
94  }

References NULL.

Member Data Documentation

◆ kCallbackType

template<typename K , typename V >
const PersistentContainerCallbackType v8::DefaultPersistentValueMapTraits< K, V >::kCallbackType = kNotWeak
static

Definition at line 86 of file v8-util.h.


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