2014-10-03 10:25:10 +03:00
|
|
|
module Virtual
|
|
|
|
|
|
|
|
# class for Set instructions, A set is basically a mem move.
|
2015-05-30 12:20:39 +03:00
|
|
|
# to and from are indexes into the known objects(frame,message,self and new_message),
|
|
|
|
# these are represented as slots (see there)
|
2014-10-03 10:25:10 +03:00
|
|
|
# from may be a Constant (Object,Integer,String,Class)
|
|
|
|
class Set < Instruction
|
|
|
|
def initialize to , from
|
|
|
|
@to = to
|
|
|
|
@from = from
|
|
|
|
end
|
2015-05-06 15:15:33 +03:00
|
|
|
attr_reader :from , :to
|
2014-10-03 10:25:10 +03:00
|
|
|
end
|
|
|
|
end
|