ladybird/Tests/LibRegex
Timothy Flynn 9509433e25 LibRegex: Implement and use a REPEAT operation for bytecode repetition
Currently, when we need to repeat an instruction N times, we simply add
that instruction N times in a for-loop. This doesn't scale well with
extremely large values of N, and ECMA-262 allows up to N = 2^53 - 1.

Instead, add a new REPEAT bytecode operation to defer this loop from the
parser to the runtime executor. This allows the parser to complete sans
any loops (for this instruction), and allows the executor to bail early
if the repeated bytecode fails.

Note: The templated ByteCode methods are to allow the Posix parsers to
continue using u32 because they are limited to N = 2^20.
2021-08-15 11:43:45 +01:00
..
Benchmark.cpp Tests: Move LibRegex tests to Tests/LibRegex 2021-05-06 17:54:28 +02:00
CMakeLists.txt Tests: Move LibRegex tests to Tests/LibRegex 2021-05-06 17:54:28 +02:00
Regex.cpp LibRegex: Implement and use a REPEAT operation for bytecode repetition 2021-08-15 11:43:45 +01:00
RegexLibC.cpp LibRegex: Correctly parse BRE bracket expressions 2021-07-10 22:58:24 +04:30