Renaming ecma_compare_ecma_string_to_ecma_string to ecma_compare_ecma_strings.
This commit is contained in:
@@ -177,8 +177,8 @@ ecma_op_array_object_define_own_property (ecma_object_t *obj_p, /**< the array o
|
||||
uint32_t old_len_uint32 = ecma_number_to_uint32 (*num_p);
|
||||
|
||||
// 3.
|
||||
bool is_property_name_equal_length = (ecma_compare_ecma_string_to_ecma_string (property_name_p,
|
||||
magic_string_length_p) == 0);
|
||||
bool is_property_name_equal_length = (ecma_compare_ecma_strings (property_name_p,
|
||||
magic_string_length_p) == 0);
|
||||
|
||||
ecma_deref_ecma_string (magic_string_length_p);
|
||||
|
||||
|
||||
@@ -101,7 +101,7 @@ ecma_op_abstract_equality_compare (ecma_value_t x, /**< first operand */
|
||||
ecma_string_t* x_str_p = ECMA_GET_POINTER(x.value);
|
||||
ecma_string_t* y_str_p = ECMA_GET_POINTER(y.value);
|
||||
|
||||
bool is_equal = ecma_compare_ecma_string_to_ecma_string (x_str_p, y_str_p);
|
||||
bool is_equal = ecma_compare_ecma_strings (x_str_p, y_str_p);
|
||||
|
||||
ret_value = ecma_make_simple_completion_value (is_equal ? ECMA_SIMPLE_VALUE_TRUE : ECMA_SIMPLE_VALUE_FALSE);
|
||||
}
|
||||
@@ -272,7 +272,7 @@ ecma_op_strict_equality_compare (ecma_value_t x, /**< first operand */
|
||||
ecma_string_t* x_str_p = ECMA_GET_POINTER (x.value);
|
||||
ecma_string_t* y_str_p = ECMA_GET_POINTER (y.value);
|
||||
|
||||
return ecma_compare_ecma_string_to_ecma_string (x_str_p, y_str_p);
|
||||
return ecma_compare_ecma_strings (x_str_p, y_str_p);
|
||||
}
|
||||
|
||||
// 6. If Type (x) is Boolean, return true if x and y are both true or both false; otherwise, return false.
|
||||
@@ -351,7 +351,7 @@ ecma_op_abstract_relational_compare (ecma_value_t x, /**< first operand */
|
||||
ecma_string_t *str_x_p = ECMA_GET_POINTER (px.u.value.value);
|
||||
ecma_string_t *str_y_p = ECMA_GET_POINTER (py.u.value.value);
|
||||
|
||||
bool is_px_less = ecma_compare_ecma_string_to_ecma_string_relational (str_x_p, str_y_p);
|
||||
bool is_px_less = ecma_compare_ecma_strings_relational (str_x_p, str_y_p);
|
||||
|
||||
ret_value = ecma_make_simple_completion_value (is_px_less ? ECMA_SIMPLE_VALUE_TRUE
|
||||
: ECMA_SIMPLE_VALUE_FALSE);
|
||||
|
||||
@@ -147,7 +147,7 @@ ecma_op_same_value (ecma_value_t x, /**< ecma-value */
|
||||
ecma_string_t* x_str_p = ECMA_GET_POINTER(x.value);
|
||||
ecma_string_t* y_str_p = ECMA_GET_POINTER(y.value);
|
||||
|
||||
return ecma_compare_ecma_string_to_ecma_string (x_str_p, y_str_p);
|
||||
return ecma_compare_ecma_strings (x_str_p, y_str_p);
|
||||
}
|
||||
|
||||
if (is_x_boolean)
|
||||
|
||||
@@ -155,7 +155,7 @@ ecma_create_arguments_object (ecma_object_t *func_obj_p, /**< callee function */
|
||||
indx2 < formal_params_number;
|
||||
indx2++)
|
||||
{
|
||||
if (ecma_compare_ecma_string_to_ecma_string (name_p, formal_params[indx2]))
|
||||
if (ecma_compare_ecma_strings (name_p, formal_params[indx2]))
|
||||
{
|
||||
is_first_occurence = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user