Eliminate the allocation of spread object (#3333)
ECMA_VALUE_SPREAD_ELEMENT can be used to represent that the next argument needs to be spreaded, therefore no allocation is needed. JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
This commit is contained in:
committed by
Dániel Bátyai
parent
70566a52fb
commit
830011c033
@@ -106,7 +106,7 @@ opfunc_append_array (ecma_value_t *stack_top_p, uint16_t values_length);
|
||||
|
||||
#if ENABLED (JERRY_ES2015)
|
||||
ecma_collection_t *
|
||||
opfunc_spread_arguments (ecma_value_t *arguments_list_p, uint8_t argument_list_len);
|
||||
opfunc_spread_arguments (ecma_value_t **stack_top_p, uint8_t argument_list_len);
|
||||
#endif /* ENABLED (JERRY_ES2015) */
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user