renames compiler to method_compiler

This commit is contained in:
Torsten Ruger
2016-12-18 14:15:19 +02:00
parent 272f99daf7
commit 756cb52a98
22 changed files with 15 additions and 15 deletions

View File

@ -7,7 +7,7 @@ module Register
# so it is responsible for initial setup
def __init__ context
source = "__init__"
compiler = Typed::Compiler.new.create_method(:Kernel,:__init__ )
compiler = Typed::MethodCompiler.new.create_method(:Kernel,:__init__ )
# no method enter or return (automatically added), remove
new_start = Label.new(source , source )
compiler.method.instructions = new_start
@ -34,7 +34,7 @@ module Register
end
def exit context
compiler = Typed::Compiler.new.create_method(:Kernel,:exit ).init_method
compiler = Typed::MethodCompiler.new.create_method(:Kernel,:exit ).init_method
emit_syscall( compiler , :exit )
return compiler.method
end