remove unused set instruction

This commit is contained in:
Torsten Ruger
2015-10-16 17:45:24 +03:00
parent 5e04ee7212
commit 9ae850e3b2
4 changed files with 0 additions and 61 deletions

View File

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

View File

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