[ruby-cvs:59286] nobu:r52135 (trunk): proc.c: refine ifunc checks

nobu at ruby-lang.org nobu at ruby-lang.org
Fri Oct 16 00:54:48 JST 2015


nobu	2015-10-16 00:54:48 +0900 (Fri, 16 Oct 2015)

  New Revision: 52135

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52135

  Log:
    proc.c: refine ifunc checks
    
    * proc.c (IS_METHOD_PROC_IFUNC): separate from IS_METHOD_PROC_ISEQ
      for vm_ifunc.
    
    * proc.c (rb_proc_get_iseq): use RUBY_VM_IFUNC_P to see if iseq is
      an ifunc.
    
    * proc.c (rb_proc_get_iseq, proc_binding): reduce redundant checsk
      by IS_METHOD_PROC_IFUNC.

  Modified files:
    trunk/proc.c


More information about the ruby-cvs mailing list