Fix --enable-root-analysis builds break, no bug. r=billm

This commit is contained in:
Brian Hackett 2012-07-09 09:58:22 -06:00
parent 0d3a4ecdda
commit a409753f7a

View File

@ -383,6 +383,11 @@ public:
}
};
#if defined(DEBUG) && defined(JS_GC_ZEAL) && defined(JSGC_ROOT_ANALYSIS) && !defined(JS_THREADSAFE)
extern void
CheckStackRoots(JSContext *cx);
#endif
/*
* Hook for dynamic root analysis. Checks the native stack and poisons
* references to GC things which have not been rooted.
@ -392,7 +397,6 @@ inline void MaybeCheckStackRoots(JSContext *cx)
#ifdef DEBUG
JS_ASSERT(!IsRootingUnnecessaryForContext(cx));
# if defined(JS_GC_ZEAL) && defined(JSGC_ROOT_ANALYSIS) && !defined(JS_THREADSAFE)
void CheckStackRoots(JSContext *cx);
CheckStackRoots(cx);
# endif
#endif