mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:18:12 +00:00
LibJS/JIT: Sign-extend integers before comparing in LessThan fast path
This commit is contained in:
parent
4b7f5f4ae7
commit
5bd93f34af
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