Making built-ins' property numbers to be stored as static const instead of extern const.

This commit is contained in:
Ruben Ayrapetyan
2014-10-28 17:32:31 +03:00
parent 26012e098f
commit e35ec87209
16 changed files with 162 additions and 106 deletions
@@ -156,14 +156,7 @@ ecma_builtin_ ## lowercase_name ## _dispatch_routine (ecma_magic_string_id_t bui
extern ecma_property_t* \
ecma_builtin_ ## lowercase_name ## _try_to_instantiate_property (ecma_object_t *obj_p, \
ecma_string_t *prop_name_p);
#define DECLARE_PROPERTY_NUMBER_VARIABLES(builtin_id, \
object_type, \
object_class, \
object_prototype_builtin_id, \
lowercase_name) \
extern const ecma_length_t ecma_builtin_ ## lowercase_name ## _property_number;
ECMA_BUILTIN_LIST (DECLARE_PROPERTY_NUMBER_VARIABLES)
ECMA_BUILTIN_LIST (DECLARE_DISPATCH_ROUTINES)
#undef DECLARE_PROPERTY_NUMBER_VARIABLES