1
0
mirror of https://github.com/stedolan/jq.git synced 2024-05-11 05:55:39 +00:00

frame layout refactor

This commit is contained in:
Stephen Dolan
2012-08-21 12:35:36 +01:00
parent 15ad640202
commit dd0d340eba
8 changed files with 147 additions and 73 deletions

View File

@@ -274,7 +274,8 @@ struct bytecode* block_compile(struct symbol_table* syms, block b) {
}
free(stack_height);
bc->constants = constant_pool;
bc->framesize = maxvar + 2; // FIXME: frames of size zero?
bc->nlocals = maxvar + 2; // FIXME: frames of size zero?
bc->nclosures = 0;
bc->globals = syms;
return bc;
}