diff options
author | 卜部昌平 <shyouhei@ruby-lang.org> | 2020-06-01 14:01:51 +0900 |
---|---|---|
committer | 卜部昌平 <shyouhei@ruby-lang.org> | 2020-06-09 09:52:46 +0900 |
commit | be5dfdd8a2d67dd845081c63b6994148930c5c53 (patch) | |
tree | 999763984797bd1e59b285c37a69dc1fa70172ed | |
parent | dbbde61cefdcdef9054dde2e799e1ff9df343575 (diff) |
vm_call_zsuper: no call vm_cc_fill
This changeset reduces the generated binary of vm_call_method_each_type
from 2,522 bytes to 2,442 bytes on my machine, accroding to nm(1).
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3179
-rw-r--r-- | vm_insnhelper.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c index 19898fb176..c4d12aaa7e 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -2931,13 +2931,10 @@ vm_call_zsuper(rb_execution_context_t *ec, rb_control_frame_t *cfp, struct rb_ca cme = refined_method_callable_without_refinement(cme); } - struct rb_callcache cc_body; - struct rb_call_data cd_body = { + return vm_call_method_each_type(ec, cfp, calling, &(struct rb_call_data) { .ci = cd->ci, - .cc = vm_cc_fill(&cc_body, Qundef, cme, 0), - }; - return vm_call_method_each_type(ec, cfp, calling, &cd_body); - + .cc = &VM_CC_ON_STACK(Qundef, vm_call_general, { 0 }, cme), + }); } static inline VALUE |