ruby-changes:46768
From: nobu <ko1@a...>
Date: Thu, 25 May 2017 16:36:52 +0900 (JST)
Subject: [ruby-changes:46768] nobu:r58883 (trunk): vm_insnhelper.c: remove redefinitions and undefine after used
nobu 2017-05-25 16:36:47 +0900 (Thu, 25 May 2017) New Revision: 58883 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58883 Log: vm_insnhelper.c: remove redefinitions and undefine after used Modified files: trunk/vm_insnhelper.c Index: vm_insnhelper.c =================================================================== --- vm_insnhelper.c (revision 58882) +++ vm_insnhelper.c (revision 58883) @@ -1344,8 +1344,6 @@ inline https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.c#L1344 VALUE opt_eql_func(VALUE recv, VALUE obj, CALL_INFO ci, CALL_CACHE cc) { -#define BUILTIN_CLASS_P(x, k) (!SPECIAL_CONST_P(x) && RBASIC_CLASS(x) == k) -#define EQ_UNREDEFINED_P(t) BASIC_OP_UNREDEFINED_P(BOP_EQ, t##_REDEFINED_OP_FLAG) if (FIXNUM_2_P(recv, obj)) { if (EQ_UNREDEFINED_P(INTEGER)) { return (recv == obj) ? Qtrue : Qfalse; @@ -1377,6 +1375,8 @@ opt_eql_func(VALUE recv, VALUE obj, CALL https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.c#L1375 return Qundef; } +#undef BUILTIN_CLASS_P +#undef EQ_UNREDEFINED_P VALUE rb_equal_opt(VALUE obj1, VALUE obj2) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/