move type to phial and add type to reg_ref

This commit is contained in:
Torsten Ruger
2015-10-10 19:14:27 +03:00
parent cb306c09f0
commit dd3381e38b
15 changed files with 65 additions and 54 deletions

View File

@ -7,7 +7,7 @@ module Register
block.codes.dup.each do |code|
next unless code.is_a? Virtual::Set
# need a temporay place because of indexed load/store
tmp = Register.tmp_reg
tmp = Register.tmp_reg :int
# for constants we have to "move" the constants value
if( code.from.is_a?(Parfait::Value) or code.from.is_a?(Symbol) or code.from.is_a?(Fixnum) )
move1 = LoadConstant.new(code, code.from , tmp )