Skip to content

Commit

Permalink
Add paramnamesused exprjit template
Browse files Browse the repository at this point in the history
  • Loading branch information
jstuder-gh committed Aug 15, 2018
1 parent f592880 commit c1b7b54
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/jit/core_templates.expr
Expand Up @@ -1842,6 +1842,15 @@
(carg $1 ptr)
(carg $2 ptr)) int_sz))

(template: paramnamesused
(let: (($ctx (^addrf (^frame) MVMFrame params))
($csite (^getf $ctx MVMArgProcContext callsite)))
(when (ne (^getf $csite MVMCallsite num_pos) (^getf $csite MVMCallsite arg_count))
(callv (^func &MVM_args_assert_nameds_used)
(arglist
(carg (tc) ptr)
(carg $ctx ptr))))))

(template: getuniname
(call (^func &MVM_unicode_get_name)
(arglist
Expand Down

0 comments on commit c1b7b54

Please sign in to comment.