-
Notifications
You must be signed in to change notification settings - Fork 683
Add symbolic constants for vm opcode flags #1062
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
Add symbolic constants for vm opcode flags #1062
Conversation
@@ -29,12 +29,25 @@ | |||
* @{ | |||
*/ | |||
|
|||
/** | |||
* Shift for extracting the type of getting input data. |
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 description of these four macros is a bit hard to grasp. Would be nice to have them improved. Otherwise, the newly introduced macros look good.
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 think we usually write "position" instead of "shift".
LGTM |
a70d230
to
cfb2a40
Compare
Reworked the patch. Binary is reduced by 220 bytes. |
/** | ||
* Each CBC opcode is transformed to three vm opcodes: | ||
* | ||
* - first opcode is a "get arguments" opcode which specify |
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.
typo: specify -> specifies (three occurences)
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.
was this comment ignored intentionally?
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.
Forgot to fix it.
cfb2a40
to
ba53d04
Compare
Patch refocused a bit, and the description is aligned for the new focus. |
ba53d04
to
9532380
Compare
Still LGTM |
LGTM |
and comments. Space consumed by opcode triplets are reduced to 16 bits down from 32 bits. This reduces the opcode triplet tables by 220 bytes. New symbolic constants and defines were also added to describe common operations. JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
9532380
to
12a58e6
Compare
Should fix #1057.