summaryrefslogtreecommitdiff
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r--vm_insnhelper.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index c2608c7f62..cc35997eae 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -2796,13 +2796,7 @@ vm_search_super_method(const rb_control_frame_t *reg_cfp, struct rb_call_info *c
CC_SET_FASTPATH(cc, vm_call_method_missing, TRUE);
}
else {
-#if OPT_INLINE_METHOD_CACHE
- if (LIKELY(GET_GLOBAL_METHOD_STATE() == cc->method_state && RCLASS_SERIAL(klass) == cc->class_serial &&
- ci->mid == cc->me->def->original_id))
- return;
- cc->method_state = GET_GLOBAL_METHOD_STATE();
- cc->class_serial = RCLASS_SERIAL(klass);
-#endif
+ /* TODO: use inline cache */
cc->me = rb_callable_method_entry(klass, ci->mid);
CC_SET_FASTPATH(cc, vm_call_super_method, TRUE);
}