[ruby-cvs:71360] mame:r64268 (trunk): insns.def (invokesuper): remove a dummy receiever flag hack for ZSUPER

mame at ruby-lang.org mame at ruby-lang.org
Fri Aug 10 16:45:16 JST 2018


mame	2018-08-10 16:45:16 +0900 (Fri, 10 Aug 2018)

  New Revision: 64268

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

  Log:
    insns.def (invokesuper): remove a dummy receiever flag hack for ZSUPER
    
    This is just a refactoring.
    
    The receiver of "invokesuper" was a boolean to represent if it is ZSUPER
    or not.  This was used in vm_search_super_method to prohibit ZSUPER call
    in define_method. (It is currently prohibited because of the limitation
    of the implementation.)
    
    This change removes the hack by introducing an explicit flag,
    VM_CALL_SUPER, to signal the information.  Now, the implementation of
    "invokesuper" is consistent with "send" instruction.

  Modified files:
    trunk/compile.c
    trunk/insns.def
    trunk/iseq.c
    trunk/vm_core.h
    trunk/vm_insnhelper.c


More information about the ruby-cvs mailing list