1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

check imemo_type

check imemo_type to debug
http://ci.rvm.jp/results/trunk-vm-asserts@silicon-docker/2744755
This commit is contained in:
Koichi Sasada 2020-02-27 10:47:23 +09:00
parent 1d81baf3c1
commit 18674aef0d

View file

@ -117,13 +117,20 @@ callable_class_p(VALUE klass)
static int
callable_method_entry_p(const rb_callable_method_entry_t *cme)
{
if (cme == NULL || callable_class_p(cme->defined_class)) {
if (cme == NULL) {
return TRUE;
}
else {
VM_ASSERT(IMEMO_TYPE_P((VALUE)cme, imemo_ment));
if (callable_class_p(cme->defined_class)) {
return TRUE;
}
else {
return FALSE;
}
}
}
static void
vm_check_frame_detail(VALUE type, int req_block, int req_me, int req_cref, VALUE specval, VALUE cref_or_me, int is_cframe, const rb_iseq_t *iseq)