mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
55cfc1e409
commit
f1e98086f2
3 changed files with 16 additions and 4 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue