зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1312480, r=jandem
This commit is contained in:
Родитель
a95e6c4714
Коммит
a4c83904d0
|
@ -231,8 +231,10 @@ JS_FOR_EACH_TYPED_ARRAY(OBJECT_MOVED_TYPED_ARRAY)
|
|||
|
||||
// Set a forwarding pointer for the element buffers in case they were
|
||||
// preserved on the stack by Ion.
|
||||
nursery.maybeSetForwardingPointer(trc, oldObj->elements(), newObj->elements(),
|
||||
/* direct = */nbytes >= sizeof(uintptr_t));
|
||||
if (nbytes > 0) {
|
||||
nursery.maybeSetForwardingPointer(trc, oldObj->elements(), newObj->elements(),
|
||||
/* direct = */nbytes >= sizeof(uintptr_t));
|
||||
}
|
||||
|
||||
return newObj->hasInlineElements() ? 0 : nbytes;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче