diff options
Diffstat (limited to 'vm_callinfo.h')
-rw-r--r-- | vm_callinfo.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vm_callinfo.h b/vm_callinfo.h index 0f90d109b8..30c4f703ba 100644 --- a/vm_callinfo.h +++ b/vm_callinfo.h @@ -316,11 +316,12 @@ vm_cc_markable(const struct rb_callcache *cc) return FL_TEST_RAW(cc, VM_CALLCACHE_UNMARKABLE) == 0; } +// For MJIT. cc_cme is supposed to have inlined `vm_cc_cme(cc)`. static inline bool -vm_cc_valid_p(const struct rb_callcache *cc, VALUE klass) +vm_cc_valid_p(const struct rb_callcache *cc, const rb_callable_method_entry_t *cc_cme, VALUE klass) { VM_ASSERT(IMEMO_TYPE_P(cc, imemo_callcache)); - if (cc->klass == klass && !METHOD_ENTRY_INVALIDATED(vm_cc_cme(cc))) { + if (cc->klass == klass && !METHOD_ENTRY_INVALIDATED(cc_cme)) { return 1; } else { |