some checks

This commit is contained in:
Torsten Ruger 2014-10-07 12:23:27 +03:00
parent cae99f217c
commit 9ac165c34c
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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