mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 714616 followup: add assertions to moveDenseArrayElements unbarriered, r=billm
This commit is contained in:
parent
e96ff07d7b
commit
02ff01199a
@ -630,6 +630,10 @@ inline void
|
||||
JSObject::moveDenseArrayElementsUnbarriered(uintN dstStart, uintN srcStart, uintN count)
|
||||
{
|
||||
JS_ASSERT(!compartment()->needsBarrier());
|
||||
|
||||
JS_ASSERT(dstStart + count <= getDenseArrayCapacity());
|
||||
JS_ASSERT(srcStart + count <= getDenseArrayCapacity());
|
||||
|
||||
memmove(elements + dstStart, elements + srcStart, count * sizeof(js::Value));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user