-
Notifications
You must be signed in to change notification settings - Fork 684
Optimize 'lit_get_magic_string_size' calls #893
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
Optimize 'lit_get_magic_string_size' calls #893
Conversation
RPi2 results:
|
41267ac
to
41e8151
Compare
}; | ||
|
||
JERRY_ASSERT (id < LIT_MAGIC_STRING__COUNT); | ||
|
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.
The removed lit_magic_strings_init
initialized the ecma_magic_string_max_length
global variable (in debug build; and the var is only declared in debug builds). However, this replacement leaves that variable uninitialized. I guess that it would not be that simple to calculate the max length at compile time, but then the var should be removed and all the code that depends on it.
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.
I didn't notice that global variable. All the tests passed, so I think we should remove that variable.
Calculate magic string length sizes in compile time. JerryScript-DCO-1.0-Signed-off-by: László Langó [email protected]
41e8151
to
db26cb2
Compare
@akiss77, I've updated the PR. Please check. |
LGTM |
@LaszloLango thanks for the update. LGTM (FWIW) |
Calculate magic string sizes in compile time.
JerryScript-DCO-1.0-Signed-off-by: László Langó [email protected]