Simple in principle, but it's not fun to have stubs for the whole plethora of return opcodes. :P
I'm thinking of adding an argument to destruct_objects_to_destruct so that the current object can be excluded. Maybe we can live with that it's freed a bit later instead. It's afterall not often that it's freed directly on function return anyway.
/ Martin Stjernholm, Roxen IS
Previous text:
2003-08-07 23:57: Subject: Machine code efficiency
A simple workaround would be to replace
jsr F_RETURN jmp %eax
with:
jmp static_return_stub
; Somewhere global return_stub: jsr F_RETURN jmp %eax
/ Fredrik (Naranek) Hubinette (Real Build Master)