Improved assembler performance

This commit is contained in:
2025-03-11 06:31:21 +01:00
parent d2ad8c8310
commit e7a06f5b26
37 changed files with 412 additions and 166 deletions

View File

@ -12,10 +12,10 @@ func (a *Assembler) CanSkipReturn() bool {
return true
}
if last.Mnemonic == CALL {
label, isLabel := last.Data.(*Label)
if last.Mnemonic == CALL && last.Type == TypeLabel {
label := a.Param.Label[last.Index]
if isLabel && label.String() == "core.exit" {
if label.String() == "core.exit" {
return true
}
}