ruby-changes:61287
From: Takashi <ko1@a...>
Date: Mon, 18 May 2020 15:43:07 +0900 (JST)
Subject: [ruby-changes:61287] 3bada9208a (master): Simplify maybe_special_const_class_p
https://git.ruby-lang.org/ruby.git/commit/?id=3bada9208a From 3bada9208afa8ad874e4e6037bd81f7b662a3180 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun <takashikkbn@g...> Date: Sun, 17 May 2020 23:42:24 -0700 Subject: Simplify maybe_special_const_class_p diff --git a/mjit_compile.c b/mjit_compile.c index 589ac50..6a17d24 100644 --- a/mjit_compile.c +++ b/mjit_compile.c @@ -118,17 +118,12 @@ fastpath_applied_iseq_p(const CALL_INFO ci, const CALL_CACHE cc, const rb_iseq_t https://github.com/ruby/ruby/blob/trunk/mjit_compile.c#L118 static bool maybe_special_const_class_p(const VALUE klass) { - if (klass == rb_cFalseClass + return klass == rb_cFalseClass || klass == rb_cNilClass || klass == rb_cTrueClass || klass == rb_cInteger || klass == rb_cSymbol - || klass == rb_cFloat) { - return true; - } - else { - return false; - } + || klass == rb_cFloat; } static int -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/