Arranging JERRY_UNIMPLEMENTED macro usages and adding comments to each invocation of the macro.
This commit is contained in:
@@ -89,7 +89,7 @@ const ecma_length_t ecma_builtin_array_prototype_property_number = (sizeof (ecma
|
||||
static ecma_completion_value_t
|
||||
ecma_builtin_array_prototype_object_to_string (ecma_value_t this) /**< this argument */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (this);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (this);
|
||||
} /* ecma_builtin_array_prototype_object_to_string */
|
||||
|
||||
/**
|
||||
|
||||
@@ -236,11 +236,7 @@ ecma_builtin_function_dispatch_construct (ecma_value_t *arguments_list_p, /**< a
|
||||
{
|
||||
JERRY_ASSERT (arguments_list_len == 0 || arguments_list_p != NULL);
|
||||
|
||||
#ifdef CONFIG_ECMA_COMPACT_PROFILE
|
||||
return ecma_make_throw_obj_completion_value (ecma_builtin_get (ECMA_BUILTIN_ID_COMPACT_PROFILE_ERROR));
|
||||
#else /* !CONFIG_ECMA_COMPACT_PROFILE */
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (arguments_list_p, arguments_list_len);
|
||||
#endif /* !CONFIG_ECMA_COMPACT_PROFILE */
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (arguments_list_p, arguments_list_len);
|
||||
} /* ecma_builtin_function_dispatch_construct */
|
||||
|
||||
/**
|
||||
|
||||
@@ -97,7 +97,7 @@ const ecma_length_t ecma_builtin_function_prototype_property_number = (sizeof (e
|
||||
static ecma_completion_value_t
|
||||
ecma_builtin_function_prototype_object_to_string (ecma_value_t this) /**< this argument */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (this);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (this);
|
||||
} /* ecma_builtin_function_prototype_object_to_string */
|
||||
|
||||
/**
|
||||
@@ -114,7 +114,7 @@ ecma_builtin_function_prototype_object_apply (ecma_value_t this, /**< this argum
|
||||
ecma_value_t arg1, /**< first argument */
|
||||
ecma_value_t arg2) /**< second argument */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (this, arg1, arg2);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (this, arg1, arg2);
|
||||
} /* ecma_builtin_function_prototype_object_apply */
|
||||
|
||||
/**
|
||||
@@ -131,7 +131,7 @@ ecma_builtin_function_prototype_object_call (ecma_value_t this, /**< this argume
|
||||
ecma_value_t *arguments_list_p, /**< list of arguments */
|
||||
ecma_length_t arguments_number) /**< number of arguments */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (this, arguments_list_p, arguments_number);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (this, arguments_list_p, arguments_number);
|
||||
} /* ecma_builtin_function_prototype_object_call */
|
||||
|
||||
/**
|
||||
@@ -148,7 +148,7 @@ ecma_builtin_function_prototype_object_bind (ecma_value_t this, /**< this argume
|
||||
ecma_value_t *arguments_list_p, /**< list of arguments */
|
||||
ecma_length_t arguments_number) /**< number of arguments */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (this, arguments_list_p, arguments_number);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (this, arguments_list_p, arguments_number);
|
||||
} /* ecma_builtin_function_prototype_object_bind */
|
||||
|
||||
/**
|
||||
|
||||
@@ -93,13 +93,7 @@ JERRY_STATIC_ASSERT (sizeof (ecma_builtin_global_property_names) > sizeof (void*
|
||||
static ecma_completion_value_t
|
||||
ecma_builtin_global_object_eval (ecma_value_t x) /**< routine's first argument */
|
||||
{
|
||||
#ifdef CONFIG_ECMA_COMPACT_PROFILE
|
||||
(void) x;
|
||||
|
||||
return ecma_make_throw_obj_completion_value (ecma_builtin_get (ECMA_BUILTIN_ID_COMPACT_PROFILE_ERROR));
|
||||
#else /* !CONFIG_ECMA_COMPACT_PROFILE */
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (x);
|
||||
#endif /* !CONFIG_ECMA_COMPACT_PROFILE */
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (x);
|
||||
} /* ecma_builtin_global_object_eval */
|
||||
|
||||
/**
|
||||
@@ -115,7 +109,7 @@ static ecma_completion_value_t
|
||||
ecma_builtin_global_object_parse_int (ecma_value_t string, /**< routine's first argument */
|
||||
ecma_value_t radix) /**< routine's second argument */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (string, radix);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (string, radix);
|
||||
} /* ecma_builtin_global_object_parse_int */
|
||||
|
||||
/**
|
||||
@@ -130,7 +124,7 @@ ecma_builtin_global_object_parse_int (ecma_value_t string, /**< routine's first
|
||||
static ecma_completion_value_t
|
||||
ecma_builtin_global_object_parse_float (ecma_value_t string) /**< routine's first argument */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (string);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (string);
|
||||
} /* ecma_builtin_global_object_parse_float */
|
||||
|
||||
/**
|
||||
@@ -202,7 +196,7 @@ ecma_builtin_global_object_is_finite (ecma_value_t arg) /**< routine's first arg
|
||||
static ecma_completion_value_t
|
||||
ecma_builtin_global_object_decode_uri (ecma_value_t encoded_uri) /**< routine's first argument */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (encoded_uri);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (encoded_uri);
|
||||
} /* ecma_builtin_global_object_decode_uri */
|
||||
|
||||
/**
|
||||
@@ -217,7 +211,7 @@ ecma_builtin_global_object_decode_uri (ecma_value_t encoded_uri) /**< routine's
|
||||
static ecma_completion_value_t
|
||||
ecma_builtin_global_object_decode_uri_component (ecma_value_t encoded_uri_component) /**< routine's first argument */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (encoded_uri_component);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (encoded_uri_component);
|
||||
} /* ecma_builtin_global_object_decode_uri_component */
|
||||
|
||||
/**
|
||||
@@ -232,7 +226,7 @@ ecma_builtin_global_object_decode_uri_component (ecma_value_t encoded_uri_compon
|
||||
static ecma_completion_value_t
|
||||
ecma_builtin_global_object_encode_uri (ecma_value_t uri) /**< routine's first argument */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (uri);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (uri);
|
||||
} /* ecma_builtin_global_object_encode_uri */
|
||||
|
||||
/**
|
||||
@@ -247,7 +241,7 @@ ecma_builtin_global_object_encode_uri (ecma_value_t uri) /**< routine's first ar
|
||||
static ecma_completion_value_t
|
||||
ecma_builtin_global_object_encode_uri_component (ecma_value_t uri_component) /**< routine's first argument */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (uri_component);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (uri_component);
|
||||
} /* ecma_builtin_global_object_encode_uri_component */
|
||||
|
||||
/**
|
||||
@@ -564,7 +558,6 @@ ecma_builtin_global_try_to_instantiate_property (ecma_object_t *obj_p, /**< obje
|
||||
#ifdef CONFIG_ECMA_COMPACT_PROFILE
|
||||
/* The object throws CompactProfileError upon invocation */
|
||||
ecma_object_t *get_set_p = ecma_builtin_get (ECMA_BUILTIN_ID_COMPACT_PROFILE_ERROR);
|
||||
ecma_gc_update_may_ref_younger_object_flag_by_object (obj_p, get_set_p);
|
||||
ecma_property_t *compact_profile_thrower_property_p = ecma_create_named_accessor_property (obj_p,
|
||||
prop_name_p,
|
||||
get_set_p,
|
||||
@@ -574,9 +567,11 @@ ecma_builtin_global_try_to_instantiate_property (ecma_object_t *obj_p, /**< obje
|
||||
ecma_deref_object (get_set_p);
|
||||
|
||||
return compact_profile_thrower_property_p;
|
||||
#else /* CONFIG_ECMA_COMPACT_PROFILE */
|
||||
JERRY_UNIMPLEMENTED ("The built-in is not implemented.");
|
||||
#endif /* CONFIG_ECMA_COMPACT_PROFILE */
|
||||
|
||||
JERRY_UNIMPLEMENTED ();
|
||||
JERRY_UNREACHABLE ();
|
||||
}
|
||||
|
||||
default:
|
||||
|
||||
@@ -200,7 +200,7 @@ ecma_builtin_math_object_abs (ecma_value_t arg) /**< routine's argument */
|
||||
static ecma_completion_value_t
|
||||
ecma_builtin_math_object_acos (ecma_value_t arg) /**< routine's argument */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (arg);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (arg);
|
||||
} /* ecma_builtin_math_object_acos */
|
||||
|
||||
/**
|
||||
@@ -215,7 +215,7 @@ ecma_builtin_math_object_acos (ecma_value_t arg) /**< routine's argument */
|
||||
static ecma_completion_value_t
|
||||
ecma_builtin_math_object_asin (ecma_value_t arg) /**< routine's argument */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (arg);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (arg);
|
||||
} /* ecma_builtin_math_object_asin */
|
||||
|
||||
/**
|
||||
@@ -230,7 +230,7 @@ ecma_builtin_math_object_asin (ecma_value_t arg) /**< routine's argument */
|
||||
static ecma_completion_value_t
|
||||
ecma_builtin_math_object_atan (ecma_value_t arg) /**< routine's argument */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (arg);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (arg);
|
||||
} /* ecma_builtin_math_object_atan */
|
||||
|
||||
/**
|
||||
@@ -246,7 +246,7 @@ static ecma_completion_value_t
|
||||
ecma_builtin_math_object_atan2 (ecma_value_t arg1, /**< first routine's argument */
|
||||
ecma_value_t arg2) /**< second routine's argument */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (arg1, arg2);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (arg1, arg2);
|
||||
} /* ecma_builtin_math_object_atan2 */
|
||||
|
||||
/**
|
||||
@@ -261,7 +261,7 @@ ecma_builtin_math_object_atan2 (ecma_value_t arg1, /**< first routine's argument
|
||||
static ecma_completion_value_t
|
||||
ecma_builtin_math_object_ceil (ecma_value_t arg) /**< routine's argument */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (arg);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (arg);
|
||||
} /* ecma_builtin_math_object_ceil */
|
||||
|
||||
/**
|
||||
@@ -276,7 +276,7 @@ ecma_builtin_math_object_ceil (ecma_value_t arg) /**< routine's argument */
|
||||
static ecma_completion_value_t
|
||||
ecma_builtin_math_object_cos (ecma_value_t arg) /**< routine's argument */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (arg);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (arg);
|
||||
} /* ecma_builtin_math_object_cos */
|
||||
|
||||
/**
|
||||
@@ -344,7 +344,7 @@ ecma_builtin_math_object_exp (ecma_value_t arg) /**< routine's argument */
|
||||
static ecma_completion_value_t
|
||||
ecma_builtin_math_object_floor (ecma_value_t arg) /**< routine's argument */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (arg);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (arg);
|
||||
} /* ecma_builtin_math_object_floor */
|
||||
|
||||
/**
|
||||
@@ -927,7 +927,7 @@ ecma_builtin_math_object_round (ecma_value_t arg) /**< routine's argument */
|
||||
static ecma_completion_value_t
|
||||
ecma_builtin_math_object_sin (ecma_value_t arg) /**< routine's argument */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (arg);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (arg);
|
||||
} /* ecma_builtin_math_object_sin */
|
||||
|
||||
/**
|
||||
@@ -994,7 +994,7 @@ ecma_builtin_math_object_sqrt (ecma_value_t arg) /**< routine's argument */
|
||||
static ecma_completion_value_t
|
||||
ecma_builtin_math_object_tan (ecma_value_t arg) /**< routine's argument */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (arg);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (arg);
|
||||
} /* ecma_builtin_math_object_tan */
|
||||
|
||||
/**
|
||||
|
||||
@@ -146,7 +146,7 @@ ecma_builtin_number_prototype_object_to_string (ecma_value_t this, /**< this arg
|
||||
return ecma_make_normal_completion_value (ecma_make_string_value (ret_str_p));
|
||||
}
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (arguments_list_p);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (arguments_list_p);
|
||||
}
|
||||
} /* ecma_builtin_number_prototype_object_to_string */
|
||||
|
||||
@@ -217,7 +217,7 @@ static ecma_completion_value_t
|
||||
ecma_builtin_number_prototype_object_to_fixed (ecma_value_t this, /**< this argument */
|
||||
ecma_value_t arg) /**< routine's argument */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (this, arg);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (this, arg);
|
||||
} /* ecma_builtin_number_prototype_object_to_fixed */
|
||||
|
||||
/**
|
||||
@@ -233,7 +233,7 @@ static ecma_completion_value_t
|
||||
ecma_builtin_number_prototype_object_to_exponential (ecma_value_t this, /**< this argument */
|
||||
ecma_value_t arg) /**< routine's argument */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (this, arg);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (this, arg);
|
||||
} /* ecma_builtin_number_prototype_object_to_exponential */
|
||||
|
||||
/**
|
||||
@@ -249,7 +249,7 @@ static ecma_completion_value_t
|
||||
ecma_builtin_number_prototype_object_to_precision (ecma_value_t this, /**< this argument */
|
||||
ecma_value_t arg) /**< routine's argument */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (this, arg);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (this, arg);
|
||||
} /* ecma_builtin_number_prototype_object_to_precision */
|
||||
|
||||
/**
|
||||
|
||||
@@ -181,7 +181,7 @@ ecma_builtin_object_dispatch_construct (ecma_value_t *arguments_list_p, /**< arg
|
||||
static ecma_completion_value_t
|
||||
ecma_builtin_object_object_get_prototype_of (ecma_value_t arg) /**< routine's argument */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (arg);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (arg);
|
||||
} /* ecma_builtin_object_object_get_prototype_of */
|
||||
|
||||
/**
|
||||
@@ -196,7 +196,7 @@ ecma_builtin_object_object_get_prototype_of (ecma_value_t arg) /**< routine's ar
|
||||
static ecma_completion_value_t
|
||||
ecma_builtin_object_object_get_own_property_names (ecma_value_t arg) /**< routine's argument */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (arg);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (arg);
|
||||
} /* ecma_builtin_object_object_get_own_property_names */
|
||||
|
||||
/**
|
||||
@@ -211,7 +211,7 @@ ecma_builtin_object_object_get_own_property_names (ecma_value_t arg) /**< routin
|
||||
static ecma_completion_value_t
|
||||
ecma_builtin_object_object_seal (ecma_value_t arg) /**< routine's argument */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (arg);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (arg);
|
||||
} /* ecma_builtin_object_object_seal */
|
||||
|
||||
/**
|
||||
@@ -226,7 +226,7 @@ ecma_builtin_object_object_seal (ecma_value_t arg) /**< routine's argument */
|
||||
static ecma_completion_value_t
|
||||
ecma_builtin_object_object_freeze (ecma_value_t arg) /**< routine's argument */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (arg);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (arg);
|
||||
} /* ecma_builtin_object_object_freeze */
|
||||
|
||||
/**
|
||||
@@ -241,7 +241,7 @@ ecma_builtin_object_object_freeze (ecma_value_t arg) /**< routine's argument */
|
||||
static ecma_completion_value_t
|
||||
ecma_builtin_object_object_prevent_extensions (ecma_value_t arg) /**< routine's argument */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (arg);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (arg);
|
||||
} /* ecma_builtin_object_object_prevent_extensions */
|
||||
|
||||
/**
|
||||
@@ -256,7 +256,7 @@ ecma_builtin_object_object_prevent_extensions (ecma_value_t arg) /**< routine's
|
||||
static ecma_completion_value_t
|
||||
ecma_builtin_object_object_is_sealed (ecma_value_t arg) /**< routine's argument */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (arg);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (arg);
|
||||
} /* ecma_builtin_object_object_is_sealed */
|
||||
|
||||
/**
|
||||
@@ -271,7 +271,7 @@ ecma_builtin_object_object_is_sealed (ecma_value_t arg) /**< routine's argument
|
||||
static ecma_completion_value_t
|
||||
ecma_builtin_object_object_is_frozen (ecma_value_t arg) /**< routine's argument */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (arg);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (arg);
|
||||
} /* ecma_builtin_object_object_is_frozen */
|
||||
|
||||
/**
|
||||
@@ -286,7 +286,7 @@ ecma_builtin_object_object_is_frozen (ecma_value_t arg) /**< routine's argument
|
||||
static ecma_completion_value_t
|
||||
ecma_builtin_object_object_is_extensible (ecma_value_t arg) /**< routine's argument */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (arg);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (arg);
|
||||
} /* ecma_builtin_object_object_is_extensible */
|
||||
|
||||
/**
|
||||
@@ -301,7 +301,7 @@ ecma_builtin_object_object_is_extensible (ecma_value_t arg) /**< routine's argum
|
||||
static ecma_completion_value_t
|
||||
ecma_builtin_object_object_keys (ecma_value_t arg) /**< routine's argument */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (arg);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (arg);
|
||||
} /* ecma_builtin_object_object_keys */
|
||||
|
||||
/**
|
||||
@@ -317,7 +317,7 @@ static ecma_completion_value_t
|
||||
ecma_builtin_object_object_get_own_property_descriptor (ecma_value_t arg1, /**< routine's first argument */
|
||||
ecma_value_t arg2) /**< routine's second argument */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (arg1, arg2);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (arg1, arg2);
|
||||
} /* ecma_builtin_object_object_get_own_property_descriptor */
|
||||
|
||||
/**
|
||||
@@ -333,7 +333,7 @@ static ecma_completion_value_t
|
||||
ecma_builtin_object_object_create (ecma_value_t arg1, /**< routine's first argument */
|
||||
ecma_value_t arg2) /**< routine's second argument */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (arg1, arg2);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (arg1, arg2);
|
||||
} /* ecma_builtin_object_object_create */
|
||||
|
||||
/**
|
||||
@@ -349,7 +349,7 @@ static ecma_completion_value_t
|
||||
ecma_builtin_object_object_define_properties (ecma_value_t arg1, /**< routine's first argument */
|
||||
ecma_value_t arg2) /**< routine's second argument */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (arg1, arg2);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (arg1, arg2);
|
||||
} /* ecma_builtin_object_object_define_properties */
|
||||
|
||||
/**
|
||||
|
||||
@@ -204,7 +204,7 @@ ecma_builtin_object_prototype_object_value_of (ecma_value_t this) /**< this argu
|
||||
static ecma_completion_value_t
|
||||
ecma_builtin_object_prototype_object_to_locale_string (ecma_value_t this) /**< this argument */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (this);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (this);
|
||||
} /* ecma_builtin_object_prototype_object_to_locale_string */
|
||||
|
||||
/**
|
||||
@@ -220,7 +220,7 @@ static ecma_completion_value_t
|
||||
ecma_builtin_object_prototype_object_has_own_property (ecma_value_t this, /**< this argument */
|
||||
ecma_value_t arg) /**< first argument */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (this, arg);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (this, arg);
|
||||
} /* ecma_builtin_object_prototype_object_has_own_property */
|
||||
|
||||
/**
|
||||
@@ -236,7 +236,7 @@ static ecma_completion_value_t
|
||||
ecma_builtin_object_prototype_object_is_prototype_of (ecma_value_t this, /**< this argument */
|
||||
ecma_value_t arg) /**< routine's first argument */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (this, arg);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (this, arg);
|
||||
} /* ecma_builtin_object_prototype_object_is_prototype_of */
|
||||
|
||||
/**
|
||||
@@ -252,7 +252,7 @@ static ecma_completion_value_t
|
||||
ecma_builtin_object_prototype_object_property_is_enumerable (ecma_value_t this, /**< this argument */
|
||||
ecma_value_t arg) /**< routine's first argument */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (this, arg);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (this, arg);
|
||||
} /* ecma_builtin_object_prototype_object_property_is_enumerable */
|
||||
|
||||
/**
|
||||
|
||||
@@ -211,7 +211,7 @@ static ecma_completion_value_t
|
||||
ecma_builtin_string_prototype_object_char_at (ecma_value_t this, /**< this argument */
|
||||
ecma_value_t arg) /**< routine's argument */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (this, arg);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (this, arg);
|
||||
} /* ecma_builtin_string_prototype_object_char_at */
|
||||
|
||||
/**
|
||||
@@ -227,7 +227,7 @@ static ecma_completion_value_t
|
||||
ecma_builtin_string_prototype_object_char_code_at (ecma_value_t this, /**< this argument */
|
||||
ecma_value_t arg) /**< routine's argument */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (this, arg);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (this, arg);
|
||||
} /* ecma_builtin_string_prototype_object_char_code_at */
|
||||
|
||||
/**
|
||||
@@ -244,7 +244,7 @@ ecma_builtin_string_prototype_object_concat (ecma_value_t this, /**< this argume
|
||||
ecma_value_t* argument_list_p, /**< arguments list */
|
||||
ecma_length_t arguments_number) /**< number of arguments */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (this, argument_list_p, arguments_number);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (this, argument_list_p, arguments_number);
|
||||
} /* ecma_builtin_string_prototype_object_concat */
|
||||
|
||||
/**
|
||||
@@ -261,7 +261,7 @@ ecma_builtin_string_prototype_object_index_of (ecma_value_t this, /**< this argu
|
||||
ecma_value_t arg1, /**< routine's first argument */
|
||||
ecma_value_t arg2) /**< routine's second argument */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (this, arg1, arg2);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (this, arg1, arg2);
|
||||
} /* ecma_builtin_string_prototype_object_index_of */
|
||||
|
||||
/**
|
||||
@@ -278,7 +278,7 @@ ecma_builtin_string_prototype_object_last_index_of (ecma_value_t this, /**< this
|
||||
ecma_value_t arg1, /**< routine's first argument */
|
||||
ecma_value_t arg2) /**< routine's second argument */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (this, arg1, arg2);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (this, arg1, arg2);
|
||||
} /* ecma_builtin_string_prototype_object_last_index_of */
|
||||
|
||||
/**
|
||||
@@ -294,7 +294,7 @@ static ecma_completion_value_t
|
||||
ecma_builtin_string_prototype_object_locale_compare (ecma_value_t this, /**< this argument */
|
||||
ecma_value_t arg) /**< routine's argument */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (this, arg);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (this, arg);
|
||||
} /* ecma_builtin_string_prototype_object_locale_compare */
|
||||
|
||||
/**
|
||||
@@ -310,7 +310,7 @@ static ecma_completion_value_t
|
||||
ecma_builtin_string_prototype_object_match (ecma_value_t this, /**< this argument */
|
||||
ecma_value_t arg) /**< routine's argument */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (this, arg);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (this, arg);
|
||||
} /* ecma_builtin_string_prototype_object_match */
|
||||
|
||||
/**
|
||||
@@ -327,7 +327,7 @@ ecma_builtin_string_prototype_object_replace (ecma_value_t this, /**< this argum
|
||||
ecma_value_t arg1, /**< routine's first argument */
|
||||
ecma_value_t arg2) /**< routine's second argument */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (this, arg1, arg2);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (this, arg1, arg2);
|
||||
} /* ecma_builtin_string_prototype_object_replace */
|
||||
|
||||
/**
|
||||
@@ -343,7 +343,7 @@ static ecma_completion_value_t
|
||||
ecma_builtin_string_prototype_object_search (ecma_value_t this, /**< this argument */
|
||||
ecma_value_t arg) /**< routine's argument */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (this, arg);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (this, arg);
|
||||
} /* ecma_builtin_string_prototype_object_search */
|
||||
|
||||
/**
|
||||
@@ -360,7 +360,7 @@ ecma_builtin_string_prototype_object_slice (ecma_value_t this, /**< this argumen
|
||||
ecma_value_t arg1, /**< routine's first argument */
|
||||
ecma_value_t arg2) /**< routine's second argument */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (this, arg1, arg2);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (this, arg1, arg2);
|
||||
} /* ecma_builtin_string_prototype_object_slice */
|
||||
|
||||
/**
|
||||
@@ -377,7 +377,7 @@ ecma_builtin_string_prototype_object_split (ecma_value_t this, /**< this argumen
|
||||
ecma_value_t arg1, /**< routine's first argument */
|
||||
ecma_value_t arg2) /**< routine's second argument */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (this, arg1, arg2);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (this, arg1, arg2);
|
||||
} /* ecma_builtin_string_prototype_object_split */
|
||||
|
||||
/**
|
||||
@@ -394,7 +394,7 @@ ecma_builtin_string_prototype_object_substring (ecma_value_t this, /**< this arg
|
||||
ecma_value_t arg1, /**< routine's first argument */
|
||||
ecma_value_t arg2) /**< routine's second argument */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (this, arg1, arg2);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (this, arg1, arg2);
|
||||
} /* ecma_builtin_string_prototype_object_substring */
|
||||
|
||||
/**
|
||||
@@ -409,7 +409,7 @@ ecma_builtin_string_prototype_object_substring (ecma_value_t this, /**< this arg
|
||||
static ecma_completion_value_t
|
||||
ecma_builtin_string_prototype_object_to_lower_case (ecma_value_t this) /**< this argument */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (this);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (this);
|
||||
} /* ecma_builtin_string_prototype_object_to_lower_case */
|
||||
|
||||
/**
|
||||
@@ -424,7 +424,7 @@ ecma_builtin_string_prototype_object_to_lower_case (ecma_value_t this) /**< this
|
||||
static ecma_completion_value_t
|
||||
ecma_builtin_string_prototype_object_to_locale_lower_case (ecma_value_t this) /**< this argument */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (this);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (this);
|
||||
} /* ecma_builtin_string_prototype_object_to_locale_lower_case */
|
||||
|
||||
/**
|
||||
@@ -439,7 +439,7 @@ ecma_builtin_string_prototype_object_to_locale_lower_case (ecma_value_t this) /*
|
||||
static ecma_completion_value_t
|
||||
ecma_builtin_string_prototype_object_to_upper_case (ecma_value_t this) /**< this argument */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (this);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (this);
|
||||
} /* ecma_builtin_string_prototype_object_to_upper_case */
|
||||
|
||||
/**
|
||||
@@ -454,7 +454,7 @@ ecma_builtin_string_prototype_object_to_upper_case (ecma_value_t this) /**< this
|
||||
static ecma_completion_value_t
|
||||
ecma_builtin_string_prototype_object_to_locale_upper_case (ecma_value_t this) /**< this argument */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (this);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (this);
|
||||
} /* ecma_builtin_string_prototype_object_to_locale_upper_case */
|
||||
|
||||
/**
|
||||
@@ -469,7 +469,7 @@ ecma_builtin_string_prototype_object_to_locale_upper_case (ecma_value_t this) /*
|
||||
static ecma_completion_value_t
|
||||
ecma_builtin_string_prototype_object_trim (ecma_value_t this) /**< this argument */
|
||||
{
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS (this);
|
||||
ECMA_BUILTIN_CP_UNIMPLEMENTED (this);
|
||||
} /* ecma_builtin_string_prototype_object_trim */
|
||||
|
||||
/**
|
||||
|
||||
@@ -169,4 +169,19 @@ ECMA_BUILTIN_LIST (DECLARE_DISPATCH_ROUTINES)
|
||||
#undef DECLARE_PROPERTY_NUMBER_VARIABLES
|
||||
#undef DECLARE_DISPATCH_ROUTINES
|
||||
|
||||
#ifndef CONFIG_ECMA_COMPACT_PROFILE
|
||||
# define ECMA_BUILTIN_CP_UNIMPLEMENTED(...) \
|
||||
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS ("Compact Profile optional built-in.", __VA_ARGS__)
|
||||
#else /* !CONFIG_ECMA_COMPACT_PROFILE */
|
||||
# define ECMA_BUILTIN_CP_UNIMPLEMENTED(...) \
|
||||
{ \
|
||||
if (false) \
|
||||
{ \
|
||||
jerry_ref_unused_variables (0, __VA_ARGS__); \
|
||||
} \
|
||||
ecma_object_t *cp_error_p = ecma_builtin_get (ECMA_BUILTIN_ID_COMPACT_PROFILE_ERROR); \
|
||||
return ecma_make_throw_obj_completion_value (cp_error_p); \
|
||||
}
|
||||
#endif /* CONFIG_ECMA_COMPACT_PROFILE */
|
||||
|
||||
#endif /* !ECMA_BUILTINS_INTERNAL_H */
|
||||
|
||||
@@ -268,7 +268,11 @@ ecma_builtin_try_to_instantiate_property (ecma_object_t *object_p, /**< object *
|
||||
|
||||
default:
|
||||
{
|
||||
JERRY_UNIMPLEMENTED ();
|
||||
#ifdef CONFIG_ECMA_COMPACT_PROFILE
|
||||
JERRY_UNREACHABLE ();
|
||||
#else /* CONFIG_ECMA_COMPACT_PROFILE */
|
||||
JERRY_UNIMPLEMENTED ("The built-in is not implemented.");
|
||||
#endif /* !CONFIG_ECMA_COMPACT_PROFILE */
|
||||
}
|
||||
}
|
||||
|
||||
@@ -408,7 +412,11 @@ ecma_builtin_dispatch_call (ecma_object_t *obj_p, /**< built-in object */
|
||||
|
||||
default:
|
||||
{
|
||||
JERRY_UNIMPLEMENTED ();
|
||||
#ifdef CONFIG_ECMA_COMPACT_PROFILE
|
||||
JERRY_UNREACHABLE ();
|
||||
#else /* CONFIG_ECMA_COMPACT_PROFILE */
|
||||
JERRY_UNIMPLEMENTED ("The built-in is not implemented.");
|
||||
#endif /* !CONFIG_ECMA_COMPACT_PROFILE */
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -468,7 +476,11 @@ ecma_builtin_dispatch_construct (ecma_object_t *obj_p, /**< built-in object */
|
||||
|
||||
default:
|
||||
{
|
||||
JERRY_UNIMPLEMENTED ();
|
||||
#ifdef CONFIG_ECMA_COMPACT_PROFILE
|
||||
JERRY_UNREACHABLE ();
|
||||
#else /* CONFIG_ECMA_COMPACT_PROFILE */
|
||||
JERRY_UNIMPLEMENTED ("The built-in is not implemented.");
|
||||
#endif /* !CONFIG_ECMA_COMPACT_PROFILE */
|
||||
}
|
||||
}
|
||||
|
||||
@@ -510,7 +522,11 @@ ecma_builtin_get_routine_parameters_number (ecma_builtin_id_t builtin_id, /**< i
|
||||
|
||||
default:
|
||||
{
|
||||
JERRY_UNIMPLEMENTED ();
|
||||
#ifdef CONFIG_ECMA_COMPACT_PROFILE
|
||||
JERRY_UNREACHABLE ();
|
||||
#else /* CONFIG_ECMA_COMPACT_PROFILE */
|
||||
JERRY_UNIMPLEMENTED ("The built-in is not implemented.");
|
||||
#endif /* !CONFIG_ECMA_COMPACT_PROFILE */
|
||||
}
|
||||
}
|
||||
|
||||
@@ -557,7 +573,11 @@ ecma_builtin_dispatch_routine (ecma_builtin_id_t builtin_object_id, /**< built-i
|
||||
|
||||
default:
|
||||
{
|
||||
JERRY_UNIMPLEMENTED ();
|
||||
#ifdef CONFIG_ECMA_COMPACT_PROFILE
|
||||
JERRY_UNREACHABLE ();
|
||||
#else /* CONFIG_ECMA_COMPACT_PROFILE */
|
||||
JERRY_UNIMPLEMENTED ("The built-in is not implemented.");
|
||||
#endif /* !CONFIG_ECMA_COMPACT_PROFILE */
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user