Skip to content

Conversation

zherczeg
Copy link
Member

No description provided.

@LaszloLango LaszloLango added enhancement An improvement ecma core Related to core ECMA functionality performance Affects performance labels May 25, 2016
@LaszloLango
Copy link
Contributor

LGTM

the property already exists. This improves the performance.

JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
/* The reference is moved so no need to free stack_top_p[i] except for objects. */
if (ecma_is_value_object (stack_top_p[i]))
{
ecma_free_value (stack_top_p[i]);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this equivalent to ecma_free_value_if_not_object?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is completely the opposite. Free if object.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah my bad, mixed it up.

@akosthekiss
Copy link
Member

LGTM

@zherczeg zherczeg force-pushed the optimize_array_literal_creation branch from 19c8db5 to fec6944 Compare May 26, 2016 08:08
@zherczeg zherczeg merged commit fec6944 into jerryscript-project:master May 26, 2016
@zherczeg zherczeg deleted the optimize_array_literal_creation branch May 26, 2016 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ecma core Related to core ECMA functionality enhancement An improvement performance Affects performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants