Skip to content

Commit

Permalink
Add unshift_* exprjit templates
Browse files Browse the repository at this point in the history
  • Loading branch information
jstuder-gh committed Aug 15, 2018
1 parent da9123a commit 77d7521
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions src/jit/core_templates.expr
Expand Up @@ -987,6 +987,46 @@
(carg $0 ptr)
(carg (const (&QUOTE MVM_reg_obj) int_sz) int))))

(template: unshift_i!
(callv (^getf (^repr $0) MVMREPROps pos_funcs.unshift)
(arglist
(carg (tc) ptr)
(carg (^stable $0) ptr)
(carg $0 ptr)
(carg (^body $0) ptr)
(carg $1 ptr)
(carg (const (&QUOTE MVM_reg_int64) int_sz) int))))

(template: unshift_n!
(callv (^getf (^repr $0) MVMREPROps pos_funcs.unshift)
(arglist
(carg (tc) ptr)
(carg (^stable $0) ptr)
(carg $0 ptr)
(carg (^body $0) ptr)
(carg $1 ptr)
(carg (const (&QUOTE MVM_reg_num64) int_sz) int))))

(template: unshift_s!
(callv (^getf (^repr $0) MVMREPROps pos_funcs.unshift)
(arglist
(carg (tc) ptr)
(carg (^stable $0) ptr)
(carg $0 ptr)
(carg (^body $0) ptr)
(carg $1 ptr)
(carg (const (&QUOTE MVM_reg_str) int_sz) int))))

(template: unshift_o!
(callv (^getf (^repr $0) MVMREPROps pos_funcs.unshift)
(arglist
(carg (tc) ptr)
(carg (^stable $0) ptr)
(carg $0 ptr)
(carg (^body $0) ptr)
(carg $1 ptr)
(carg (const (&QUOTE MVM_reg_obj) int_sz) int))))

(template: splice!
(callv (^getf (^repr $0) MVMREPROps pos_funcs.splice)
(arglist
Expand Down

0 comments on commit 77d7521

Please sign in to comment.