mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Enable fastpath on invokesuper
This commit is contained in:
parent
a01bda5949
commit
c171984ee3
1 changed files with 2 additions and 1 deletions
|
@ -3222,7 +3222,8 @@ vm_search_super_method(const rb_control_frame_t *reg_cfp, struct rb_call_data *c
|
|||
const struct rb_callcache *cc = vm_cc_new(klass, cme, vm_call_super_method);
|
||||
RB_OBJ_WRITE(reg_cfp->iseq, &cd->cc, cc);
|
||||
}
|
||||
else {
|
||||
else if (cached_cme->def->type == VM_METHOD_TYPE_REFINED) {
|
||||
// vm_call_refined checks cc->call
|
||||
vm_cc_call_set(cd->cc, vm_call_super_method);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue