Improve the construction of "length" built-in strings.
The "length" property name is the most frequently used built-in string and also frequently created by various hot-paths. New functions are added to improve the speed of the "length" string creation. JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
@@ -139,4 +139,9 @@ typedef uint16_t lit_string_hash_t;
|
||||
*/
|
||||
#define LIT_STRING_HASH_LIMIT 0x10000u
|
||||
|
||||
/**
|
||||
* Hash of the frequently used "length" string.
|
||||
*/
|
||||
#define LIT_STRING_LENGTH_HASH 0x3615u
|
||||
|
||||
#endif /* !LIT_GLOBALS_H */
|
||||
|
||||
Reference in New Issue
Block a user