1
0
Fork 0
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:
Takashi Kokubun 2020-04-11 19:00:08 -07:00
parent a01bda5949
commit c171984ee3
No known key found for this signature in database
GPG key ID: 6FFC433B12EE23DD

View file

@ -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);
}
}