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:
parent
1d81baf3c1
commit
18674aef0d
1 changed files with 10 additions and 3 deletions
|
@ -117,11 +117,18 @@ callable_class_p(VALUE klass)
|
||||||
static int
|
static int
|
||||||
callable_method_entry_p(const rb_callable_method_entry_t *cme)
|
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;
|
return TRUE;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return FALSE;
|
VM_ASSERT(IMEMO_TYPE_P((VALUE)cme, imemo_ment));
|
||||||
|
|
||||||
|
if (callable_class_p(cme->defined_class)) {
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue