Explorar o código

LibJS/JIT: Remove incorrect check for empty tag

This check is not required and prevented put_by_value
to take the actual fastpath.
Stephan Vedder hai 1 ano
pai
achega
9c63f9854b
Modificáronse 1 ficheiros con 0 adicións e 9 borrados
  1. 0 9
      Userland/Libraries/LibJS/JIT/Compiler.cpp

+ 0 - 9
Userland/Libraries/LibJS/JIT/Compiler.cpp

@@ -2428,15 +2428,6 @@ void Compiler::compile_put_by_value(Bytecode::Op::PutByValue const& op)
                 Assembler::Operand::Register(GPR2),
                 Assembler::Operand::Mem64BaseAndOffset(GPR0, 0));
 
-            // if (GPR2.is_empty()) goto slow_case;
-            m_assembler.mov(Assembler::Operand::Register(GPR1), Assembler::Operand::Register(GPR2));
-            m_assembler.shift_right(Assembler::Operand::Register(GPR1), Assembler::Operand::Imm(TAG_SHIFT));
-            m_assembler.jump_if(
-                Assembler::Operand::Register(GPR1),
-                Assembler::Condition::EqualTo,
-                Assembler::Operand::Imm(EMPTY_TAG),
-                slow_case);
-
             // if (GPR2.is_accessor()) goto slow_case;
             m_assembler.mov(Assembler::Operand::Register(GPR1), Assembler::Operand::Register(GPR2));
             m_assembler.shift_right(Assembler::Operand::Register(GPR1), Assembler::Operand::Imm(TAG_SHIFT));