1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:07:44 +00:00

LibJS: Add JumpUndefined bytecode

This commit is contained in:
Matthew Olsson 2021-06-13 12:24:40 -07:00 committed by Andreas Kling
parent 3ee627909a
commit f39ab2e60a
4 changed files with 31 additions and 1 deletions

View file

@ -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();