better calcite and operator to expand the interpreter test

This commit is contained in:
Torsten Ruger
2015-10-07 10:05:34 +03:00
parent af6366f2d1
commit 83ef902b55
6 changed files with 97 additions and 24 deletions

View File

@ -45,4 +45,25 @@ module Register
GetSlot.new( source , array , index , to)
end
def self.get_slot_to source , slot , to
array = nil
index = nil
case slot
when Virtual::Self
array = :message
index = :receiver
when Virtual::Return
array = :message
index = :return_value
when Virtual::FrameSlot
array = :frame
index = slot.index
when Virtual::ArgSlot
array = :message
index = slot.index
else
raise "not done #{slot}"
end
get_slot( source , array , index , to)
end
end