feature: Address performance issue and bugs about symbol
and string
by introduce atom
#5182
Labels
ecma core
Related to core ECMA functionality
enhancement
An improvement
feature request
Requested feature
performance
Affects performance
Currently, the
symbol
andstring
are really complicated and have issues aroundstring
that hard to fix,so let's us introduce
ecma_atom_t
to simplify thesymbol
andstring
The design is:
https://github.com/lygstate/jerryscript/wiki/Design-primitive-layout
Design primitive layout
lit_is_utf8_string_pair_magic
by suffix-arrayecma_string_t
with quickjs atom like thingsecma_atom_t
31 bit unsigned integer
ecma_type_t
31 bit signed integer
simple value
,extend point for future
pointer
to description of astring
, that isecma_string_t
(8 byte aligned)pointer
to description of asymbol
that isecma_string_t
(8 byte aligned)pointer
to a 64 bit floating point number (8 byte aligned)pointer
to description of abigint
(8 byte aligned)pointer
to (object
,function
,extend point for future
) (8 byte aligned)brief testing command
The text was updated successfully, but these errors were encountered: