ecma_make_boolean_value(bool) function is added in order to make ecma_value form a raw bool.

JerryScript-DCO-1.0-Signed-off-by: István Kádár ikadar@inf.u-szeged.hu
This commit is contained in:
István Kádár
2016-06-30 11:12:27 +02:00
parent c8db27c4af
commit a81c7c83d7
8 changed files with 28 additions and 27 deletions
+2 -4
View File
@@ -1735,8 +1735,7 @@ vm_loop (vm_frame_ctx_t *frame_ctx_p) /**< frame context */
{
bool is_equal = ecma_op_strict_equality_compare (left_value, right_value);
result = ecma_make_simple_value (is_equal ? ECMA_SIMPLE_VALUE_TRUE
: ECMA_SIMPLE_VALUE_FALSE);
result = ecma_make_boolean_value (is_equal);
*stack_top_p++ = result;
goto free_both_values;
@@ -1745,8 +1744,7 @@ vm_loop (vm_frame_ctx_t *frame_ctx_p) /**< frame context */
{
bool is_equal = ecma_op_strict_equality_compare (left_value, right_value);
result = ecma_make_simple_value (is_equal ? ECMA_SIMPLE_VALUE_FALSE
: ECMA_SIMPLE_VALUE_TRUE);
result = ecma_make_boolean_value (!is_equal);
*stack_top_p++ = result;
goto free_both_values;