mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
LibJS: Remove FinishUnwind instruction
This is essentially a LeaveUnwind+Jump, so lets just do that, that will make it easier to optimize it, or see unwind state transitions
This commit is contained in:
parent
fc332be2e5
commit
133faa0acc
Notes:
sideshowbarker
2024-07-17 07:16:27 +09:00
Author: https://github.com/Hendiadyoin1
Commit: 133faa0acc
Pull-request: https://github.com/SerenityOS/serenity/pull/16055
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/linusg
5 changed files with 2 additions and 46 deletions
|
@ -1987,7 +1987,8 @@ Bytecode::CodeGenerationErrorOr<void> TryStatement::generate_bytecode(Bytecode::
|
|||
generator.emit<Bytecode::Op::Jump>(finalizer_target);
|
||||
} else {
|
||||
auto& block = generator.make_block();
|
||||
generator.emit<Bytecode::Op::FinishUnwind>(Bytecode::Label { block });
|
||||
generator.emit<Bytecode::Op::LeaveUnwindContext>();
|
||||
generator.emit<Bytecode::Op::Jump>(Bytecode::Label { block });
|
||||
next_block = █
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue