зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1008336: Move MarkIfGCThingWord() and IsAddressableGCThing() inside the #ifndef that guards their only callers. r=billm
This commit is contained in:
Родитель
6d1b73a8a1
Коммит
469fb3265c
|
@ -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)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче