Bug 1873042 - Part 9: Combine Int32ToStringWithBase and StringConvertCase. r=jandem
commit6a51295f1e8a3cef6a4355991b10799efe3cea65
authorAndré Bargull <andre.bargull@gmail.com>
Wed, 10 Jan 2024 15:14:21 +0000 (10 15:14 +0000)
committerAndré Bargull <andre.bargull@gmail.com>
Wed, 10 Jan 2024 15:14:21 +0000 (10 15:14 +0000)
tree5a5ddf22eadcbd48728b6144c6aef5085941e7e6
parentf8a95cb28f6538aa1300a1219808cd997cd30bdb
Bug 1873042 - Part 9: Combine Int32ToStringWithBase and StringConvertCase. r=jandem

Optimise the pattern `num.toString(16).toUpperCase()` to directly compute the
hex-string using upper-case characters.

Differential Revision: https://phabricator.services.mozilla.com/D197694
js/src/jit-test/tests/warp/number-tostring-with-base-uppercase.js [new file with mode: 0644]
js/src/jit/CacheIRCompiler.cpp
js/src/jit/CodeGenerator.cpp
js/src/jit/MIR.cpp
js/src/jit/MIROps.yaml
js/src/jit/MacroAssembler.cpp
js/src/jit/MacroAssembler.h
js/src/jit/WarpCacheIRTranspiler.cpp
js/src/jsnum.cpp
js/src/jsnum.h