don't export current
This commit is contained in:
parent
ef6cb2a069
commit
c245272e52
@ -10,7 +10,7 @@ module Register
|
|||||||
# no method enter or return (automatically added), remove
|
# no method enter or return (automatically added), remove
|
||||||
new_start = Label.new(function , "__init__" )
|
new_start = Label.new(function , "__init__" )
|
||||||
function.instructions = new_start
|
function.instructions = new_start
|
||||||
function.source.current = new_start
|
function.source.set_current new_start
|
||||||
|
|
||||||
#Set up the Space as self upon init
|
#Set up the Space as self upon init
|
||||||
space = Parfait::Space.object_space
|
space = Parfait::Space.object_space
|
||||||
|
@ -58,8 +58,11 @@ module Register
|
|||||||
add_code FunctionReturn.new( self , Register.new_message_reg , Register.resolve_index(:message , :return_address) )
|
add_code FunctionReturn.new( self , Register.new_message_reg , Register.resolve_index(:message , :return_address) )
|
||||||
@current = enter
|
@current = enter
|
||||||
end
|
end
|
||||||
attr_accessor :current , :method
|
attr_accessor :method
|
||||||
|
|
||||||
|
def set_current c
|
||||||
|
@current = c
|
||||||
|
end
|
||||||
# add an instruction after the current (insertion point)
|
# add an instruction after the current (insertion point)
|
||||||
# the added instruction will become the new insertion point
|
# the added instruction will become the new insertion point
|
||||||
def add_code instruction
|
def add_code instruction
|
||||||
|
Loading…
Reference in New Issue
Block a user