more work on send, remove yaml hack in test
This commit is contained in:
@ -12,6 +12,9 @@ module Virtual
|
||||
# another abstract "marker" class (so we can check for it)
|
||||
# derived classes are Boot/Meta Class and StringConstant
|
||||
class ObjectConstant < Constant
|
||||
def type
|
||||
Virtual::Reference
|
||||
end
|
||||
end
|
||||
|
||||
class IntegerConstant < Constant
|
||||
@ -34,9 +37,6 @@ module Virtual
|
||||
@string = str
|
||||
end
|
||||
attr_reader :string
|
||||
def type
|
||||
Virtual::Reference
|
||||
end
|
||||
def result= value
|
||||
class_for(MoveInstruction).new(value , self , :opcode => :mov)
|
||||
end
|
||||
|
@ -67,11 +67,12 @@ module Virtual
|
||||
end
|
||||
|
||||
class MessageSend < Instruction
|
||||
def initialize name , args = []
|
||||
def initialize name , me , args = []
|
||||
@name = name.to_sym
|
||||
@me = me
|
||||
@args = args
|
||||
end
|
||||
attr_reader :name , :args
|
||||
attr_reader :name , :me , :args
|
||||
end
|
||||
|
||||
# class for Set instructions, A set is basically a mem move.
|
||||
|
Reference in New Issue
Block a user