Renaming rest camelCase-named identifiers according to underscore_named_value-naming.
This commit is contained in:
@@ -39,16 +39,16 @@ ecma_abstract_equality_compare(ecma_value_t x, /**< first operand */
|
||||
const bool is_x_undefined = ecma_is_value_undefined( x);
|
||||
const bool is_x_null = ecma_is_value_null( x);
|
||||
const bool is_x_boolean = ecma_is_value_boolean( x);
|
||||
const bool is_x_number = ( x.ValueType == ECMA_TYPE_NUMBER );
|
||||
const bool is_x_string = ( x.ValueType == ECMA_TYPE_STRING );
|
||||
const bool is_x_object = ( x.ValueType == ECMA_TYPE_OBJECT );
|
||||
const bool is_x_number = ( x.value_type == ECMA_TYPE_NUMBER );
|
||||
const bool is_x_string = ( x.value_type == ECMA_TYPE_STRING );
|
||||
const bool is_x_object = ( x.value_type == ECMA_TYPE_OBJECT );
|
||||
|
||||
const bool is_y_undefined = ecma_is_value_undefined( y);
|
||||
const bool is_y_null = ecma_is_value_null( y);
|
||||
const bool is_y_boolean = ecma_is_value_boolean( y);
|
||||
const bool is_y_number = ( y.ValueType == ECMA_TYPE_NUMBER );
|
||||
const bool is_y_string = ( y.ValueType == ECMA_TYPE_STRING );
|
||||
const bool is_y_object = ( y.ValueType == ECMA_TYPE_OBJECT );
|
||||
const bool is_y_number = ( y.value_type == ECMA_TYPE_NUMBER );
|
||||
const bool is_y_string = ( y.value_type == ECMA_TYPE_STRING );
|
||||
const bool is_y_object = ( y.value_type == ECMA_TYPE_OBJECT );
|
||||
|
||||
const bool is_types_equal = ( ( is_x_undefined && is_y_undefined )
|
||||
|| ( is_x_null && is_y_null )
|
||||
@@ -68,26 +68,26 @@ ecma_abstract_equality_compare(ecma_value_t x, /**< first operand */
|
||||
return true;
|
||||
} else if ( is_x_number )
|
||||
{ // c.
|
||||
ecma_number_t x_num = *(ecma_number_t*)( ecma_get_pointer(x.Value) );
|
||||
ecma_number_t y_num = *(ecma_number_t*)( ecma_get_pointer(y.Value) );
|
||||
ecma_number_t x_num = *(ecma_number_t*)( ecma_get_pointer(x.value) );
|
||||
ecma_number_t y_num = *(ecma_number_t*)( ecma_get_pointer(y.value) );
|
||||
|
||||
TODO( Implement according to ECMA );
|
||||
|
||||
return (x_num == y_num);
|
||||
} else if ( is_x_string )
|
||||
{ // d.
|
||||
ecma_array_first_chunk_t* x_str = (ecma_array_first_chunk_t*)( ecma_get_pointer(x.Value) );
|
||||
ecma_array_first_chunk_t* y_str = (ecma_array_first_chunk_t*)( ecma_get_pointer(y.Value) );
|
||||
ecma_array_first_chunk_t* x_str = (ecma_array_first_chunk_t*)( ecma_get_pointer(x.value) );
|
||||
ecma_array_first_chunk_t* y_str = (ecma_array_first_chunk_t*)( ecma_get_pointer(y.value) );
|
||||
|
||||
return ecma_compare_ecma_string_to_ecma_string( x_str, y_str);
|
||||
} else if ( is_x_boolean )
|
||||
{ // e.
|
||||
return ( x.Value == y.Value );
|
||||
return ( x.value == y.value );
|
||||
} else
|
||||
{ // f.
|
||||
JERRY_ASSERT( is_x_object );
|
||||
|
||||
return ( x.Value == y.Value );
|
||||
return ( x.value == y.value );
|
||||
}
|
||||
} else if ( ( is_x_null && is_y_undefined )
|
||||
|| ( is_x_undefined && is_y_null ) )
|
||||
|
||||
Reference in New Issue
Block a user