diff options
author | Andy Wingo <wingo@pobox.com> | 2020-08-01 15:24:59 +0200 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2020-08-03 22:19:18 +0200 |
commit | daf3e88a817f630dcbc4520f434e91f3d504f962 (patch) | |
tree | aa9da7b754fe293d0700a4454489325b077c6c3f /module/language/tree-il/compile-bytecode.scm | |
parent | 8366634db748ad8729f6ea07fc3638c1f5822862 (diff) | |
download | guile-daf3e88a817f630dcbc4520f434e91f3d504f962.tar.gz |
Rework the way immediate encodings are calculated.
* module/system/base/types/internal.scm (scm->immediate-bits):
(immediate-bits->scm, sign-extend, truncate-bits): New public
routines.
* module/system/vm/assembler.scm (immediate-bits): Reimplement in terms
of scm->immediate-bits and similar.
(X8_S8_I16, X8_S8_ZI16): Rework operand encodings.
(load-constant): Use truncate-bits to determine which cases apply.
Diffstat (limited to 'module/language/tree-il/compile-bytecode.scm')
0 files changed, 0 insertions, 0 deletions