From 8f0fb7e4e29b40e8c7a4554a819d1d8c3674d2fc Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Sun, 5 Oct 2014 01:10:10 +0300 Subject: [PATCH] correct function call to method call (includes vm setup) --- lib/virtual/passes/send_implementation.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/virtual/passes/send_implementation.rb b/lib/virtual/passes/send_implementation.rb index c7ef5af2..899273d6 100644 --- a/lib/virtual/passes/send_implementation.rb +++ b/lib/virtual/passes/send_implementation.rb @@ -22,13 +22,13 @@ module Virtual # get the function from my class. easy peasy method = me.clazz.get_instance_method(code.name) raise "Method not implemented #{clazz.name}.#{code.name}" unless method - new_codes << Register::FunctionCall.new( 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. kernel = Virtual::BootSpace.space.get_or_create_class(:Kernel) method = kernel.get_instance_method(:__send) - new_codes << Register::FunctionCall.new( method ) + new_codes << MethodCall.new( method ) raise "unimplemented #{code}" end else