Bug 888338 - 5 - post barrier remaining heap-based GC things in XPConnect r=bholley

This commit is contained in:
Jon Coppeard 2013-07-23 10:58:27 +01:00
parent cde9c3d3cd
commit da1bfb1578
3 changed files with 4 additions and 4 deletions

View File

@ -69,7 +69,7 @@ void XPCTraceableVariant::TraceJS(JSTracer* trc)
{
MOZ_ASSERT(JSVAL_IS_TRACEABLE(mJSVal));
JS_SET_TRACING_DETAILS(trc, GetTraceName, this, 0);
JS_CallValueTracer(trc, &mJSVal, "XPCTraceableVariant::mJSVal");
JS_CallHeapValueTracer(trc, &mJSVal, "XPCTraceableVariant::mJSVal");
}
// static

View File

@ -3403,7 +3403,7 @@ void
XPCJSObjectHolder::TraceJS(JSTracer *trc)
{
JS_SET_TRACING_DETAILS(trc, GetTraceName, this, 0);
JS_CallObjectTracer(trc, &mJSObj, "XPCJSObjectHolder::mJSObj");
JS_CallHeapObjectTracer(trc, &mJSObj, "XPCJSObjectHolder::mJSObj");
}
// static

View File

@ -2829,7 +2829,7 @@ private:
XPCJSObjectHolder(JSObject* obj);
XPCJSObjectHolder(); // not implemented
JSObject* mJSObj;
JS::Heap<JSObject*> mJSObj;
};
/***************************************************************************
@ -3640,7 +3640,7 @@ protected:
protected:
nsDiscriminatedUnion mData;
jsval mJSVal;
JS::Heap<JS::Value> mJSVal;
bool mReturnRawObject : 1;
uint32_t mCCGeneration : 31;
};