1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 23:28:11 +00:00

LibJS: Always keep the global object in bytecode VM register $1

This commit is contained in:
Andreas Kling 2021-06-10 01:07:53 +02:00
parent b3e6a6c1cd
commit 22c803d8e5
3 changed files with 9 additions and 1 deletions

View file

@ -99,7 +99,7 @@ private:
NonnullOwnPtrVector<BasicBlock> m_root_basic_blocks;
NonnullOwnPtr<StringTable> m_string_table;
u32 m_next_register { 1 };
u32 m_next_register { 2 };
u32 m_next_block { 1 };
Vector<Label> m_continuable_scopes;
Vector<Label> m_breakable_scopes;