1
0
mirror of https://github.com/janet-lang/janet synced 2025-11-23 02:34:49 +00:00

Increase reference accuracy of on-stack close envs.

Using a bitset to indicate which stack values are upvalues, we
can more accurately track when a reference to a stack value
persists after the stack frame exits.
This commit is contained in:
Calvin Rose
2020-03-18 09:30:10 -05:00
parent 4a7b18d841
commit b0d8369534
9 changed files with 102 additions and 21 deletions

View File

@@ -212,6 +212,7 @@ JanetFuncDef *janet_funcdef_alloc(void) {
def->environments = NULL;
def->constants = NULL;
def->bytecode = NULL;
def->closure_bitset = NULL;
def->flags = 0;
def->slotcount = 0;
def->arity = 0;