diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-08-12 05:55:06 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-08-12 05:55:06 +0000 |
commit | de5d332b0a2c76ff48e552eeef99c384ac0f5a62 (patch) | |
tree | 62ac39f6330d9c77612cefa5931497c6d06e15a8 /vm.c | |
parent | b8b3a82d903272ad6ff12770c25ed1799608eda4 (diff) | |
download | ruby-de5d332b0a2c76ff48e552eeef99c384ac0f5a62.tar.gz ruby-de5d332b0a2c76ff48e552eeef99c384ac0f5a62.tar.xz ruby-de5d332b0a2c76ff48e552eeef99c384ac0f5a62.zip |
* insns.def, vm.c, vm_insnhelper.c, vm_insnhelper.h: check
definition of (classes)#=== for case/when optimization.
Fix Bug #1376 [ruby-core:23190].
* string.c (Init_String), bignum.c (Init_Bignum),
numeric.c (Init_Numeric): define String#===, Symbol#===,
Bignum#===, Fixnum#===, Float#=== as same as (classes)#==.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r-- | vm.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -968,6 +968,7 @@ vm_init_redefined_flag(void) OP(DIV, DIV), (C(Fixnum), C(Float)); OP(MOD, MOD), (C(Fixnum), C(Float)); OP(Eq, EQ), (C(Fixnum), C(Float), C(String)); + OP(Eqq, EQQ), (C(Fixnum), C(Bignum), C(Float), C(Symbol), C(String)); OP(LT, LT), (C(Fixnum)); OP(LE, LE), (C(Fixnum)); OP(LTLT, LTLT), (C(String), C(Array)); |