mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Simplify maybe_special_const_class_p
This commit is contained in:
parent
b16a2aa938
commit
3bada9208a
1 changed files with 2 additions and 7 deletions
|
@ -118,17 +118,12 @@ fastpath_applied_iseq_p(const CALL_INFO ci, const CALL_CACHE cc, const rb_iseq_t
|
||||||
static bool
|
static bool
|
||||||
maybe_special_const_class_p(const VALUE klass)
|
maybe_special_const_class_p(const VALUE klass)
|
||||||
{
|
{
|
||||||
if (klass == rb_cFalseClass
|
return klass == rb_cFalseClass
|
||||||
|| klass == rb_cNilClass
|
|| klass == rb_cNilClass
|
||||||
|| klass == rb_cTrueClass
|
|| klass == rb_cTrueClass
|
||||||
|| klass == rb_cInteger
|
|| klass == rb_cInteger
|
||||||
|| klass == rb_cSymbol
|
|| klass == rb_cSymbol
|
||||||
|| klass == rb_cFloat) {
|
|| klass == rb_cFloat;
|
||||||
return true;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue