rename for_type to self_type

and split a base class off TypedMethod
This commit is contained in:
Torsten Ruger
2018-07-06 20:01:17 +03:00
parent 3f80953385
commit acd5cd8f30
19 changed files with 103 additions and 75 deletions

View File

@ -135,7 +135,7 @@ module Risc
def add_known(name)
case name
when :receiver
ret = compiler.use_reg compiler.method.for_type
ret = compiler.use_reg compiler.method.self_type
add_slot_to_reg(" load self" , :message , :receiver , ret )
return ret
when :space
@ -184,7 +184,7 @@ module Risc
when :arguments
type = compiler.method.arguments_type
when :receiver
type = compiler.method.for_type
type = compiler.method.self_type
when Parfait::Object
type = Parfait.object_space.get_class_by_name( object.class.name.split("::").last.to_sym).instance_type
when Symbol