Skip to content

Commit f592880

Browse files
committed
Add getpid and hintfor exprjit templates
1 parent 8a70d24 commit f592880

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/jit/core_templates.expr

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1823,12 +1823,25 @@
18231823
(carg $1 ptr)
18241824
(carg $2 ptr)) ptr_sz))
18251825

1826+
(template: getpid
1827+
(call (^func &MVM_proc_getpid)
1828+
(arglist
1829+
(carg (tc) ptr)) int_sz))
1830+
18261831
(template: assertparamcheck!
18271832
(when (zr $0)
18281833
(callv (^func &MVM_args_bind_failed)
18291834
(arglist
18301835
(carg (tc) ptr)))))
18311836

1837+
(template: hintfor
1838+
(call (^getf (^repr $1) MVMREPROps attr_funcs.hint_for)
1839+
(arglist
1840+
(carg (tc) ptr)
1841+
(carg (^stable $1) ptr)
1842+
(carg $1 ptr)
1843+
(carg $2 ptr)) int_sz))
1844+
18321845
(template: getuniname
18331846
(call (^func &MVM_unicode_get_name)
18341847
(arglist

0 commit comments

Comments
 (0)