Performing do_strict_eval_or_arguments_check check only under !JERRY_NDEBUG.

This commit is contained in:
Ruben Ayrapetyan
2014-11-13 14:28:45 +03:00
parent 83c8007437
commit 11f0cf9a2d
+5 -15
View File
@@ -101,16 +101,11 @@ get_variable_value (int_data_t *int_data, /**< interpreter context */
var_name_string_p, var_name_string_p,
int_data->is_strict); int_data->is_strict);
if (unlikely (do_eval_or_arguments_check
&& do_strict_eval_arguments_check (ref)))
{
/* SyntaxError should be treated as an early error */ /* SyntaxError should be treated as an early error */
JERRY_UNREACHABLE (); JERRY_ASSERT (!do_eval_or_arguments_check
} || !do_strict_eval_arguments_check (ref));
else
{
ret_value = ecma_op_get_value (ref); ret_value = ecma_op_get_value (ref);
}
ecma_deref_ecma_string (var_name_string_p); ecma_deref_ecma_string (var_name_string_p);
ecma_free_reference (ref); ecma_free_reference (ref);
@@ -155,15 +150,10 @@ set_variable_value (int_data_t *int_data, /**< interpreter context */
var_name_string_p, var_name_string_p,
int_data->is_strict); int_data->is_strict);
if (unlikely (do_strict_eval_arguments_check (ref)))
{
/* SyntaxError should be treated as an early error */ /* SyntaxError should be treated as an early error */
JERRY_UNREACHABLE (); JERRY_ASSERT (!do_strict_eval_arguments_check (ref));
}
else
{
ret_value = ecma_op_put_value (ref, value); ret_value = ecma_op_put_value (ref, value);
}
ecma_deref_ecma_string (var_name_string_p); ecma_deref_ecma_string (var_name_string_p);
ecma_free_reference (ref); ecma_free_reference (ref);