[ruby-cvs:50192] charliesome:r43050 (trunk): * insns.def (opt_regexpmatch1): check Regexp#=~ is not defined before

charliesome at ruby-lang.org charliesome at ruby-lang.org
Thu Sep 26 16:39:50 JST 2013


charliesome	2013-09-26 16:39:48 +0900 (Thu, 26 Sep 2013)

  New Revision: 43050

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

  Log:
    * insns.def (opt_regexpmatch1): check Regexp#=~ is not defined before
      calling rb_reg_match()
    
    * test/ruby/test_regexp.rb: add test
    
    * vm.c (ruby_vm_redefined_flag): change type to short[]
    
    * vm.c (vm_redefinition_check_flag): return REGEXP_REDEFINED_OP_FLAG if
      klass == rb_cRegexp
    
    * vm.c (vm_init_redefined_flag): setup BOP flag for Regexp#=~
    
    * vm_insnhelper.h: add REGEXP_REDEFINED_OP_FLAG
    
    [ruby-core:57385] [Bug #8953]

  Modified files:
    trunk/ChangeLog
    trunk/insns.def
    trunk/test/ruby/test_regexp.rb
    trunk/vm.c
    trunk/vm_insnhelper.h


More information about the ruby-cvs mailing list