fixing all the indexes

with the type word and layout
but the list starting at 1, indexes still need 1 added
and for arm x 4.
Tried to get all that into one function, resolve_index
This commit is contained in:
Torsten Ruger
2015-06-30 18:38:56 +03:00
parent 88f45cbf15
commit 9541712af8
7 changed files with 16 additions and 14 deletions

View File

@ -40,10 +40,11 @@ module Virtual
#find method and call
clazz = ref.type.of_class
begin
method = clazz.resolve_method code.name
method = clazz.resolve_method code.name
rescue
raise "No method found #{code.name} for #{clazz.name} in #{clazz.method_names}" unless method
raise "No method found #{code.name} for #{clazz.name} in #{clazz.method_names}" unless method
end
#puts "CALL is #{method.name}"
new_codes << MethodCall.new( method )
else
# must defer send to run-time