don't export current

This commit is contained in:
Torsten Ruger 2015-10-28 14:37:40 +02:00
parent ef6cb2a069
commit c245272e52
2 changed files with 5 additions and 2 deletions

View File

@ -10,7 +10,7 @@ module Register
# no method enter or return (automatically added), remove
new_start = Label.new(function , "__init__" )
function.instructions = new_start
function.source.current = new_start
function.source.set_current new_start
#Set up the Space as self upon init
space = Parfait::Space.object_space

View File

@ -58,8 +58,11 @@ module Register
add_code FunctionReturn.new( self , Register.new_message_reg , Register.resolve_index(:message , :return_address) )
@current = enter
end
attr_accessor :current , :method
attr_accessor :method
def set_current c
@current = c
end
# add an instruction after the current (insertion point)
# the added instruction will become the new insertion point
def add_code instruction