Bug 945844 - Fix build error when compiling with GGC enabled and initialise store buffer reentry check member r=sfink

This commit is contained in:
Jon Coppeard 2013-12-04 11:02:47 +00:00
parent d57acc87b4
commit e5ae6935a1
2 changed files with 3 additions and 2 deletions

View File

@ -398,7 +398,8 @@ class StoreBuffer
explicit StoreBuffer(JSRuntime *rt, const Nursery &nursery)
: bufferVal(), bufferCell(), bufferSlot(), bufferWholeCell(),
bufferRelocVal(), bufferRelocCell(), bufferGeneric(),
runtime_(rt), nursery_(nursery), aboutToOverflow_(false), enabled_(false)
runtime_(rt), nursery_(nursery), aboutToOverflow_(false), enabled_(false),
entered(false)
{
}

View File

@ -277,7 +277,7 @@ WeakMapPostWriteBarrier(JSRuntime *rt, ObjectValueMap *map, JSObject *key)
* This will automatically ensure that barriers do not fire during GC.
*/
typedef WeakMap<JSObject *, Value> UnbarrieredObjectValueMap;
typedef HashKeyRef<UnbarrieredObjectValueMap, JSObject *> Ref;
typedef gc::HashKeyRef<UnbarrieredObjectValueMap, JSObject *> Ref;
if (key && IsInsideNursery(rt, key))
rt->gcStoreBuffer.putGeneric(Ref(reinterpret_cast<UnbarrieredObjectValueMap *>(map), key));
#endif