remove unused set instruction
This commit is contained in:
@ -18,4 +18,3 @@ require_relative "instructions/method_call"
|
||||
require_relative "instructions/method_enter"
|
||||
require_relative "instructions/method_return"
|
||||
require_relative "instructions/new_frame"
|
||||
require_relative "instructions/set"
|
||||
|
@ -1,15 +0,0 @@
|
||||
module Virtual
|
||||
|
||||
# class for Set instructions, A set is basically a mem move.
|
||||
# to and from are indexes into the known objects(frame,message,self and new_message),
|
||||
# these are represented as slots (see there)
|
||||
# from may be a Constant (Object,Integer,String,Class)
|
||||
class Set < Instruction
|
||||
def initialize from , to
|
||||
raise "no to slot #{to.inspect}" unless to.is_a? Slot
|
||||
@from = from
|
||||
@to = to
|
||||
end
|
||||
attr_reader :from , :to
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user