mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:37:45 +00:00
LibRegex: Assign unique serial IDs to checkpoints
This makes the compiler assign a serial ID to each checkpoint instead of using the IP as the identifier. This will be used in a future commit to replace the backing store of checkpoints with a vector.
This commit is contained in:
parent
06573cd46d
commit
2d6f50932b
3 changed files with 25 additions and 14 deletions
|
@ -179,6 +179,8 @@ ALWAYS_INLINE void Parser::reset()
|
|||
|
||||
Parser::Result Parser::parse(Optional<AllOptions> regex_options)
|
||||
{
|
||||
ByteCode::reset_checkpoint_serial_id();
|
||||
|
||||
reset();
|
||||
if (regex_options.has_value())
|
||||
m_parser_state.regex_options = regex_options.value();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue