Handbook
Glossary
inc-stack ( loc -- )
Local stack analysis
Prev:
local-loc>global ( loc height-state -- loc' )
Next:
replace-loc ( vreg loc -- )
Vocabulary
compiler
.
cfg
.
stacks
.
local
Inputs
loc
a
loc
Outputs
None
Word description
Increases or decreases the data or retain stack depending on if loc is a
ds-loc
or
rs-loc
instance. An
##inc
instruction will later be inserted.
Definition
USING:
accessors
kernel
math
namespaces
;
IN:
compiler.cfg.stacks.local
:
inc-stack
( loc -- )
>loc<
height-state
get
swap
[
[
+
]
change-ds-inc
]
[
[
+
]
change-rs-inc
]
if
drop
;