LibJS/Bytecode: Reuse bytecode registers

This patch adds a register freelist to Bytecode::Generator and switches
all operands inside the generator to a new ScopedOperand type that is
ref-counted and automatically frees the register when nothing uses it.

This dramatically reduces the size of bytecode executable register
windows, which were often in the several thousands of registers for
large functions. Most functions now use less than 100 registers.
This commit is contained in:
Andreas Kling
2024-05-07 21:36:56 +02:00
parent f537d0b3cf
commit cea59b6642
10 changed files with 505 additions and 381 deletions

File diff suppressed because it is too large Load Diff