Handbook
Glossary
assign-spill ( live-interval -- )
Vocabulary
compiler
.
cfg
.
linear-scan
.
allocation
.
spilling
Inputs
live-interval
a
live-interval-state
Outputs
None
Word description
Assigns a spill slot for the live interval.
See also
assign-spill-slot
Definition
USING:
accessors
compiler.cfg.linear-scan.allocation.state
kernel
;
IN:
compiler.cfg.linear-scan.allocation.spilling
:
assign-spill
( live-interval -- )
dup
last-use-rep
dup
[
>>spill-rep
dup
[
vreg>>
]
[
spill-rep>>
]
bi
assign-spill-slot
>>spill-to
drop
]
[
2drop
]
if
;