From f1e98086f218f1d5de247f1670f94bfcdff2bf33 Mon Sep 17 00:00:00 2001 From: ko1 Date: Sun, 6 Sep 2009 09:16:23 +0000 Subject: * vm_insnhelper.h (CALL_SIMPLE_METHOD_IC): make a macro invoke simple method with inline cache entry. * insns.def (opt_length, opt_size): fix to use inline method cache. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_insnhelper.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'vm_insnhelper.h') diff --git a/vm_insnhelper.h b/vm_insnhelper.h index bb4cef553b..d4dd5aec4d 100644 --- a/vm_insnhelper.h +++ b/vm_insnhelper.h @@ -189,4 +189,9 @@ extern VALUE ruby_vm_const_missing_count; CALL_METHOD(num, 0, 0, id, rb_method_entry(klass, id), recv); \ } while (0) +#define CALL_SIMPLE_METHOD_IC(num, id, recv, ic) do { \ + VALUE klass = CLASS_OF(recv); \ + CALL_METHOD(num, 0, 0, id, vm_method_search(id, klass, ic), recv); \ +} while (0) + #endif /* RUBY_INSNHELPER_H */ -- cgit v1.2.3