Handle properties of builtin routine separately from builtin objects (#3694)

separate builtin routine part to make code clear and to support 'name' property later

JerryScript-DCO-1.0-Signed-off-by: HyukWoo Park hyukwoo.park@samsung.com
This commit is contained in:
Hyukwoo Park
2020-05-25 20:17:38 +09:00
committed by GitHub
parent 6fe6dab9cc
commit 589af6dc90
4 changed files with 238 additions and 170 deletions
+9 -1
View File
@@ -807,7 +807,15 @@ typedef struct
uint8_t length_and_bitset_size; /**< length for built-in functions and
* bit set size for all built-ins */
uint16_t routine_id; /**< routine id for built-in functions */
uint32_t instantiated_bitset[1]; /**< bit set for instantiated properties */
union
{
uint32_t instantiated_bitset[1]; /**< bit set for instantiated properties */
struct
{
uint16_t name; /**< name of the built-in functions */
uint16_t bitset; /**< bit set for instantiated properties of builtin functions */
} builtin_routine;
} u;
} ecma_built_in_props_t;
/**