remove the old add_new_int and calls

last orrurences in syscalls replaced, 2 variants
- exit does not actually need the int
- all else, preallocate the int beforehand and in syscall assume the reg name (integer_tmp)

test missing
This commit is contained in:
Torsten Ruger
2018-11-22 09:16:56 +02:00
parent a8d1f070f1
commit e6615d0a6a
4 changed files with 43 additions and 34 deletions

View File

@ -58,7 +58,10 @@ module Mom
branch while_start_label
add_code exit_label
Risc::Builtin::Object.emit_syscall( builder , :exit )
# temporary, need to raise really.
factory! << Parfait.object_space.get_factory_for(:Integer)
integer_tmp! << factory[:reserve]
Risc::Builtin::Object.emit_syscall( builder , :exit ) #uses integer_tmp
add_code ok_label
cache_entry[:cached_method] << callable_method