some checks
This commit is contained in:
parent
cae99f217c
commit
9ac165c34c
@ -5,6 +5,7 @@ module Arm
|
||||
def initialize to , from , options = {}
|
||||
super(options)
|
||||
@to = to
|
||||
raise "old code, fix this to use LoadConstant" if from.is_a? Virtual::ObjectConstant
|
||||
@from = from.is_a?(Fixnum) ? Virtual::IntegerConstant.new(from) : from
|
||||
raise "move must have from set #{inspect}" unless from
|
||||
@attributes[:update_status] = 0 if @attributes[:update_status] == nil
|
||||
|
@ -45,6 +45,7 @@ module Virtual
|
||||
attr_reader :string
|
||||
|
||||
def result= value
|
||||
raise "called"
|
||||
class_for(MoveInstruction).new(value , self , :opcode => :mov)
|
||||
end
|
||||
def clazz
|
||||
|
Loading…
Reference in New Issue
Block a user