mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +00:00
LibJS: Add JumpUndefined bytecode
This commit is contained in:
parent
3ee627909a
commit
f39ab2e60a
Notes:
sideshowbarker
2024-07-18 12:02:37 +09:00
Author: https://github.com/mattco98
Commit: f39ab2e60a
Pull-request: https://github.com/SerenityOS/serenity/pull/8033
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/awesomekling
4 changed files with 31 additions and 1 deletions
|
@ -58,7 +58,7 @@ void GenerateCFG::perform(PassPipelineExecutable& executable)
|
|||
continue;
|
||||
}
|
||||
|
||||
if (instruction.type() == Instruction::Type::JumpConditional || instruction.type() == Instruction::Type::JumpNullish) {
|
||||
if (instruction.type() == Instruction::Type::JumpConditional || instruction.type() == Instruction::Type::JumpNullish || instruction.type() == Instruction::Type::JumpUndefined) {
|
||||
auto& true_target = static_cast<Op::Jump const&>(instruction).true_target();
|
||||
enter_label(true_target, current_block);
|
||||
auto& false_target = static_cast<Op::Jump const&>(instruction).false_target();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue