Skip to content

Commit

Permalink
Revert "exprjit sp_p6oget_bi"
Browse files Browse the repository at this point in the history
This reverts commit 0674a1e.
  • Loading branch information
timo committed Sep 16, 2019
1 parent b2dc3f3 commit 986e05b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
9 changes: 0 additions & 9 deletions src/jit/core_templates.expr
Expand Up @@ -2672,15 +2672,6 @@
(^store_write_barrier! $1 $addr $type)
(copy $type)))))

(template: sp_p6oget_bi (let: (($bibody (add (^p6obody $1) $2) ptr_sz))
(if (nz (^bigint_is_smallint $bibody))
(^getf $bibody MVMP6bigintBody u.smallint.value)
(call (^func MVM_p6bigint_get_int64)
(arglist
(carg (tc) ptr)
(carg $bibody ptr)) int_sz))))


(template: sp_p6oget_i (load (add (^p6obody $1) $2) int_sz))
(template: sp_p6oget_n (load_num (add (^p6obody $1) $2) num_sz))
(template: sp_p6oget_s (load (add (^p6obody $1) $2) ptr_sz))
Expand Down
3 changes: 0 additions & 3 deletions src/jit/macro.expr
Expand Up @@ -96,9 +96,6 @@
(macro: ^is_conc_obj (,a)
(zr (and (^getf ,a MVMObject header.flags) (^objflag MVM_CF_TYPE_OBJECT))))

(macro: ^bigint_is_smallint (,a)
(flagval (eq (^getf ,a MVMP6bigintBody u.smallint.flag) (const (&QUOTE MVM_BIGINT_32_FLAG) 4))))

(macro: ^stable_cont_func (,obj ,func)
(^getf
(^getf (^stable ,obj) MVMSTable container_spec)
Expand Down

0 comments on commit 986e05b

Please sign in to comment.