-
Notifications
You must be signed in to change notification settings - Fork 676
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
Support labelled statements #153
Conversation
extern void jsp_label_push (jsp_label_t *out_label_p, jsp_label_type_flag_t type_mask, token id); | ||
extern void jsp_label_rewrite_jumps_and_pop (jsp_label_t *label_p, opcode_counter_t break_tgt_oc); | ||
|
||
extern jsp_label_t* jsp_label_find (jsp_label_type_flag_t type_mask, token id, bool *out_is_simply_jumpable_p); |
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.
Please align the *
to the function name (just like in the parameter list)
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.
Ok
8918a89
to
ba55848
Compare
…ment. JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
Related issue: #52 JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
ba55848
to
791ef80
Compare
@galpeter, I've updated pull request according to your comments. Additionally, I've added two test cases with multiple jumps on same label, and added two commits:
Please, review. |
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
791ef80
to
2270db9
Compare
Good to me. |
lgtm |
|
Related issue: #52