1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:07:35 +00:00

LibJS/JIT: Fast path for boolean JS::Value in compile_to_boolean()

This commit is contained in:
Andreas Kling 2023-10-15 18:23:16 +02:00
parent babdc0a25b
commit f9041c7b31
3 changed files with 142 additions and 6 deletions

View file

@ -34,7 +34,7 @@ private:
void store_vm_local(size_t, Assembler::Reg);
void load_vm_local(Assembler::Reg, size_t);
void compile_to_boolean(Assembler::Reg);
void compile_to_boolean(Assembler::Reg dst, Assembler::Reg src);
Vector<u8> m_output;
Assembler m_assembler { m_output };