mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-20 11:36:10 +00:00
LibJS: Reduce Mov instructions by using preferred destinations
This commit is contained in:
parent
5707076b9e
commit
f72d87931f
Notes:
github-actions[bot]
2025-03-28 11:22:08 +00:00
Author: https://github.com/ananas-dev Commit: https://github.com/LadybirdBrowser/ladybird/commit/f72d87931f6 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4134
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