Handbook
Glossary
make-jit ( quot -- parameters literals code )
Vocabulary
bootstrap
.
image
.
private
Inputs
quot
a
quotation
Outputs
parameters
a
sequence
literals
a
sequence
code
a { relocation insns } pair
Word description
Runs the quotation to generate machine code. Code is a 2-tuple, where the first element is a
byte-array
of relocations and the second element the generated code.
Definition
USING:
arrays
byte-arrays
combinators
compiler.codegen.relocation
make
namespaces
;
IN:
bootstrap.image.private
:
make-jit
( quot -- parameters literals code )
[
0
extra-offset
set
init-relocation
( -- )
call-effect
parameter-table
get
>array
literal-table
get
>array
relocation-table
get
>byte-array
]
B{
}
make
2array
;