mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-20 00:08:55 +00:00
LibJS: Fix whitespace errors in ASTCodegen.cpp
This commit is contained in:
parent
9c0d83d11d
commit
e0a2c1544f
Notes:
sideshowbarker
2024-07-18 12:40:09 +09:00
Author: https://github.com/linusg
Commit: e0a2c1544f
1 changed files with 2 additions and 2 deletions
|
@ -199,7 +199,7 @@ Optional<Bytecode::Register> AssignmentExpression::generate_bytecode(Bytecode::G
|
||||||
generator.emit<Bytecode::Op::SetVariable>(identifier.string(), *rhs_reg);
|
generator.emit<Bytecode::Op::SetVariable>(identifier.string(), *rhs_reg);
|
||||||
return rhs_reg;
|
return rhs_reg;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto lhs_reg = m_lhs->generate_bytecode(generator);
|
auto lhs_reg = m_lhs->generate_bytecode(generator);
|
||||||
auto dst_reg = generator.allocate_register();
|
auto dst_reg = generator.allocate_register();
|
||||||
|
|
||||||
|
@ -241,7 +241,7 @@ Optional<Bytecode::Register> AssignmentExpression::generate_bytecode(Bytecode::G
|
||||||
generator.emit<Bytecode::Op::UnsignedRightShift>(dst_reg, *lhs_reg, *rhs_reg);
|
generator.emit<Bytecode::Op::UnsignedRightShift>(dst_reg, *lhs_reg, *rhs_reg);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
TODO();
|
TODO();
|
||||||
}
|
}
|
||||||
|
|
||||||
generator.emit<Bytecode::Op::SetVariable>(identifier.string(), dst_reg);
|
generator.emit<Bytecode::Op::SetVariable>(identifier.string(), dst_reg);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue