@@ -238,7 +238,7 @@ ecma_string_t *
238238ecma_new_ecma_string_from_number (ecma_number_t num ) /**< ecma-number */
239239{
240240 uint32_t uint32_num = ecma_number_to_uint32 (num );
241- if (num == ecma_uint32_to_number ( uint32_num ))
241+ if (num == (( ecma_number_t ) uint32_num ))
242242 {
243243 return ecma_new_ecma_string_from_uint32 (uint32_num );
244244 }
@@ -533,7 +533,7 @@ ecma_string_to_number (const ecma_string_t *str_p) /**< ecma-string */
533533 {
534534 uint32_t uint32_number = str_p -> u .uint32_number ;
535535
536- return ecma_uint32_to_number ( uint32_number );
536+ return (( ecma_number_t ) uint32_number );
537537 }
538538
539539 case ECMA_STRING_CONTAINER_HEAP_NUMBER :
@@ -1002,36 +1002,13 @@ ecma_compare_ecma_strings_longpath (const ecma_string_t *string1_p, /* ecma-stri
10021002 return is_equal ;
10031003} /* ecma_compare_ecma_strings_longpath */
10041004
1005- /**
1006- * Compare ecma-string to ecma-string if they're hashes are equal
1007- *
1008- * @return true - if strings are equal;
1009- * false - may be.
1010- */
1011- bool
1012- ecma_compare_ecma_strings_equal_hashes (const ecma_string_t * string1_p , /* ecma-string */
1013- const ecma_string_t * string2_p ) /* ecma-string */
1014- {
1015- JERRY_ASSERT (string1_p -> hash == string2_p -> hash );
1016-
1017- if (ECMA_STRING_GET_CONTAINER (string1_p ) == ECMA_STRING_GET_CONTAINER (string2_p )
1018- && string1_p -> u .common_field == string2_p -> u .common_field )
1019- {
1020- return true;
1021- }
1022- else
1023- {
1024- return false;
1025- }
1026- } /* ecma_compare_ecma_strings_equal_hashes */
1027-
10281005/**
10291006 * Compare ecma-string to ecma-string
10301007 *
10311008 * @return true - if strings are equal;
10321009 * false - otherwise.
10331010 */
1034- bool
1011+ bool __attr_always_inline___
10351012ecma_compare_ecma_strings (const ecma_string_t * string1_p , /* ecma-string */
10361013 const ecma_string_t * string2_p ) /* ecma-string */
10371014{
@@ -1042,14 +1019,13 @@ ecma_compare_ecma_strings (const ecma_string_t *string1_p, /* ecma-string */
10421019 return false;
10431020 }
10441021
1045- if (ecma_compare_ecma_strings_equal_hashes (string1_p , string2_p ))
1022+ if (ECMA_STRING_GET_CONTAINER (string1_p ) == ECMA_STRING_GET_CONTAINER (string2_p )
1023+ && string1_p -> u .common_field == string2_p -> u .common_field )
10461024 {
10471025 return true;
10481026 }
1049- else
1050- {
1051- return ecma_compare_ecma_strings_longpath (string1_p , string2_p );
1052- }
1027+
1028+ return ecma_compare_ecma_strings_longpath (string1_p , string2_p );
10531029} /* ecma_compare_ecma_strings */
10541030
10551031/**
0 commit comments