mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
LibJS: Precompute the number of regs/constants/locals in Executable
Instead of doing it again on every call. Minor bump in call performance.
This commit is contained in:
parent
cdcbbcf48b
commit
6671cbef41
Notes:
github-actions[bot]
2025-10-30 07:56:02 +00:00
Author: https://github.com/awesomekling
Commit: 6671cbef41
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6638
3 changed files with 5 additions and 1 deletions
|
|
@ -92,6 +92,8 @@ public:
|
|||
size_t number_of_registers { 0 };
|
||||
bool is_strict_mode { false };
|
||||
|
||||
size_t registers_and_constants_and_locals_count { 0 };
|
||||
|
||||
struct ExceptionHandlers {
|
||||
size_t start_offset;
|
||||
size_t end_offset;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue