зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1637937 - Use MOZ_DIAGNOSTIC_ASSERT in marking code instead of JS_DIAGNOSTICS_ASSERT r=sfink
Depends on D76122 Differential Revision: https://phabricator.services.mozilla.com/D76123
This commit is contained in:
Родитель
bb27745719
Коммит
b15cea9c6c
|
@ -1280,10 +1280,10 @@ inline void js::GCMarker::eagerlyMarkChildren(JSRope* rope) {
|
|||
// types.
|
||||
gc::MarkStack& stack = currentStack();
|
||||
size_t savedPos = stack.position();
|
||||
JS_DIAGNOSTICS_ASSERT(rope->getTraceKind() == JS::TraceKind::String);
|
||||
MOZ_DIAGNOSTIC_ASSERT(rope->getTraceKind() == JS::TraceKind::String);
|
||||
while (true) {
|
||||
JS_DIAGNOSTICS_ASSERT(rope->getTraceKind() == JS::TraceKind::String);
|
||||
JS_DIAGNOSTICS_ASSERT(rope->JSString::isRope());
|
||||
MOZ_DIAGNOSTIC_ASSERT(rope->getTraceKind() == JS::TraceKind::String);
|
||||
MOZ_DIAGNOSTIC_ASSERT(rope->JSString::isRope());
|
||||
AssertShouldMarkInZone(rope);
|
||||
MOZ_ASSERT(rope->isMarkedAny());
|
||||
JSRope* next = nullptr;
|
||||
|
|
Загрузка…
Ссылка в новой задаче