frame layout refactor

This commit is contained in:
Stephen Dolan committed 2012-08-21 12:35:44 +01:00
1 parent 15ad640202
commit dd0d340eba
8 files changed
+147 -73

No files matched your search

+2 -1
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;
}