🔥 change codegen::gen to codegen::emit

This commit is contained in:
ValKmjolnir
2023-09-23 01:08:45 +08:00
parent 0a404694f6
commit f8ecd2ae53
9 changed files with 246 additions and 213 deletions

View File

@@ -55,7 +55,7 @@ void vm::context_and_global_init() {
ctx.canary = ctx.stack+STACK_DEPTH-1;
/* nothing is on stack */
ctx.top = ctx.stack;
ctx.top = ctx.stack - 1;
/* clear main stack and global */
for(u32 i = 0; i<STACK_DEPTH; ++i) {