fxes for add test

This commit is contained in:
Torsten Ruger
2015-08-04 21:46:33 +03:00
parent 4a51bdd643
commit 9680ff2a71
9 changed files with 42 additions and 13 deletions

View File

@ -19,7 +19,7 @@ module Virtual
if(ref.value)
me = ref.value
if( me.is_a? Parfait::Class )
raise "unimplemented #{code}"
raise "unimplemented #{code} me is #{me}"
elsif( me.is_a? Parfait::Object )
# get the function from my class. easy peasy
puts "Me is #{me.class}"
@ -31,6 +31,11 @@ module Virtual
method = Virtual.machine.space.get_class_by_name(:Word).get_instance_method(code.name)
raise "Method not implemented #{me.class}.#{code.name}" unless method
new_codes << MethodCall.new( method )
elsif( me.is_a? Fixnum )
# get the function from my class. easy peasy
method = Virtual.machine.space.get_class_by_name(:Integer).get_instance_method(code.name)
raise "Method not implemented #{me.class}.#{code.name}" unless method
new_codes << MethodCall.new( method )
else
# note: this is the current view: call internal send, even the method name says else
# but send is "special" and accesses the internal method name and resolves.