remove MethodCall and thus all virtual instructions
This commit is contained in:
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user