getting the symbols to work

This commit is contained in:
Torsten Ruger
2015-06-01 08:33:23 +03:00
parent bee73801eb
commit f08d9659fc
9 changed files with 53 additions and 42 deletions

View File

@ -32,7 +32,7 @@ module Register
# need a temporay place because of indexed load/store
tmp = RegisterReference.tmp_reg
# for constants we have to "move" the constants value
if( code.from.is_a? Parfait::Value)
if( code.from.is_a?(Parfait::Value) or code.from.is_a?(Symbol))
move1 = LoadConstant.new( tmp , code.from )
else # while otherwise we "load"
move1 = GetSlot.new( tmp , code.from.reg , code.from.index )