Bug 1008336: Move MarkIfGCThingWord() and IsAddressableGCThing() inside the #ifndef that guards their only callers. r=billm

This commit is contained in:
Daniel Holbert 2014-05-09 13:30:38 -07:00
Родитель 6d1b73a8a1
Коммит 469fb3265c
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -112,6 +112,7 @@ enum ConservativeGCTest
* Tests whether w is a (possibly dead) GC thing. Returns CGCT_VALID and
* details about the thing if so. On failure, returns the reason for rejection.
*/
#ifndef JSGC_USE_EXACT_ROOTING
static inline ConservativeGCTest
IsAddressableGCThing(JSRuntime *rt, uintptr_t w,
bool skipUncollectedCompartments,
@ -231,7 +232,6 @@ MarkIfGCThingWord(JSTracer *trc, uintptr_t w)
return CGCT_VALID;
}
#ifndef JSGC_USE_EXACT_ROOTING
static void
MarkWordConservatively(JSTracer *trc, uintptr_t w)
{