mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
Remove inside_eval from limitations on var-to-reg optimization.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
This commit is contained in:
parent
fdf38ab2eb
commit
9da91d0834
@ -3024,8 +3024,7 @@ parse_source_element_list (bool is_global, /**< flag, indicating that we parsing
|
||||
if (is_try_replace_local_vars_with_regs
|
||||
&& fe_scope_tree->type == SCOPE_TYPE_FUNCTION)
|
||||
{
|
||||
bool may_replace_vars_with_regs = (!inside_eval
|
||||
&& !fe_scope_tree->ref_eval /* 'eval' can reference variables in a way,
|
||||
bool may_replace_vars_with_regs = (!fe_scope_tree->ref_eval /* 'eval' can reference variables in a way,
|
||||
* that can't be figured out through static
|
||||
* analysis */
|
||||
&& !fe_scope_tree->ref_arguments /* 'arguments' variable, if declared,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user