mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-04-05 04:06:08 +00:00
LibJS: Don't add uncaptured parameter bindings to environment
For parameters that exist strictly as "locals", we can save time and space by not adding them to the function environment. This is a speed-up across the board on basically every test. For example, ~11% on Octane/typescript.js :^)
This commit is contained in:
@@ -153,7 +153,11 @@ private:
|
||||
|
||||
bool m_has_parameter_expressions { false };
|
||||
bool m_has_duplicates { false };
|
||||
HashTable<DeprecatedFlyString> m_parameter_names;
|
||||
enum class ParameterIsLocal {
|
||||
No,
|
||||
Yes,
|
||||
};
|
||||
HashMap<DeprecatedFlyString, ParameterIsLocal> m_parameter_names;
|
||||
Vector<FunctionDeclaration const&> m_functions_to_initialize;
|
||||
bool m_arguments_object_needed { false };
|
||||
bool m_is_module_wrapper { false };
|
||||
|
||||
Reference in New Issue
Block a user