summaryrefslogtreecommitdiff
path: root/vm_insnhelper.h
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-24 11:47:00 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-24 11:47:00 +0000
commitf0da2e1657e645233faff25faeb05905dd350623 (patch)
tree8989f7e0eb41ecf20b74c9551687b06f28f010e4 /vm_insnhelper.h
parent8c6a26ab8e1d9ba48f904c165a175d55732a5240 (diff)
* vm_insnhelper.c (vm_call_method): use class of method defined
instead of receiver's class on bmethod. fixes [ruby-core:20786] * bootstraptest/test_method.rb: add a test for above. * vm_insnhelper.c (vm_setup_method): remove unused parameter klass. * vm_insnhelper.h (CALL_METHOD): ditto. * insns.def, vm_eval.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_insnhelper.h')
-rw-r--r--vm_insnhelper.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/vm_insnhelper.h b/vm_insnhelper.h
index 613d997..6000f94 100644
--- a/vm_insnhelper.h
+++ b/vm_insnhelper.h
@@ -158,8 +158,8 @@ extern VALUE ruby_vm_global_state_version;
c1->nd_next = __tmp_c2->nd_next; \
} while (0)
-#define CALL_METHOD(num, blockptr, flag, id, mn, recv, klass) do { \
- VALUE v = vm_call_method(th, GET_CFP(), num, blockptr, flag, id, mn, recv, klass); \
+#define CALL_METHOD(num, blockptr, flag, id, mn, recv) do { \
+ VALUE v = vm_call_method(th, GET_CFP(), num, blockptr, flag, id, mn, recv); \
if (v == Qundef) { \
RESTORE_REGS(); \
NEXT_INSN(); \
@@ -188,7 +188,7 @@ extern VALUE ruby_vm_global_state_version;
#define CALL_SIMPLE_METHOD(num, id, recv) do { \
VALUE klass = CLASS_OF(recv); \
- CALL_METHOD(num, 0, 0, id, rb_method_node(klass, id), recv, CLASS_OF(recv)); \
+ CALL_METHOD(num, 0, 0, id, rb_method_node(klass, id), recv); \
} while (0)
#endif /* RUBY_INSNHELPER_H */