@@ -60,7 +60,7 @@ ecma_builtin_array_prototype_helper_set_length (ecma_object_t *object, /**< obje
6060 ecma_number_t length ) /**< new length */
6161{
6262 ecma_value_t ret_value ;
63- ecma_string_t * magic_string_length_p = ecma_get_magic_string ( LIT_MAGIC_STRING_LENGTH );
63+ ecma_string_t * magic_string_length_p = ecma_new_ecma_length_string ( );
6464
6565 ecma_value_t length_value = ecma_make_number_value (length );
6666 ret_value = ecma_op_object_put (object ,
@@ -145,7 +145,7 @@ ecma_builtin_array_prototype_object_to_locale_string (const ecma_value_t this_ar
145145
146146 ecma_object_t * obj_p = ecma_get_object_from_value (obj_value );
147147
148- ecma_string_t * length_magic_string_p = ecma_get_magic_string ( LIT_MAGIC_STRING_LENGTH );
148+ ecma_string_t * length_magic_string_p = ecma_new_ecma_length_string ( );
149149
150150 /* 2. */
151151 ECMA_TRY_CATCH (length_value ,
@@ -369,7 +369,7 @@ ecma_builtin_array_prototype_join (const ecma_value_t this_arg, /**< this argume
369369
370370 ecma_object_t * obj_p = ecma_get_object_from_value (obj_value );
371371
372- ecma_string_t * length_magic_string_p = ecma_get_magic_string ( LIT_MAGIC_STRING_LENGTH );
372+ ecma_string_t * length_magic_string_p = ecma_new_ecma_length_string ( );
373373
374374 /* 2. */
375375 ECMA_TRY_CATCH (length_value ,
@@ -474,7 +474,7 @@ ecma_builtin_array_prototype_object_pop (ecma_value_t this_arg) /**< this argume
474474 ret_value );
475475
476476 ecma_object_t * obj_p = ecma_get_object_from_value (obj_this );
477- ecma_string_t * magic_string_length_p = ecma_get_magic_string ( LIT_MAGIC_STRING_LENGTH );
477+ ecma_string_t * magic_string_length_p = ecma_new_ecma_length_string ( );
478478
479479 /* 2. */
480480 ECMA_TRY_CATCH (len_value ,
@@ -555,7 +555,7 @@ ecma_builtin_array_prototype_object_push (ecma_value_t this_arg, /**< this argum
555555 ecma_object_t * obj_p = ecma_get_object_from_value (obj_this_value );
556556
557557 /* 2. */
558- ecma_string_t * length_str_p = ecma_new_ecma_string_from_magic_string_id ( LIT_MAGIC_STRING_LENGTH );
558+ ecma_string_t * length_str_p = ecma_new_ecma_length_string ( );
559559
560560 ECMA_TRY_CATCH (length_value , ecma_op_object_get (obj_p , length_str_p ), ret_value );
561561
@@ -624,7 +624,7 @@ ecma_builtin_array_prototype_object_reverse (ecma_value_t this_arg) /**< this ar
624624 ret_value );
625625
626626 ecma_object_t * obj_p = ecma_get_object_from_value (obj_this );
627- ecma_string_t * magic_string_length_p = ecma_get_magic_string ( LIT_MAGIC_STRING_LENGTH );
627+ ecma_string_t * magic_string_length_p = ecma_new_ecma_length_string ( );
628628
629629 /* 2. */
630630 ECMA_TRY_CATCH (len_value ,
@@ -720,7 +720,7 @@ ecma_builtin_array_prototype_object_shift (ecma_value_t this_arg) /**< this argu
720720 ret_value );
721721
722722 ecma_object_t * obj_p = ecma_get_object_from_value (obj_this );
723- ecma_string_t * magic_string_length_p = ecma_get_magic_string ( LIT_MAGIC_STRING_LENGTH );
723+ ecma_string_t * magic_string_length_p = ecma_new_ecma_length_string ( );
724724
725725 /* 2. */
726726 ECMA_TRY_CATCH (len_value ,
@@ -835,7 +835,7 @@ ecma_builtin_array_prototype_object_slice (ecma_value_t this_arg, /**< 'this' ar
835835 ret_value );
836836
837837 ecma_object_t * obj_p = ecma_get_object_from_value (obj_this );
838- ecma_string_t * length_magic_string_p = ecma_get_magic_string ( LIT_MAGIC_STRING_LENGTH );
838+ ecma_string_t * length_magic_string_p = ecma_new_ecma_length_string ( );
839839
840840 ECMA_TRY_CATCH (len_value ,
841841 ecma_op_object_get (obj_p , length_magic_string_p ),
@@ -1205,7 +1205,7 @@ ecma_builtin_array_prototype_object_sort (ecma_value_t this_arg, /**< this argum
12051205 ret_value );
12061206
12071207 ecma_object_t * obj_p = ecma_get_object_from_value (obj_this );
1208- ecma_string_t * magic_string_length_p = ecma_get_magic_string ( LIT_MAGIC_STRING_LENGTH );
1208+ ecma_string_t * magic_string_length_p = ecma_new_ecma_length_string ( );
12091209
12101210 ECMA_TRY_CATCH (len_value ,
12111211 ecma_op_object_get (obj_p , magic_string_length_p ),
@@ -1359,7 +1359,7 @@ ecma_builtin_array_prototype_object_splice (ecma_value_t this_arg, /**< this arg
13591359 ecma_object_t * obj_p = ecma_get_object_from_value (obj_this );
13601360
13611361 /* 3. */
1362- ecma_string_t * length_magic_string_p = ecma_get_magic_string ( LIT_MAGIC_STRING_LENGTH );
1362+ ecma_string_t * length_magic_string_p = ecma_new_ecma_length_string ( );
13631363
13641364 ECMA_TRY_CATCH (len_value ,
13651365 ecma_op_object_get (obj_p , length_magic_string_p ),
@@ -1646,7 +1646,7 @@ ecma_builtin_array_prototype_object_unshift (ecma_value_t this_arg, /**< this ar
16461646 ret_value );
16471647
16481648 ecma_object_t * obj_p = ecma_get_object_from_value (obj_this );
1649- ecma_string_t * magic_string_length_p = ecma_get_magic_string ( LIT_MAGIC_STRING_LENGTH );
1649+ ecma_string_t * magic_string_length_p = ecma_new_ecma_length_string ( );
16501650
16511651 /* 2. */
16521652 ECMA_TRY_CATCH (len_value ,
@@ -1742,7 +1742,7 @@ ecma_builtin_array_prototype_object_index_of (ecma_value_t this_arg, /**< this a
17421742 ret_value );
17431743
17441744 ecma_object_t * obj_p = ecma_get_object_from_value (obj_this );
1745- ecma_string_t * magic_string_length_p = ecma_get_magic_string ( LIT_MAGIC_STRING_LENGTH );
1745+ ecma_string_t * magic_string_length_p = ecma_new_ecma_length_string ( );
17461746
17471747 /* 2. */
17481748 ECMA_TRY_CATCH (len_value ,
@@ -1838,7 +1838,7 @@ ecma_builtin_array_prototype_object_last_index_of (ecma_value_t this_arg, /**< t
18381838 ret_value );
18391839
18401840 ecma_object_t * obj_p = ecma_get_object_from_value (obj_this );
1841- ecma_string_t * magic_string_length_p = ecma_get_magic_string ( LIT_MAGIC_STRING_LENGTH );
1841+ ecma_string_t * magic_string_length_p = ecma_new_ecma_length_string ( );
18421842
18431843 /* 2. */
18441844 ECMA_TRY_CATCH (len_value ,
@@ -1983,7 +1983,7 @@ ecma_builtin_array_prototype_object_every (ecma_value_t this_arg, /**< this argu
19831983 ret_value );
19841984
19851985 ecma_object_t * obj_p = ecma_get_object_from_value (obj_this );
1986- ecma_string_t * magic_string_length_p = ecma_get_magic_string ( LIT_MAGIC_STRING_LENGTH );
1986+ ecma_string_t * magic_string_length_p = ecma_new_ecma_length_string ( );
19871987
19881988 /* 2. */
19891989 ECMA_TRY_CATCH (len_value ,
@@ -2081,7 +2081,7 @@ ecma_builtin_array_prototype_object_some (ecma_value_t this_arg, /**< this argum
20812081 ret_value );
20822082
20832083 ecma_object_t * obj_p = ecma_get_object_from_value (obj_this );
2084- ecma_string_t * magic_string_length_p = ecma_get_magic_string ( LIT_MAGIC_STRING_LENGTH );
2084+ ecma_string_t * magic_string_length_p = ecma_new_ecma_length_string ( );
20852085
20862086 /* 2. */
20872087 ECMA_TRY_CATCH (len_value ,
@@ -2178,7 +2178,7 @@ ecma_builtin_array_prototype_object_for_each (ecma_value_t this_arg, /**< this a
21782178 ret_value );
21792179
21802180 ecma_object_t * obj_p = ecma_get_object_from_value (obj_this );
2181- ecma_string_t * magic_string_length_p = ecma_get_magic_string ( LIT_MAGIC_STRING_LENGTH );
2181+ ecma_string_t * magic_string_length_p = ecma_new_ecma_length_string ( );
21822182
21832183 /* 2. */
21842184 ECMA_TRY_CATCH (len_value ,
@@ -2270,7 +2270,7 @@ ecma_builtin_array_prototype_object_map (ecma_value_t this_arg, /**< this argume
22702270 ret_value );
22712271
22722272 ecma_object_t * obj_p = ecma_get_object_from_value (obj_this );
2273- ecma_string_t * magic_string_length_p = ecma_get_magic_string ( LIT_MAGIC_STRING_LENGTH );
2273+ ecma_string_t * magic_string_length_p = ecma_new_ecma_length_string ( );
22742274
22752275 /* 2. */
22762276 ECMA_TRY_CATCH (len_value ,
@@ -2380,7 +2380,7 @@ ecma_builtin_array_prototype_object_filter (ecma_value_t this_arg, /**< this arg
23802380 ret_value );
23812381
23822382 ecma_object_t * obj_p = ecma_get_object_from_value (obj_this );
2383- ecma_string_t * magic_string_length_p = ecma_get_magic_string ( LIT_MAGIC_STRING_LENGTH );
2383+ ecma_string_t * magic_string_length_p = ecma_new_ecma_length_string ( );
23842384
23852385 /* 2. */
23862386 ECMA_TRY_CATCH (len_value ,
@@ -2501,7 +2501,7 @@ ecma_builtin_array_prototype_object_reduce (ecma_value_t this_arg, /**< this arg
25012501 ret_value );
25022502
25032503 ecma_object_t * obj_p = ecma_get_object_from_value (obj_this );
2504- ecma_string_t * magic_string_length_p = ecma_get_magic_string ( LIT_MAGIC_STRING_LENGTH );
2504+ ecma_string_t * magic_string_length_p = ecma_new_ecma_length_string ( );
25052505
25062506 /* 2. */
25072507 ECMA_TRY_CATCH (len_value ,
@@ -2643,7 +2643,7 @@ ecma_builtin_array_prototype_object_reduce_right (ecma_value_t this_arg, /**< th
26432643 ret_value );
26442644
26452645 ecma_object_t * obj_p = ecma_get_object_from_value (obj_this );
2646- ecma_string_t * magic_string_length_p = ecma_get_magic_string ( LIT_MAGIC_STRING_LENGTH );
2646+ ecma_string_t * magic_string_length_p = ecma_new_ecma_length_string ( );
26472647
26482648 /* 2. */
26492649 ECMA_TRY_CATCH (len_value ,
0 commit comments