remove MethodCall and thus all virtual instructions

This commit is contained in:
Torsten Ruger
2015-10-18 19:27:46 +03:00
parent 15b570f5cf
commit d767caf479
20 changed files with 24 additions and 72 deletions

View File

@ -38,7 +38,7 @@ module Phisol
method = clazz.get_instance_method(name)
#puts Virtual.machine.space.get_class_by_name(:Integer).method_names.to_a
raise "Method not implemented #{me.type}.#{name}" unless method
@method.source.add_code Virtual::MethodCall.new( method )
Register.issue_call( @method , method )
ret = use_reg( method.source.return_type )
# the effect of the method is that the NewMessage Return slot will be filled, return it
# but move it into a register too

View File

@ -42,7 +42,6 @@ module Phisol
kids.to_a.each do |ex|
ret = process(ex)
raise ret.inspect if ret.is_a? Virtual::Instruction
end
@method = nil
# function definition is a statement, does not return any value