-
Notifications
You must be signed in to change notification settings - Fork 683
Refactor ECMA builtin template #905
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
Refactor ECMA builtin template #905
Conversation
The effect on text (=.text+.rodata) and data (=.data) is considerable in release builds (up to cca. 2.5K gain in total), size of r/w data drops below 100 bytes. Debug builds show strange results; something is still left in .data. Details below.
|
* false - list all properties into | ||
* main collection. | ||
*/ | ||
bool separate_enumerable, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing comment for this argument
Could you measure the performance on RPi2? |
If there is no big perf regression, LGTM from my side. |
7ab6225
to
a308dd1
Compare
@LaszloLango I've updated the patch. Does it look better? |
@akiss77, yes. The patch looks good. I agree with @zherczeg. If there is no big perf regression then we can merge the PR. |
RPi2 results
|
@bzsolt, thanks for the measurement. @akiss77, you may land the patch. |
Just noise. LGTM |
Avoid sorting the array of property magic string IDs and make it const, thus ensuring that it gets placed in .rodata. Replace the binary search in the array (which would not work anymore because of unsortendness) with function that returns the index of the looked-after magic string ID using a switch-based logic (we rely on compiler optimization to generate optimal code from that switch). Extras: * Getting rid of the superfluous macro argument from routine names. * Fixing the list of undef'd macros * Fixing related comments JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
a308dd1
to
235a5b1
Compare
Avoid sorting the array of property magic string IDs and make it
const, thus ensuring that it gets placed in .rodata. Replace the
binary search in the array (which would not work anymore because
of unsortendness) with function that returns the index of the
looked-after magic string ID using a switch-based logic (we rely
on compiler optimization to generate optimal code from that
switch).
Extras:
JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu