Representing ecma_completion_value_t as integer instead of structure with bit-fields, adding corresponding field accessors; adding __attribute_const__ to some value handling helpers.

This commit is contained in:
Ruben Ayrapetyan
2014-11-27 18:20:12 +03:00
parent 0d870a1e74
commit 1f3d96cffa
7 changed files with 237 additions and 126 deletions
+3 -1
View File
@@ -322,7 +322,7 @@ ecma_op_abstract_relational_compare (ecma_value_t x, /**< first operand */
ecma_value_t y, /**< second operand */
bool left_first) /**< 'LeftFirst' flag */
{
ecma_completion_value_t ret_value, px, py;
ecma_completion_value_t ret_value;
ecma_value_t first_converted_value = left_first ? x : y;
ecma_value_t second_converted_value = left_first ? y : x;
@@ -335,6 +335,8 @@ ecma_op_abstract_relational_compare (ecma_value_t x, /**< first operand */
ecma_op_to_primitive (second_converted_value, ECMA_PREFERRED_TYPE_NUMBER),
ret_value);
ecma_completion_value_t px, py;
px = left_first ? prim_first_converted_value : prim_second_converted_value;
py = left_first ? prim_second_converted_value : prim_first_converted_value;