use the return jump to jump to the return sequence

thus every method only has one exit
should make multi return messages smaller
especially when we have escape analisis
(maybe will help with inlining too)
This commit is contained in:
Torsten Ruger
2018-08-02 17:36:39 +03:00
parent 4d4b691a4b
commit 5346077a72
3 changed files with 27 additions and 12 deletions

View File

@ -18,7 +18,7 @@ module Vool
def to_mom( compiler )
ret = Mom::SlotLoad.new( [:message , :return_value] ,
@return_value.slot_definition(compiler) )
ret << Mom::ReturnSequence.new
ret << Mom::ReturnJump.new
end
def to_s(depth = 0)