mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
LibJS/Bytecode: Emit do...while body before test in codegen
This makes the code flow naturally and allows jump elision to work.
This commit is contained in:
@@ -787,8 +787,8 @@ Bytecode::CodeGenerationErrorOr<Optional<Bytecode::Operand>> DoWhileStatement::g
|
||||
// body
|
||||
// jump always (true) test
|
||||
// end
|
||||
auto& test_block = generator.make_block();
|
||||
auto& body_block = generator.make_block();
|
||||
auto& test_block = generator.make_block();
|
||||
auto& load_result_and_jump_to_end_block = generator.make_block();
|
||||
auto& end_block = generator.make_block();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user