mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibJS/JIT: Sign-extend integers before comparing in LessThan fast path
This commit is contained in:
parent
4b7f5f4ae7
commit
5bd93f34af
Notes:
sideshowbarker
2024-07-17 07:48:42 +09:00
Author: https://github.com/awesomekling
Commit: 5bd93f34af
Pull-request: https://github.com/SerenityOS/serenity/pull/21619
Reviewed-by: https://github.com/Hendiadyoin1
2 changed files with 12 additions and 0 deletions
|
@ -468,6 +468,10 @@ void Compiler::compile_less_than(Bytecode::Op::LessThan const& op)
|
|||
// else return false;
|
||||
|
||||
auto true_case = m_assembler.make_label();
|
||||
|
||||
m_assembler.sign_extend_32_to_64_bits(ARG1);
|
||||
m_assembler.sign_extend_32_to_64_bits(ARG2);
|
||||
|
||||
m_assembler.jump_if_less_than(
|
||||
Assembler::Operand::Register(ARG1),
|
||||
Assembler::Operand::Register(ARG2),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue