precise stack scanning for Nim's GCs; work in progress

This commit is contained in:
Andreas Rumpf 2017-04-19 08:33:19 +02:00
commit 02bbfa1164
8 changed files with 68 additions and 40 deletions

View file

@ -739,6 +739,8 @@ type
OnUnknown, # location is unknown (stack, heap or static)
OnStatic, # in a static section
OnStack, # location is on hardware stack
OnStackShadowDup, # location is on the stack but also replicated
# on the shadow stack
OnHeap # location is on heap or global
# (reference counting needed)
TLocFlags* = set[TLocFlag]
@ -748,6 +750,7 @@ type
flags*: TLocFlags # location's flags
t*: PType # type of location
r*: Rope # rope value of location (code generators)
dup*: Rope # duplicated location for precise stack scans
# ---------------- end of backend information ------------------------------