mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibJS: Reduce Mov instructions by using preferred destinations
This commit is contained in:
parent
5707076b9e
commit
f72d87931f
|
|
@ -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…
Reference in New Issue
Block a user