LibJS: Skip ordinary_call_bind_this() when possible

If during parsing it was found that function won't use `this` then
there is no need to initialise `this_value` during call.
This commit is contained in:
Aliaksandr Kalenik 2024-05-22 18:50:45 +01:00 committed by Andreas Kling
commit f29ac8517e
Notes: sideshowbarker 2024-07-16 19:17:47 +09:00
6 changed files with 25 additions and 16 deletions

View file

@ -164,6 +164,7 @@ private:
bool m_arguments_object_needed { false };
bool m_is_module_wrapper { false };
bool m_function_environment_needed { false };
bool m_uses_this { false };
Vector<VariableNameToInitialize> m_var_names_to_initialize_binding;
Vector<DeprecatedFlyString> m_function_names_to_initialize_binding;