Providing a map-like structure with JSObject pointers (actually their hash) as keys with correct garbage collection handling (JSObjects can move in memory).
More...
#include <ObjectToIDMap.h>
|
typedef js::PointerHasher< JSObject *, 3 > | Hasher |
|
typedef js::HashMap< JSObject *, T, Hasher, js::SystemAllocPolicy > | Table |
|
template<typename T>
class ObjectIdCache< T >
Providing a map-like structure with JSObject pointers (actually their hash) as keys with correct garbage collection handling (JSObjects can move in memory).
The code in this class was copied from here and modified to work in our environment.
When updating SpiderMonkey, you most likely have to reintegrate an updated version of the class(es) in this file. The best way is probably to get a diff between the original files and integrate that because this file is heavily modified from the original version.
template<typename T>
static void ObjectIdCache< T >::keyMarkCallback |
( |
JSTracer * |
trc, |
|
|
JSObject * |
key, |
|
|
void * |
data |
|
) |
| |
|
inlinestaticprivate |
The documentation for this class was generated from the following file: