aboutsummaryrefslogtreecommitdiffstats
path: root/vm_callinfo.h
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2021-11-16 17:57:49 +0900
committerKoichi Sasada <ko1@atdot.net>2021-11-17 22:21:42 +0900
commitb2255153cf2fe9d7b851c59cc09b358c0630e0a2 (patch)
tree7d4142a5872963a91d94bbc5103e904258eb83c6 /vm_callinfo.h
parent84aba250315d7fea728a6708e33ae8bf11f607b2 (diff)
downloadruby-b2255153cf2fe9d7b851c59cc09b358c0630e0a2.tar.gz
`vm_empty_cc_for_super`
Same as `vm_empty_cc`, introduce a global variable which has `.call_ = vm_call_super_method`. Use it if the `cme == NULL` on `vm_search_super_method`.
Diffstat (limited to 'vm_callinfo.h')
-rw-r--r--vm_callinfo.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/vm_callinfo.h b/vm_callinfo.h
index fa35c98d17..2641ee79c5 100644
--- a/vm_callinfo.h
+++ b/vm_callinfo.h
@@ -382,6 +382,7 @@ vm_cc_valid_p(const struct rb_callcache *cc, const rb_callable_method_entry_t *c
}
extern const struct rb_callcache *rb_vm_empty_cc(void);
+extern const struct rb_callcache *rb_vm_empty_cc_for_super(void);
#define vm_cc_empty() rb_vm_empty_cc()
/* callcache: mutate */