rename method_compiler

in line with other compiler XX_Compiler being the compiler for that layer
remove type from compiler as it is in method available
This commit is contained in:
Torsten Ruger
2018-06-29 14:48:52 +03:00
parent 114dc95b60
commit 6bd01fd55f
11 changed files with 14 additions and 17 deletions

View File

@ -135,7 +135,7 @@ module Risc
def add_known(name)
case name
when :receiver
ret = compiler.use_reg compiler.type
ret = compiler.use_reg compiler.method.for_type
add_slot_to_reg(" load self" , :message , :receiver , ret )
return ret
when :space
@ -236,7 +236,7 @@ module Risc
end
end
# A CompilerBuilder adds the generated code to the MethodCompiler.
# A CompilerBuilder adds the generated code to the RiscCompiler.
#
class CompilerBuilder < Builder
# add code straight to the compiler