Reduce memory consumption of property names.

Property names were always required a string reference which consumed
a large amount of memory for arrays. This patch reduces this consumption
by directly storing the value part of certain strings.

JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
Zoltan Herczeg
2016-11-25 05:44:57 -08:00
parent abaf4c8af8
commit 6d67b8dff9
18 changed files with 595 additions and 393 deletions
@@ -387,9 +387,9 @@ ecma_builtin_try_to_instantiate_property (ecma_object_t *object_p, /**< object *
return NULL;
}
lit_magic_string_id_t magic_string_id;
lit_magic_string_id_t magic_string_id = ecma_get_string_magic (string_p);
if (!ecma_is_string_magic (string_p, &magic_string_id))
if (magic_string_id == LIT_MAGIC_STRING__COUNT)
{
return NULL;
}