Handbook
Glossary
local-loc>global ( loc height-state -- loc' )
Local stack analysis
Prev:
global-loc>local ( loc height-state -- loc' )
Next:
inc-stack ( loc -- )
Vocabulary
compiler
.
cfg
.
stacks
.
local
Inputs
loc
a
loc
height-state
a
height-state
Outputs
loc'
a
loc
Word description
Translates a stack location relative to a block to an absolute one. The word does the opposite to
global-loc>local
.
Definition
USING:
accessors
kernel
math
;
IN:
compiler.cfg.stacks.local
:
local-loc>global
( loc height-state -- loc' )
[
clone
dup
>loc<
]
dip
swap
[
ds-begin>>
]
[
rs-begin>>
]
if
+
>>n
;