Handbook
Glossary
next-spill-slot ( size stack-frame -- spill-slot )
Vocabulary
compiler
.
cfg
.
linear-scan
.
allocation
.
state
Inputs
size
number of bytes required
stack-frame
a
stack-frame
Outputs
spill-slot
a
spill-slot
Word description
Creates a new
spill-slot
of the given size and also allocates space in the
cfg
in the cfg for it.
Definition
USING:
accessors
compiler.cfg.instructions
kernel
math
;
IN:
compiler.cfg.linear-scan.allocation.state
:
next-spill-slot
( size stack-frame -- spill-slot )
[
swap
[
align
dup
]
[
+
]
bi
]
change-spill-area-size
drop
<spill-slot>
;