Implemented jumps and jump related optimizations
All checks were successful
/ test (push) Successful in 15s
All checks were successful
/ test (push) Successful in 15s
This commit is contained in:
parent
abbc4d9ae2
commit
312e3b2e31
5 changed files with 120 additions and 6 deletions
|
@ -93,11 +93,7 @@ func (f *Function) Compile() {
|
|||
}
|
||||
|
||||
if f.UniqueName != "core.exit" {
|
||||
switch f.Assembler.Instructions[len(f.Assembler.Instructions)-1].(type) {
|
||||
case *asm.Return:
|
||||
default:
|
||||
f.Assembler.Append(&asm.Return{})
|
||||
}
|
||||
f.Assembler.Append(&asm.Return{})
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue