move get implementation to virtual as it should not result in register action

This commit is contained in:
Torsten Ruger
2014-08-28 08:43:38 +03:00
parent 41de2b5822
commit fb42cb16f0
3 changed files with 1 additions and 1 deletions

View File

@ -1,15 +0,0 @@
module Register
# This implements instance variable get (not the opposite of Set, such a thing does not exists, their slots)
# Ivar get needs to acces the layout, find the index of the name, and shuffle the data to return register
# In short it's so complicated we implement it in ruby and stick the implementation here
class GetImplementation
def run block
block.codes.dup.each do |code|
next unless code.is_a? Virtual::InstanceGet
raise "Start coding"
end
end
end
Virtual::BootSpace.space.add_pass_after GetImplementation, Virtual::SendImplementation
end

View File

@ -146,7 +146,6 @@ module Register
end
require_relative "instruction"
require_relative "register_reference"
require_relative "get_implementation"
require_relative "set_implementation"
require_relative "call_implementation"
require_relative "enter_implementation"