@@ -87,7 +87,7 @@ ecma_builtin_array_prototype_helper_set_length (ecma_object_t *object, /**< obje
87
87
static ecma_value_t
88
88
ecma_builtin_array_prototype_object_to_string (ecma_value_t this_arg ) /**< this argument */
89
89
{
90
- ecma_value_t ret_value = ecma_make_simple_value ( ECMA_SIMPLE_VALUE_EMPTY ) ;
90
+ ecma_value_t ret_value = ECMA_VALUE_EMPTY ;
91
91
92
92
/* 1. */
93
93
ECMA_TRY_CATCH (obj_this_value ,
@@ -137,7 +137,7 @@ ecma_builtin_array_prototype_object_to_string (ecma_value_t this_arg) /**< this
137
137
static ecma_value_t
138
138
ecma_builtin_array_prototype_object_to_locale_string (const ecma_value_t this_arg ) /**< this argument */
139
139
{
140
- ecma_value_t ret_value = ecma_make_simple_value ( ECMA_SIMPLE_VALUE_EMPTY ) ;
140
+ ecma_value_t ret_value = ECMA_VALUE_EMPTY ;
141
141
142
142
/* 1. */
143
143
ECMA_TRY_CATCH (obj_value ,
@@ -237,7 +237,7 @@ ecma_builtin_array_prototype_object_concat (ecma_value_t this_arg, /**< this arg
237
237
const ecma_value_t args [], /**< arguments list */
238
238
ecma_length_t args_number ) /**< number of arguments */
239
239
{
240
- ecma_value_t ret_value = ecma_make_simple_value ( ECMA_SIMPLE_VALUE_EMPTY ) ;
240
+ ecma_value_t ret_value = ECMA_VALUE_EMPTY ;
241
241
242
242
/* 1. */
243
243
ECMA_TRY_CATCH (obj_this ,
@@ -321,7 +321,7 @@ static ecma_value_t
321
321
ecma_op_array_get_to_string_at_index (ecma_object_t * obj_p , /** < this object */
322
322
uint32_t index ) /** < array index */
323
323
{
324
- ecma_value_t ret_value = ecma_make_simple_value ( ECMA_SIMPLE_VALUE_EMPTY ) ;
324
+ ecma_value_t ret_value = ECMA_VALUE_EMPTY ;
325
325
ecma_string_t * index_string_p = ecma_new_ecma_string_from_uint32 (index );
326
326
327
327
ECMA_TRY_CATCH (index_value ,
@@ -359,7 +359,7 @@ static ecma_value_t
359
359
ecma_builtin_array_prototype_join (const ecma_value_t this_arg , /**< this argument */
360
360
const ecma_value_t separator_arg ) /** < separator argument */
361
361
{
362
- ecma_value_t ret_value = ecma_make_simple_value ( ECMA_SIMPLE_VALUE_EMPTY ) ;
362
+ ecma_value_t ret_value = ECMA_VALUE_EMPTY ;
363
363
364
364
/* 1. */
365
365
ECMA_TRY_CATCH (obj_value ,
@@ -464,7 +464,7 @@ ecma_builtin_array_prototype_join (const ecma_value_t this_arg, /**< this argume
464
464
static ecma_value_t
465
465
ecma_builtin_array_prototype_object_pop (ecma_value_t this_arg ) /**< this argument */
466
466
{
467
- ecma_value_t ret_value = ecma_make_simple_value ( ECMA_SIMPLE_VALUE_EMPTY ) ;
467
+ ecma_value_t ret_value = ECMA_VALUE_EMPTY ;
468
468
469
469
/* 1. */
470
470
ECMA_TRY_CATCH (obj_this ,
@@ -545,7 +545,7 @@ ecma_builtin_array_prototype_object_push (ecma_value_t this_arg, /**< this argum
545
545
const ecma_value_t * argument_list_p , /**< arguments list */
546
546
ecma_length_t arguments_number ) /**< number of arguments */
547
547
{
548
- ecma_value_t ret_value = ecma_make_simple_value ( ECMA_SIMPLE_VALUE_EMPTY ) ;
548
+ ecma_value_t ret_value = ECMA_VALUE_EMPTY ;
549
549
550
550
/* 1. */
551
551
ECMA_TRY_CATCH (obj_this_value , ecma_op_to_object (this_arg ), ret_value );
@@ -617,7 +617,7 @@ ecma_builtin_array_prototype_object_push (ecma_value_t this_arg, /**< this argum
617
617
static ecma_value_t
618
618
ecma_builtin_array_prototype_object_reverse (ecma_value_t this_arg ) /**< this argument */
619
619
{
620
- ecma_value_t ret_value = ecma_make_simple_value ( ECMA_SIMPLE_VALUE_EMPTY ) ;
620
+ ecma_value_t ret_value = ECMA_VALUE_EMPTY ;
621
621
622
622
/* 1. */
623
623
ECMA_TRY_CATCH (obj_this ,
@@ -713,7 +713,7 @@ ecma_builtin_array_prototype_object_reverse (ecma_value_t this_arg) /**< this ar
713
713
static ecma_value_t
714
714
ecma_builtin_array_prototype_object_shift (ecma_value_t this_arg ) /**< this argument */
715
715
{
716
- ecma_value_t ret_value = ecma_make_simple_value ( ECMA_SIMPLE_VALUE_EMPTY ) ;
716
+ ecma_value_t ret_value = ECMA_VALUE_EMPTY ;
717
717
718
718
/* 1. */
719
719
ECMA_TRY_CATCH (obj_this ,
@@ -828,7 +828,7 @@ ecma_builtin_array_prototype_object_slice (ecma_value_t this_arg, /**< 'this' ar
828
828
ecma_value_t arg1 , /**< start */
829
829
ecma_value_t arg2 ) /**< end */
830
830
{
831
- ecma_value_t ret_value = ecma_make_simple_value ( ECMA_SIMPLE_VALUE_EMPTY ) ;
831
+ ecma_value_t ret_value = ECMA_VALUE_EMPTY ;
832
832
833
833
/* 1. */
834
834
ECMA_TRY_CATCH (obj_this ,
@@ -950,7 +950,7 @@ ecma_builtin_array_prototype_object_sort_compare_helper (ecma_value_t j, /**< le
950
950
* compares greater than any other value, undefined property values always
951
951
* sort to the end of the result, followed by non-existent property values.
952
952
*/
953
- ecma_value_t ret_value = ecma_make_simple_value ( ECMA_SIMPLE_VALUE_EMPTY ) ;
953
+ ecma_value_t ret_value = ECMA_VALUE_EMPTY ;
954
954
ecma_number_t * result_p = ecma_alloc_number ();
955
955
956
956
bool j_is_undef = ecma_is_value_undefined (j );
@@ -1058,7 +1058,7 @@ ecma_builtin_array_prototype_object_array_to_heap_helper (ecma_value_t array[],
1058
1058
int right , /**< right index is a maximum index */
1059
1059
ecma_value_t comparefn ) /**< compare function */
1060
1060
{
1061
- ecma_value_t ret_value = ecma_make_simple_value ( ECMA_SIMPLE_VALUE_EMPTY ) ;
1061
+ ecma_value_t ret_value = ECMA_VALUE_EMPTY ;
1062
1062
1063
1063
/* Left child of the current index. */
1064
1064
int child = index * 2 + 1 ;
@@ -1146,7 +1146,7 @@ ecma_builtin_array_prototype_object_array_heap_sort_helper (ecma_value_t array[]
1146
1146
int right , /**< right index */
1147
1147
ecma_value_t comparefn ) /**< compare function */
1148
1148
{
1149
- ecma_value_t ret_value = ecma_make_simple_value ( ECMA_SIMPLE_VALUE_EMPTY ) ;
1149
+ ecma_value_t ret_value = ECMA_VALUE_EMPTY ;
1150
1150
1151
1151
/* First, construct the ordered binary tree from the array. */
1152
1152
for (int i = right / 2 ; i >= 0 && ecma_is_value_empty (ret_value ); i -- )
@@ -1203,7 +1203,7 @@ ecma_builtin_array_prototype_object_sort (ecma_value_t this_arg, /**< this argum
1203
1203
return ecma_raise_type_error ("" );
1204
1204
}
1205
1205
1206
- ecma_value_t ret_value = ecma_make_simple_value ( ECMA_SIMPLE_VALUE_EMPTY ) ;
1206
+ ecma_value_t ret_value = ECMA_VALUE_EMPTY ;
1207
1207
1208
1208
ECMA_TRY_CATCH (obj_this ,
1209
1209
ecma_op_to_object (this_arg ),
@@ -1354,7 +1354,7 @@ ecma_builtin_array_prototype_object_splice (ecma_value_t this_arg, /**< this arg
1354
1354
const ecma_value_t args [], /**< arguments list */
1355
1355
ecma_length_t args_number ) /**< number of arguments */
1356
1356
{
1357
- ecma_value_t ret_value = ecma_make_simple_value ( ECMA_SIMPLE_VALUE_EMPTY ) ;
1357
+ ecma_value_t ret_value = ECMA_VALUE_EMPTY ;
1358
1358
1359
1359
/* 1. */
1360
1360
ECMA_TRY_CATCH (obj_this ,
@@ -1643,7 +1643,7 @@ ecma_builtin_array_prototype_object_unshift (ecma_value_t this_arg, /**< this ar
1643
1643
const ecma_value_t args [], /**< arguments list */
1644
1644
ecma_length_t args_number ) /**< number of arguments */
1645
1645
{
1646
- ecma_value_t ret_value = ecma_make_simple_value ( ECMA_SIMPLE_VALUE_EMPTY ) ;
1646
+ ecma_value_t ret_value = ECMA_VALUE_EMPTY ;
1647
1647
1648
1648
/* 1. */
1649
1649
ECMA_TRY_CATCH (obj_this ,
@@ -1741,7 +1741,7 @@ ecma_builtin_array_prototype_object_index_of (ecma_value_t this_arg, /**< this a
1741
1741
ecma_value_t arg1 , /**< searchElement */
1742
1742
ecma_value_t arg2 ) /**< fromIndex */
1743
1743
{
1744
- ecma_value_t ret_value = ecma_make_simple_value ( ECMA_SIMPLE_VALUE_EMPTY ) ;
1744
+ ecma_value_t ret_value = ECMA_VALUE_EMPTY ;
1745
1745
1746
1746
/* 1. */
1747
1747
ECMA_TRY_CATCH (obj_this ,
@@ -1840,7 +1840,7 @@ ecma_builtin_array_prototype_object_last_index_of (ecma_value_t this_arg, /**< t
1840
1840
const ecma_value_t args [], /**< arguments list */
1841
1841
ecma_length_t args_number ) /**< number of arguments */
1842
1842
{
1843
- ecma_value_t ret_value = ecma_make_simple_value ( ECMA_SIMPLE_VALUE_EMPTY ) ;
1843
+ ecma_value_t ret_value = ECMA_VALUE_EMPTY ;
1844
1844
ecma_value_t search_element = (args_number > 0 ) ? args [0 ] : ecma_make_simple_value (ECMA_SIMPLE_VALUE_UNDEFINED );
1845
1845
1846
1846
/* 1. */
@@ -1991,7 +1991,7 @@ ecma_builtin_array_prototype_object_every (ecma_value_t this_arg, /**< this argu
1991
1991
ecma_value_t arg1 , /**< callbackfn */
1992
1992
ecma_value_t arg2 ) /**< thisArg */
1993
1993
{
1994
- ecma_value_t ret_value = ecma_make_simple_value ( ECMA_SIMPLE_VALUE_EMPTY ) ;
1994
+ ecma_value_t ret_value = ECMA_VALUE_EMPTY ;
1995
1995
1996
1996
/* 1. */
1997
1997
ECMA_TRY_CATCH (obj_this ,
@@ -2092,7 +2092,7 @@ ecma_builtin_array_prototype_object_some (ecma_value_t this_arg, /**< this argum
2092
2092
ecma_value_t arg1 , /**< callbackfn */
2093
2093
ecma_value_t arg2 ) /**< thisArg */
2094
2094
{
2095
- ecma_value_t ret_value = ecma_make_simple_value ( ECMA_SIMPLE_VALUE_EMPTY ) ;
2095
+ ecma_value_t ret_value = ECMA_VALUE_EMPTY ;
2096
2096
2097
2097
/* 1. */
2098
2098
ECMA_TRY_CATCH (obj_this ,
@@ -2193,7 +2193,7 @@ ecma_builtin_array_prototype_object_for_each (ecma_value_t this_arg, /**< this a
2193
2193
ecma_value_t arg1 , /**< callbackfn */
2194
2194
ecma_value_t arg2 ) /**< thisArg */
2195
2195
{
2196
- ecma_value_t ret_value = ecma_make_simple_value ( ECMA_SIMPLE_VALUE_EMPTY ) ;
2196
+ ecma_value_t ret_value = ECMA_VALUE_EMPTY ;
2197
2197
/* 1. */
2198
2198
ECMA_TRY_CATCH (obj_this ,
2199
2199
ecma_op_to_object (this_arg ),
@@ -2287,7 +2287,7 @@ ecma_builtin_array_prototype_object_map (ecma_value_t this_arg, /**< this argume
2287
2287
ecma_value_t arg1 , /**< callbackfn */
2288
2288
ecma_value_t arg2 ) /**< thisArg */
2289
2289
{
2290
- ecma_value_t ret_value = ecma_make_simple_value ( ECMA_SIMPLE_VALUE_EMPTY ) ;
2290
+ ecma_value_t ret_value = ECMA_VALUE_EMPTY ;
2291
2291
2292
2292
/* 1. */
2293
2293
ECMA_TRY_CATCH (obj_this ,
@@ -2401,7 +2401,7 @@ ecma_builtin_array_prototype_object_filter (ecma_value_t this_arg, /**< this arg
2401
2401
ecma_value_t arg1 , /**< callbackfn */
2402
2402
ecma_value_t arg2 ) /**< thisArg */
2403
2403
{
2404
- ecma_value_t ret_value = ecma_make_simple_value ( ECMA_SIMPLE_VALUE_EMPTY ) ;
2404
+ ecma_value_t ret_value = ECMA_VALUE_EMPTY ;
2405
2405
2406
2406
/* 1. */
2407
2407
ECMA_TRY_CATCH (obj_this ,
@@ -2524,7 +2524,7 @@ ecma_builtin_array_prototype_object_reduce (ecma_value_t this_arg, /**< this arg
2524
2524
const ecma_value_t args [], /**< arguments list */
2525
2525
ecma_length_t args_number ) /**< number of arguments */
2526
2526
{
2527
- ecma_value_t ret_value = ecma_make_simple_value ( ECMA_SIMPLE_VALUE_EMPTY ) ;
2527
+ ecma_value_t ret_value = ECMA_VALUE_EMPTY ;
2528
2528
ecma_value_t callbackfn = (args_number > 0 ) ? args [0 ] : ecma_make_simple_value (ECMA_SIMPLE_VALUE_UNDEFINED );
2529
2529
ecma_value_t initial_value = (args_number > 1 ) ? args [1 ] : ecma_make_simple_value (ECMA_SIMPLE_VALUE_UNDEFINED );
2530
2530
@@ -2669,7 +2669,7 @@ ecma_builtin_array_prototype_object_reduce_right (ecma_value_t this_arg, /**< th
2669
2669
const ecma_value_t args [], /**< arguments list */
2670
2670
ecma_length_t args_number ) /**< number of arguments */
2671
2671
{
2672
- ecma_value_t ret_value = ecma_make_simple_value ( ECMA_SIMPLE_VALUE_EMPTY ) ;
2672
+ ecma_value_t ret_value = ECMA_VALUE_EMPTY ;
2673
2673
ecma_value_t callbackfn = (args_number > 0 ) ? args [0 ] : ecma_make_simple_value (ECMA_SIMPLE_VALUE_UNDEFINED );
2674
2674
ecma_value_t initial_value = (args_number > 1 ) ? args [1 ] : ecma_make_simple_value (ECMA_SIMPLE_VALUE_UNDEFINED );
2675
2675
0 commit comments