mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
9509433e25
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. |
||
---|---|---|
.. | ||
AK | ||
Kernel | ||
LibC | ||
LibCompress | ||
LibCore | ||
LibCpp | ||
LibCrypto | ||
LibELF | ||
LibGfx | ||
LibIMAP | ||
LibJS | ||
LibM | ||
LibPthread | ||
LibRegex | ||
LibSQL | ||
LibThreading | ||
LibTLS | ||
LibUnicode | ||
LibWasm | ||
LibWeb | ||
UserspaceEmulator | ||
CMakeLists.txt |