Reduce the memory consumption of function objects. (#1954)
Several properties of strict and bound functions are moved to lazy property instantiation. The memory consumption of bound functions are also reduced when only a this is present. JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
committed by
Dániel Bátyai
parent
82a94d0f88
commit
e897858c64
@@ -768,7 +768,7 @@ typedef struct
|
||||
struct
|
||||
{
|
||||
ecma_value_t target_function; /**< target function */
|
||||
ecma_length_t args_length; /**< length of arguments */
|
||||
ecma_value_t args_len_or_this; /**< length of arguments or this value */
|
||||
} bound_function;
|
||||
|
||||
ecma_external_handler_t external_handler_cb; /**< external function */
|
||||
|
||||
Reference in New Issue
Block a user