This commit is contained in:
Hannes Verschore 2017-01-05 19:33:09 +01:00
Родитель a95e6c4714
Коммит a4c83904d0
1 изменённых файлов: 4 добавлений и 2 удалений

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

@ -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;
}