Skip to content
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 return_s|i exprjit templates #1074

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
24 changes: 24 additions & 0 deletions src/jit/core_templates.expr
Expand Up @@ -127,6 +127,30 @@
(carg $1 ptr)
(carg (^caller) ptr))))

(template: return_i
(dov
(callv (^func &MVM_args_set_result_int)
(arglist
(carg (tc) ptr)
(carg $0 int)
(carg (^zero) int)))
(callv (^func &MVM_frame_try_return)
(arglist
(carg (tc) ptr)))
(^exit)))

(template: return_s
(dov
(callv (^func &MVM_args_set_result_str)
(arglist
(carg (tc) ptr)
(carg $0 ptr)
(carg (^zero) int)))
(callv (^func &MVM_frame_try_return)
(arglist
(carg (tc) ptr)))
(^exit)))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The (^exit) bit is redundant, I think, now.


(template: return_o
(dov
(callv (^func &MVM_spesh_log_return_type_from_jit)
Expand Down