Bug 730208 - Implement js::IsIncrementalBarrierNeededOnScript. r=billm

--HG--
extra : rebase_source : 2f065e0dae6c2789b547b677eb0e8ebb466feec2
This commit is contained in:
Steve Fink 2012-04-24 16:29:03 -07:00
parent bbc1dda5da
commit b4d3e4eef9
2 changed files with 9 additions and 0 deletions

View File

@ -768,6 +768,12 @@ IsIncrementalBarrierNeededOnObject(JSObject *obj)
return obj->compartment()->needsBarrier();
}
JS_FRIEND_API(bool)
IsIncrementalBarrierNeededOnScript(JSScript *script)
{
return script->compartment()->needsBarrier();
}
extern JS_FRIEND_API(void)
IncrementalReferenceBarrier(void *ptr)
{

View File

@ -724,6 +724,9 @@ IsIncrementalBarrierNeeded(JSContext *cx);
extern JS_FRIEND_API(bool)
IsIncrementalBarrierNeededOnObject(JSObject *obj);
extern JS_FRIEND_API(bool)
IsIncrementalBarrierNeededOnScript(JSScript *obj);
extern JS_FRIEND_API(void)
IncrementalReferenceBarrier(void *ptr);