no need to check cme == NULL
Now `cc->cme_` is not NULL.
This commit is contained in:
parent
7ec1fc37f4
commit
b95d7d2099
Notes:
git
2021-11-17 22:22:03 +09:00
@ -1949,8 +1949,7 @@ vm_search_method_fastpath(VALUE cd_owner, struct rb_call_data *cd, VALUE klass)
|
|||||||
|
|
||||||
#if OPT_INLINE_METHOD_CACHE
|
#if OPT_INLINE_METHOD_CACHE
|
||||||
if (LIKELY(vm_cc_class_check(cc, klass))) {
|
if (LIKELY(vm_cc_class_check(cc, klass))) {
|
||||||
const struct rb_callable_method_entry_struct *cme = vm_cc_cme(cc);
|
if (LIKELY(!METHOD_ENTRY_INVALIDATED(vm_cc_cme(cc)))) {
|
||||||
if (LIKELY(cme && !METHOD_ENTRY_INVALIDATED(cme))) {
|
|
||||||
VM_ASSERT(callable_method_entry_p(vm_cc_cme(cc)));
|
VM_ASSERT(callable_method_entry_p(vm_cc_cme(cc)));
|
||||||
RB_DEBUG_COUNTER_INC(mc_inline_hit);
|
RB_DEBUG_COUNTER_INC(mc_inline_hit);
|
||||||
VM_ASSERT(vm_cc_cme(cc) == NULL || // not found
|
VM_ASSERT(vm_cc_cme(cc) == NULL || // not found
|
||||||
|
Loading…
x
Reference in New Issue
Block a user