ladybird/Userland/Libraries/LibJS/Bytecode
Andreas Kling cea59b6642 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.
2024-05-09 09:12:13 +02:00
..
ASTCodegen.cpp LibJS/Bytecode: Reuse bytecode registers 2024-05-09 09:12:13 +02:00
BasicBlock.cpp LibJS/Bytecode: Store labels as basic block index during compilation 2024-05-07 09:15:40 +02:00
BasicBlock.h LibJS/Bytecode: Reuse bytecode registers 2024-05-09 09:12:13 +02:00
Builtins.cpp LibJS: Introduce Builtins 2023-11-17 19:06:25 +01:00
Builtins.h LibJS/JIT: Add builtin for Math.exp() 2023-11-24 12:49:15 +01:00
CodeGenerationError.cpp
CodeGenerationError.h
CommonImplementations.h LibJS/Bytecode: Inline indexed property access in GetByVal better 2024-05-09 09:12:13 +02:00
Executable.cpp LibJS/Bytecode: Keep instruction source mappings in Executable 2024-05-07 09:15:40 +02:00
Executable.h LibJS/Bytecode: Keep instruction source mappings in Executable 2024-05-07 09:15:40 +02:00
Generator.cpp LibJS/Bytecode: Reuse bytecode registers 2024-05-09 09:12:13 +02:00
Generator.h LibJS/Bytecode: Reuse bytecode registers 2024-05-09 09:12:13 +02:00
IdentifierTable.cpp LibJS/Bytecode: Make IdentifierTableIndex a 32-bit index 2024-05-07 09:15:40 +02:00
IdentifierTable.h LibJS/Bytecode: Make IdentifierTableIndex a 32-bit index 2024-05-07 09:15:40 +02:00
Instruction.cpp LibJS/Bytecode: Remove Instruction::m_length field 2024-05-07 09:15:40 +02:00
Instruction.h LibJS/Bytecode: Remove Instruction::m_length field 2024-05-07 09:15:40 +02:00
Interpreter.cpp LibJS/Bytecode: Do a stack check when entering run_bytecode() 2024-05-07 09:15:40 +02:00
Interpreter.h LibJS/Bytecode: Flatten bytecode to a contiguous representation 2024-05-07 09:15:40 +02:00
Label.cpp LibJS/Bytecode: Store labels as basic block index during compilation 2024-05-07 09:15:40 +02:00
Label.h LibJS/Bytecode: Store labels as basic block index during compilation 2024-05-07 09:15:40 +02:00
Op.h LibJS/Bytecode: Reuse bytecode registers 2024-05-09 09:12:13 +02:00
Operand.h LibJS/Bytecode: Reuse bytecode registers 2024-05-09 09:12:13 +02:00
RegexTable.cpp LibJS/Bytecode: Don't reparse regular expressions on instantiation 2023-07-13 13:30:49 +02:00
RegexTable.h Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
Register.h LibJS: Stash thrown exception in a register before executing finalizer 2023-11-03 20:27:45 +01:00
ScopedOperand.cpp LibJS/Bytecode: Reuse bytecode registers 2024-05-09 09:12:13 +02:00
ScopedOperand.h LibJS/Bytecode: Reuse bytecode registers 2024-05-09 09:12:13 +02:00
StringTable.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
StringTable.h Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30