mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:28:12 +00:00
LibJS/JIT: Use JIT::Assembler::jump_if_zero() to improve code size
This commit is contained in:
parent
6f0baea594
commit
b43e38112c
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