зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1338623 - Use IsNotGray in all gray marking assertions r=sfink
This commit is contained in:
Родитель
45e0832810
Коммит
615b27674b
|
@ -68,7 +68,7 @@ class CompartmentChecker
|
|||
}
|
||||
|
||||
void check(JSObject* obj) {
|
||||
MOZ_ASSERT_IF(obj, IsInsideNursery(obj) || !obj->asTenured().isMarked(gc::GRAY));
|
||||
MOZ_ASSERT(JS::ObjectIsNotGray(obj));
|
||||
if (obj)
|
||||
check(obj->compartment());
|
||||
}
|
||||
|
@ -100,7 +100,7 @@ class CompartmentChecker
|
|||
}
|
||||
|
||||
void check(JSString* str) {
|
||||
MOZ_ASSERT(!str->isMarked(gc::GRAY));
|
||||
MOZ_ASSERT(JS::CellIsNotGray(str));
|
||||
if (str->isAtom()) {
|
||||
checkAtom(str);
|
||||
} else {
|
||||
|
@ -161,7 +161,7 @@ class CompartmentChecker
|
|||
}
|
||||
|
||||
void check(JSScript* script) {
|
||||
MOZ_ASSERT_IF(script, !script->isMarked(gc::GRAY));
|
||||
MOZ_ASSERT(JS::CellIsNotGray(script));
|
||||
if (script)
|
||||
check(script->compartment());
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче