Bug 1885489 - Part 3: Remove unreachable code RCharCodeAt::recover. r=iain
commit9b0f41189bc217ca087a051f1eecedfd1cf83556
authorAndré Bargull <andre.bargull@gmail.com>
Wed, 3 Apr 2024 07:47:07 +0000 (3 07:47 +0000)
committerAndré Bargull <andre.bargull@gmail.com>
Wed, 3 Apr 2024 07:47:07 +0000 (3 07:47 +0000)
tree17eddb88740873c6c8eab3c4a26793d7817dd769
parentf600426dad21aea79a74362c0d561b70a57bcc5b
Bug 1885489 - Part 3: Remove unreachable code RCharCodeAt::recover. r=iain

Preceding `MBoundsCheck` guarantees that the index is in-bounds. Release assert
this and remove the unreachable out-of-bounds case. This also makes it clearer
that recovering will always return an Int32 value.

Differential Revision: https://phabricator.services.mozilla.com/D204899
js/src/jit/Recover.cpp