mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibJS/JIT: Use JIT::Assembler::jump_if_zero() to improve code size
This commit is contained in:
parent
6f0baea594
commit
b43e38112c
Notes:
sideshowbarker
2024-07-17 03:18:29 +09:00
Author: https://github.com/awesomekling
Commit: b43e38112c
Pull-request: https://github.com/SerenityOS/serenity/pull/21619
Reviewed-by: https://github.com/Hendiadyoin1
1 changed files with 1 additions and 2 deletions
|
@ -155,9 +155,8 @@ void Compiler::compile_jump_conditional(Bytecode::Op::JumpConditional const& op)
|
|||
|
||||
compile_to_boolean(GPR0, GPR1);
|
||||
|
||||
m_assembler.jump_if_equal(
|
||||
m_assembler.jump_if_zero(
|
||||
Assembler::Operand::Register(GPR0),
|
||||
Assembler::Operand::Imm32(0),
|
||||
label_for(op.false_target()->block()));
|
||||
|
||||
m_assembler.jump(label_for(op.true_target()->block()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue