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:
@@ -3024,8 +3024,7 @@ parse_source_element_list (bool is_global, /**< flag, indicating that we parsing
|
|||||||
if (is_try_replace_local_vars_with_regs
|
if (is_try_replace_local_vars_with_regs
|
||||||
&& fe_scope_tree->type == SCOPE_TYPE_FUNCTION)
|
&& fe_scope_tree->type == SCOPE_TYPE_FUNCTION)
|
||||||
{
|
{
|
||||||
bool may_replace_vars_with_regs = (!inside_eval
|
bool may_replace_vars_with_regs = (!fe_scope_tree->ref_eval /* 'eval' can reference variables in a way,
|
||||||
&& !fe_scope_tree->ref_eval /* 'eval' can reference variables in a way,
|
|
||||||
* that can't be figured out through static
|
* that can't be figured out through static
|
||||||
* analysis */
|
* analysis */
|
||||||
&& !fe_scope_tree->ref_arguments /* 'arguments' variable, if declared,
|
&& !fe_scope_tree->ref_arguments /* 'arguments' variable, if declared,
|
||||||
|
|||||||
Reference in New Issue
Block a user