##check-nursery-branch
Basic block instructions

Prev:##call-gc
Next:##local-allot


Vocabulary
compiler.cfg.instructions

Class description
Instruction that inserts a conditional branch to a basic-block that garbage collects the nursery. The compiler.cfg.gc-checks vocab goes through each block in the cfg and checks if it allocates memory. If it does, then this instruction is inserted in the cfg before that block and checks if there is enough available space in the nursery. If it isn't, then a basic block containing code for garbage collecting the nursery is executed.

It has the following slots:
sizeNumber of bytes the next block in the cfg will allocate.
ccA comparison symbol.
temp1First register that will be clobbered.
temp2Second register that will be clobbered.


See also
%check-nursery-branch

Definition


Methods