61
61
* Returned value must be freed with ecma_free_value.
62
62
*/
63
63
static ecma_value_t
64
- ecma_builtin_global_object_print (ecma_value_t this_arg __attr_unused___ , /**< this argument */
64
+ ecma_builtin_global_object_print (ecma_value_t this_arg , /**< this argument */
65
65
const ecma_value_t args [], /**< arguments list */
66
66
ecma_length_t args_number ) /**< number of arguments */
67
67
{
68
+ JERRY_UNUSED (this_arg );
68
69
ecma_value_t ret_value = ecma_make_simple_value (ECMA_SIMPLE_VALUE_EMPTY );
69
70
70
71
/* TODO: Move the 'print' routine out of engine core. */
@@ -148,9 +149,10 @@ ecma_builtin_global_object_print (ecma_value_t this_arg __attr_unused___, /**< t
148
149
* Returned value must be freed with ecma_free_value.
149
150
*/
150
151
static ecma_value_t
151
- ecma_builtin_global_object_eval (ecma_value_t this_arg __attr_unused___ , /**< this argument */
152
+ ecma_builtin_global_object_eval (ecma_value_t this_arg , /**< this argument */
152
153
ecma_value_t x ) /**< routine's first argument */
153
154
{
155
+ JERRY_UNUSED (this_arg );
154
156
ecma_value_t ret_value = ecma_make_simple_value (ECMA_SIMPLE_VALUE_EMPTY );
155
157
156
158
bool is_direct_eval = vm_is_direct_eval_form_call ();
@@ -192,10 +194,11 @@ ecma_builtin_global_object_eval (ecma_value_t this_arg __attr_unused___, /**< th
192
194
* Returned value must be freed with ecma_free_value.
193
195
*/
194
196
static ecma_value_t
195
- ecma_builtin_global_object_parse_int (ecma_value_t this_arg __attr_unused___ , /**< this argument */
197
+ ecma_builtin_global_object_parse_int (ecma_value_t this_arg , /**< this argument */
196
198
ecma_value_t string , /**< routine's first argument */
197
199
ecma_value_t radix ) /**< routine's second argument */
198
200
{
201
+ JERRY_UNUSED (this_arg );
199
202
ecma_value_t ret_value = ecma_make_simple_value (ECMA_SIMPLE_VALUE_EMPTY );
200
203
201
204
/* 1. */
@@ -403,9 +406,10 @@ ecma_builtin_global_object_parse_int (ecma_value_t this_arg __attr_unused___, /*
403
406
* Returned value must be freed with ecma_free_value.
404
407
*/
405
408
static ecma_value_t
406
- ecma_builtin_global_object_parse_float (ecma_value_t this_arg __attr_unused___ , /**< this argument */
409
+ ecma_builtin_global_object_parse_float (ecma_value_t this_arg , /**< this argument */
407
410
ecma_value_t string ) /**< routine's first argument */
408
411
{
412
+ JERRY_UNUSED (this_arg );
409
413
ecma_value_t ret_value = ecma_make_simple_value (ECMA_SIMPLE_VALUE_EMPTY );
410
414
411
415
/* 1. */
@@ -621,9 +625,10 @@ ecma_builtin_global_object_parse_float (ecma_value_t this_arg __attr_unused___,
621
625
* Returned value must be freed with ecma_free_value.
622
626
*/
623
627
static ecma_value_t
624
- ecma_builtin_global_object_is_nan (ecma_value_t this_arg __attr_unused___ , /**< this argument */
628
+ ecma_builtin_global_object_is_nan (ecma_value_t this_arg , /**< this argument */
625
629
ecma_value_t arg ) /**< routine's first argument */
626
630
{
631
+ JERRY_UNUSED (this_arg );
627
632
ecma_value_t ret_value = ecma_make_simple_value (ECMA_SIMPLE_VALUE_EMPTY );
628
633
629
634
ECMA_OP_TO_NUMBER_TRY_CATCH (arg_num , arg , ret_value );
@@ -648,9 +653,10 @@ ecma_builtin_global_object_is_nan (ecma_value_t this_arg __attr_unused___, /**<
648
653
* Returned value must be freed with ecma_free_value.
649
654
*/
650
655
static ecma_value_t
651
- ecma_builtin_global_object_is_finite (ecma_value_t this_arg __attr_unused___ , /**< this argument */
656
+ ecma_builtin_global_object_is_finite (ecma_value_t this_arg , /**< this argument */
652
657
ecma_value_t arg ) /**< routine's first argument */
653
658
{
659
+ JERRY_UNUSED (this_arg );
654
660
ecma_value_t ret_value = ecma_make_simple_value (ECMA_SIMPLE_VALUE_EMPTY );
655
661
656
662
ECMA_OP_TO_NUMBER_TRY_CATCH (arg_num , arg , ret_value );
@@ -720,9 +726,10 @@ static const uint8_t unescaped_uri_component_set[16] =
720
726
* Returned value must be freed with ecma_free_value.
721
727
*/
722
728
static ecma_value_t
723
- ecma_builtin_global_object_decode_uri_helper (ecma_value_t uri __attr_unused___ , /**< uri argument */
729
+ ecma_builtin_global_object_decode_uri_helper (ecma_value_t uri , /**< uri argument */
724
730
const uint8_t * reserved_uri_bitset ) /**< reserved characters bitset */
725
731
{
732
+ JERRY_UNUSED (uri );
726
733
ecma_value_t ret_value = ecma_make_simple_value (ECMA_SIMPLE_VALUE_EMPTY );
727
734
728
735
ECMA_TRY_CATCH (string ,
@@ -949,9 +956,10 @@ ecma_builtin_global_object_decode_uri_helper (ecma_value_t uri __attr_unused___,
949
956
* Returned value must be freed with ecma_free_value.
950
957
*/
951
958
static ecma_value_t
952
- ecma_builtin_global_object_decode_uri (ecma_value_t this_arg __attr_unused___ , /**< this argument */
959
+ ecma_builtin_global_object_decode_uri (ecma_value_t this_arg , /**< this argument */
953
960
ecma_value_t encoded_uri ) /**< routine's first argument */
954
961
{
962
+ JERRY_UNUSED (this_arg );
955
963
return ecma_builtin_global_object_decode_uri_helper (encoded_uri , unescaped_uri_set );
956
964
} /* ecma_builtin_global_object_decode_uri */
957
965
@@ -965,10 +973,11 @@ ecma_builtin_global_object_decode_uri (ecma_value_t this_arg __attr_unused___, /
965
973
* Returned value must be freed with ecma_free_value.
966
974
*/
967
975
static ecma_value_t
968
- ecma_builtin_global_object_decode_uri_component (ecma_value_t this_arg __attr_unused___ , /**< this argument */
976
+ ecma_builtin_global_object_decode_uri_component (ecma_value_t this_arg , /**< this argument */
969
977
ecma_value_t encoded_uri_component ) /**< routine's
970
978
* first argument */
971
979
{
980
+ JERRY_UNUSED (this_arg );
972
981
return ecma_builtin_global_object_decode_uri_helper (encoded_uri_component , unescaped_uri_component_set );
973
982
} /* ecma_builtin_global_object_decode_uri_component */
974
983
@@ -1159,9 +1168,10 @@ ecma_builtin_global_object_encode_uri_helper (ecma_value_t uri, /**< uri argumen
1159
1168
* Returned value must be freed with ecma_free_value.
1160
1169
*/
1161
1170
static ecma_value_t
1162
- ecma_builtin_global_object_encode_uri (ecma_value_t this_arg __attr_unused___ , /**< this argument */
1171
+ ecma_builtin_global_object_encode_uri (ecma_value_t this_arg , /**< this argument */
1163
1172
ecma_value_t uri ) /**< routine's first argument */
1164
1173
{
1174
+ JERRY_UNUSED (this_arg );
1165
1175
return ecma_builtin_global_object_encode_uri_helper (uri , unescaped_uri_set );
1166
1176
} /* ecma_builtin_global_object_encode_uri */
1167
1177
@@ -1175,9 +1185,10 @@ ecma_builtin_global_object_encode_uri (ecma_value_t this_arg __attr_unused___, /
1175
1185
* Returned value must be freed with ecma_free_value.
1176
1186
*/
1177
1187
static ecma_value_t
1178
- ecma_builtin_global_object_encode_uri_component (ecma_value_t this_arg __attr_unused___ , /**< this argument */
1188
+ ecma_builtin_global_object_encode_uri_component (ecma_value_t this_arg , /**< this argument */
1179
1189
ecma_value_t uri_component ) /**< routine's first argument */
1180
1190
{
1191
+ JERRY_UNUSED (this_arg );
1181
1192
return ecma_builtin_global_object_encode_uri_helper (uri_component , unescaped_uri_component_set );
1182
1193
} /* ecma_builtin_global_object_encode_uri_component */
1183
1194
@@ -1215,9 +1226,10 @@ static const uint8_t ecma_escape_set[16] =
1215
1226
* Returned value must be freed with ecma_free_value.
1216
1227
*/
1217
1228
static ecma_value_t
1218
- ecma_builtin_global_object_escape (ecma_value_t this_arg __attr_unused___ , /**< this argument */
1229
+ ecma_builtin_global_object_escape (ecma_value_t this_arg , /**< this argument */
1219
1230
ecma_value_t arg ) /**< routine's first argument */
1220
1231
{
1232
+ JERRY_UNUSED (this_arg );
1221
1233
ecma_value_t ret_value = ecma_make_simple_value (ECMA_SIMPLE_VALUE_EMPTY );
1222
1234
1223
1235
ECMA_TRY_CATCH (string ,
@@ -1335,9 +1347,10 @@ ecma_builtin_global_object_escape (ecma_value_t this_arg __attr_unused___, /**<
1335
1347
* Returned value must be freed with ecma_free_value.
1336
1348
*/
1337
1349
static ecma_value_t
1338
- ecma_builtin_global_object_unescape (ecma_value_t this_arg __attr_unused___ , /**< this argument */
1350
+ ecma_builtin_global_object_unescape (ecma_value_t this_arg , /**< this argument */
1339
1351
ecma_value_t arg ) /**< routine's first argument */
1340
1352
{
1353
+ JERRY_UNUSED (this_arg );
1341
1354
ecma_value_t ret_value = ecma_make_simple_value (ECMA_SIMPLE_VALUE_EMPTY );
1342
1355
1343
1356
/* 1. */
0 commit comments