Handbook
Glossary
active-positions ( new assoc -- )
Vocabulary
compiler
.
cfg
.
linear-scan
.
allocation
Inputs
new
a
live-interval-state
assoc
an
assoc
Outputs
None
Word description
Looks at the
active-intervals
and sets to 0 those registers in 'assoc' that can't be used for allocation.
Definition
USING:
accessors
arrays
assocs
compiler.cfg.linear-scan.allocation.state
kernel
sequences
;
IN:
compiler.cfg.linear-scan.allocation
:
active-positions
( new assoc -- )
swap
active-intervals-for
[
reg>>
0
2array
]
map
assoc-union!
drop
;