-
Notifications
You must be signed in to change notification settings - Fork 686
Implement async function execution. #3897
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
Conversation
jerry-core/vm/vm.c
Outdated
| } | ||
| else | ||
| { | ||
| uintptr_t diff = (uintptr_t) (&((vm_executable_object_t *) 0x100)->frame_ctx) - 0x100; |
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.
What does the 0x100 represents here? And what do we want to do here?
11d0944 to
72d68ef
Compare
e7a2d53 to
6fb7fcd
Compare
| } | ||
| stack_top_p = executable_object_p->frame_ctx.stack_top_p; | ||
|
|
||
| if (executable_object_p->frame_ctx.context_depth > 0) |
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.
This if and the while after it seems to me used in this form multiple times (with seemingly minimal changes). Would it be possible to extract them into a method?
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.
This is only used twice, and I would not combine them because they do opposite things.
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.
ohh I see one is ref and the other is deref. Sorry for the noise I've missed this.
|
Thank you for the reviews. I hope I did all requests, please check the patch again. |
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
rerobika
left a comment
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.
LGTM
galpeter
left a comment
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.
lgtm
#3802 should go in first