Handbook
Glossary
compute-stack-frame ( cfg -- stack-frame/f )
Vocabulary
compiler
.
cfg
.
build-stack-frame
Inputs
cfg
a
cfg
Outputs
stack-frame/f
a
stack-frame
Word description
Initializes a stack frame for a cfg, if it needs one.
See also
compute-stack-frame*
Definition
USING:
accessors
compiler.cfg.linearization
kernel
namespaces
sequences
;
IN:
compiler.cfg.build-stack-frame
:
compute-stack-frame
( cfg -- stack-frame/f )
dup
cfg>insns
f
[
compute-stack-frame*
or
]
reduce
[
stack-frame>>
allot-area-size
get
>>allot-area-size
allot-area-align
get
>>allot-area-align
param-area-size
get
>>params
finalize-stack-frame
]
[
drop
f
]
if
;