Handbook
Glossary
insert-gc-check? ( bb -- ? )
Vocabulary
compiler
.
cfg
.
gc-checks
.
private
Inputs
bb
a
basic-block
Outputs
?
a
boolean
Word description
Whether to insert a gc check in the block or not. Only blocks with allocation instructions require gc checks.
See also
allocation-insn
Definition
USING:
accessors
compiler.cfg.instructions
kernel
sequences
;
IN:
compiler.cfg.gc-checks.private
:
insert-gc-check?
( bb -- ? )
dup
kill-block?>>
[
drop
f
]
[
instructions>>
[
allocation-insn?
]
any?
]
if
;