fix most of slot_load to_risc
higher orders not working yet
This commit is contained in:
@ -84,7 +84,7 @@ module Risc
|
||||
# The class can be mapped to a register, and so we get a memory address (reg+index)
|
||||
def self.resolve_to_index( clazz_name , instance_name )
|
||||
return instance_name unless instance_name.is_a? Symbol
|
||||
real_name = clazz_name.to_s.split('_').last.capitalize.to_sym
|
||||
real_name = clazz_name.to_s.split('_').collect{|p|p.capitalize}.join.to_sym
|
||||
clazz = Parfait.object_space.get_class_by_name(real_name)
|
||||
raise "Class name not given #{real_name} #{clazz_name} #{instance_name}" unless clazz
|
||||
index = clazz.instance_type.variable_index( instance_name )
|
||||
|
Reference in New Issue
Block a user