瀏覽代碼

LibJS/JIT: Use JIT::Assembler::jump_if_zero() to improve code size

Andreas Kling 1 年之前
父節點
當前提交
b43e38112c
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      Userland/Libraries/LibJS/JIT/Compiler.cpp

+ 1 - 2
Userland/Libraries/LibJS/JIT/Compiler.cpp

@@ -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()));