was issuing wrong instruction

This commit is contained in:
Torsten Ruger 2014-10-07 12:23:59 +03:00
parent 9ac165c34c
commit c10ef20622

View File

@ -30,7 +30,7 @@ module Virtual
# a temporary place to store the new frame
frame_tmp = space_tmp.next_reg_use
# move the spave to it's register (mov instruction gets the address of the object)
new_codes = [ Register::RegisterTransfer.new( space_tmp , space )]
new_codes = [ Register::LoadConstant.new( space_tmp , space )]
# find index in the space wehre to grab frame/message
ind = space.layout[:names].index(kind)
raise "index not found for :#{kind}" unless ind