From c10ef2062288a7066f8e4582375627d2bb454663 Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Tue, 7 Oct 2014 12:23:59 +0300 Subject: [PATCH] was issuing wrong instruction --- lib/virtual/passes/frame_implementation.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/virtual/passes/frame_implementation.rb b/lib/virtual/passes/frame_implementation.rb index a02053bd..c22f6d81 100644 --- a/lib/virtual/passes/frame_implementation.rb +++ b/lib/virtual/passes/frame_implementation.rb @@ -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