more better working debug

This commit is contained in:
nora 2022-04-24 12:50:12 +02:00
parent 08d1f01802
commit 01e6d7802e
5 changed files with 34 additions and 6 deletions

View file

@ -473,10 +473,11 @@ impl<'bc, 'gc> Compiler<'bc, 'gc> {
for param in params.iter() {
self.compile_expr(param)?;
todo!("no params yet")
}
self.push_instr(Instr::Load(offset), StackChange::Grow, call.span);
self.push_instr(Instr::Call, StackChange::Grow, call.span);
self.push_instr(Instr::Call, StackChange::None, call.span);
Ok(())
}