mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-24 09:52:31 +00:00
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:
parent
e5465ff8e5
commit
00f7a6f9e0
Notes:
github-actions[bot]
2025-04-30 07:39:40 +00:00
Author: https://github.com/awesomekling
Commit: 00f7a6f9e0
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4526
1 changed files with 1 additions and 7 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue