Bug 1842773 - Part 4: Add ResizableArrayBufferObject::MAX_BYTE_LENGTH_SLOT. r=sfink
commit10a34eaf358ca6dfab9bd91adb4f8303892c8544
authorAndré Bargull <andre.bargull@gmail.com>
Mon, 29 Jan 2024 10:44:20 +0000 (29 10:44 +0000)
committerAndré Bargull <andre.bargull@gmail.com>
Mon, 29 Jan 2024 10:44:20 +0000 (29 10:44 +0000)
tree933b8c211c8a1085910522061213315eb5aa3404
parent627ef5855ddcc22db2361d8dedaf9366a5bd6bf1
Bug 1842773 - Part 4: Add ResizableArrayBufferObject::MAX_BYTE_LENGTH_SLOT. r=sfink

Resizable ArrayBuffers need an additional reserved slot to store the maximum
byte length. Similar to `ArrayBufferObject::BYTE_LENGTH_SLOT`, this slot is set
to zero when the buffer is detached.

Differential Revision: https://phabricator.services.mozilla.com/D183320
js/src/vm/ArrayBufferObject.cpp
js/src/vm/ArrayBufferObject.h