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
commit 22c803d8e5
Notes: sideshowbarker 2024-07-18 12:28:46 +09:00
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;