summaryrefslogtreecommitdiff
path: root/module/language/tree-il/compile-bytecode.scm
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2020-08-01 15:24:59 +0200
committerAndy Wingo <wingo@pobox.com>2020-08-03 22:19:18 +0200
commitdaf3e88a817f630dcbc4520f434e91f3d504f962 (patch)
treeaa9da7b754fe293d0700a4454489325b077c6c3f /module/language/tree-il/compile-bytecode.scm
parent8366634db748ad8729f6ea07fc3638c1f5822862 (diff)
downloadguile-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