Skip to content

Commit 21cf2d1

Browse files
committed
Handle properties of builtin routine separately from builtin objects
separate builtin routine part to make code clear and to support 'name' property later JerryScript-DCO-1.0-Signed-off-by: HyukWoo Park [email protected]
1 parent 6cd309b commit 21cf2d1

File tree

4 files changed

+219
-151
lines changed

4 files changed

+219
-151
lines changed

jerry-core/ecma/base/ecma-globals.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,15 @@ typedef struct
807807
uint8_t length_and_bitset_size; /**< length for built-in functions and
808808
* bit set size for all built-ins */
809809
uint16_t routine_id; /**< routine id for built-in functions */
810-
uint32_t instantiated_bitset[1]; /**< bit set for instantiated properties */
810+
union
811+
{
812+
uint32_t instantiated_bitset[1]; /**< bit set for instantiated properties */
813+
struct
814+
{
815+
uint16_t name; /**< name of the built-in functions */
816+
uint16_t bitset; /**< bit set for instantiated properties of builtin functions */
817+
} builtin_routine;
818+
} u;
811819
} ecma_built_in_props_t;
812820

813821
/**

0 commit comments

Comments
 (0)