LibJS: Remove unused bytecode VM register reservation

We were not actually using the "saved exception" register for anything,
but we were clearing it on every function entry.
This commit is contained in:
Andreas Kling 2025-04-29 16:18:59 +02:00 committed by Andreas Kling
parent e5465ff8e5
commit 00f7a6f9e0
Notes: github-actions[bot] 2025-04-30 07:39:40 +00:00

View file

@ -45,13 +45,7 @@ public:
return Register(return_value_index);
}
static constexpr Register saved_exception()
{
constexpr u32 saved_exception_index = 5;
return Register(saved_exception_index);
}
static constexpr u32 reserved_register_count = 6;
static constexpr u32 reserved_register_count = 5;
constexpr explicit Register(u32 index)
: m_index(index)