Convert SimpleCall to new regs

Also fix bug in RegsiterValue/Slot with chain, where logic was dodgy and compiler not set
This commit is contained in:
2020-03-01 23:38:23 +02:00
parent 4b303977a7
commit ff49ff50c0
8 changed files with 54 additions and 23 deletions

View File

@ -33,9 +33,12 @@ module Risc
end
end
def self.load_constant( source , constant )
if(constant.is_a?(Parfait::Object))
value = constant
case constant
when Parfait::Object
type = constant.get_type
value = constant
when Label
type = constant.address.get_type
else
type = constant.ct_type
value = constant.value