Bug 1121435 - fix the comment. r=jandem

This commit is contained in:
Lars T Hansen 2015-01-23 13:53:34 +01:00
Родитель faee2dfe7e
Коммит 62f50e6b1c
1 изменённых файлов: 4 добавлений и 4 удалений

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

@ -929,11 +929,11 @@ class AssemblerShared
ImmGCPtr noteMaybeNurseryPtr(ImmMaybeNurseryPtr ptr) {
if (ptr.value && gc::IsInsideNursery(ptr.value)) {
// PJS FIXME bug 1121435
// FIXME: Ideally we'd assert this in all cases, but PJS needs to
// compile IC's from off-main-thread; it will not touch
// nursery pointers, however.
// noteMaybeNurseryPtr can be reached from off-thread compilation,
// though not with an actual nursery pointer argument in that case.
MOZ_ASSERT(GetJitContext()->runtime->onMainThread());
// Do not be ion-compiling on the main thread.
MOZ_ASSERT(!GetJitContext()->runtime->mainThread()->ionCompiling);
embedsNurseryPointers_ = true;
}
return ImmGCPtr(ptr);