mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 12:35:14 +00:00
LibJS: Reduce Mov instructions by using preferred destinations
This commit is contained in:
parent
23ab1db5cf
commit
658510226c
1 changed files with 1 additions and 1 deletions
|
@ -334,7 +334,7 @@ Bytecode::CodeGenerationErrorOr<Optional<ScopedOperand>> LogicalExpression::gene
|
|||
|
||||
generator.switch_to_basic_block(rhs_block);
|
||||
|
||||
auto rhs = TRY(m_rhs->generate_bytecode(generator)).value();
|
||||
auto rhs = TRY(m_rhs->generate_bytecode(generator, dst)).value();
|
||||
|
||||
generator.emit_mov(dst, rhs);
|
||||
generator.emit<Bytecode::Op::Jump>(Bytecode::Label { end_block });
|
||||
|
|
Loading…
Add table
Reference in a new issue