Bug 1842773 - Part 15: Support resizable TypedArrays in MacroAssembler. r=sfink,jandem
commit0a5fc847a2887f521d13d1d6e7b51c253a702a7c
authorAndré Bargull <andre.bargull@gmail.com>
Thu, 25 Jan 2024 15:49:48 +0000 (25 15:49 +0000)
committerAndré Bargull <andre.bargull@gmail.com>
Thu, 25 Jan 2024 15:49:48 +0000 (25 15:49 +0000)
treead070ad6c59a6acedd330d384f30977b7185c467
parentcff3d07ed9383782299c851d24b9d3a77b98ab6a
Bug 1842773 - Part 15: Support resizable TypedArrays in MacroAssembler. r=sfink,jandem

It's easy to add support for resizable typed arrays to `branchIfClassIsNotTypedArray`,
because the classes are in contiguous memory.

`MacroAssembler::typedArrayElementSize` is a bit more difficult, at least when
trying to avoid duplicating the detection for both fixed length and resizable
typed array classes.

Differential Revision: https://phabricator.services.mozilla.com/D183331
js/src/jit/CacheIR.cpp
js/src/jit/MacroAssembler.cpp
js/src/vm/TypedArrayObject.cpp
js/src/vm/TypedArrayObject.h