Skip to content

Create extended objects instead of internal properties. #1163

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 21, 2016

Conversation

zherczeg
Copy link
Member

Several internal properties are removed and directly stored as
part of the object. Faster built-in and JS function processing.

Small performance improvement overall (0.5%) but controlflow-recursive which is call heavy is improved by 6%. Dynamic memory allocation is improved as well, 3d-cube 24K allocation is reduced to 16K. Overall 2.8% malloc improvement.

*/
static ecma_object_t *
ecma_builtin_make_function_object_for_routine (ecma_builtin_id_t builtin_id, /**< identifier of built-in object
that initially contains property
Copy link
Contributor

Choose a reason for hiding this comment

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

I know it is not new code, but please fix the style of the comments. Write * on every line

@LaszloLango
Copy link
Contributor

LGTM

@dbatyai
Copy link
Member

dbatyai commented Jun 21, 2016

LGTM

Several internal properties are removed and directly stored as
part of the object. Faster built-in and JS function processing.

JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
@zherczeg zherczeg merged commit 1726bba into jerryscript-project:master Jun 21, 2016
@zherczeg zherczeg deleted the extended_object branch June 21, 2016 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants