LibJS: Deduplicate labelled continue & break bytecode generation

Similar to the scoped continue and break, the only two differences
between these functions is the scope that is scanned for a matching
label, and the specific handling of a continue/break boundary.
This commit is contained in:
Shannon Booth
2023-07-19 20:06:25 +12:00
committed by Andreas Kling
parent 663e4507ea
commit a0d1ef34e2
Notes: sideshowbarker 2024-07-17 05:05:51 +09:00
2 changed files with 24 additions and 44 deletions

View File

@@ -217,6 +217,7 @@ private:
Break,
};
void generate_scoped_jump(JumpType);
void generate_labelled_jump(JumpType, DeprecatedFlyString const& label);
Generator();
~Generator() = default;