diff options
author | 卜部昌平 <shyouhei@ruby-lang.org> | 2020-05-29 17:42:23 +0900 |
---|---|---|
committer | 卜部昌平 <shyouhei@ruby-lang.org> | 2020-06-02 12:38:01 +0900 |
commit | 40ced763b4f97dd3bc3abfd4cb16580f7cf8e898 (patch) | |
tree | d749c82c65a835e350bd5ffcd0100c886d04e859 /insns.def | |
parent | 27bef648629760ffeda569057ddef6fb3be64b9a (diff) |
vm_insnhelper.c: merge opt_eq_func / opt_eql_func
These two function were almost identical, except in case of
T_STRING/T_FLOAT. Why not merge them into one, and let the difference be
handled in normal method calls (slowpath). This does not improve
runtime performance for me, but at least reduces for instance rb_eql_opt
from 653 bytes to 86 bytes on my machine, according to nm(1).
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3169
Diffstat (limited to 'insns.def')
-rw-r--r-- | insns.def | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1168,7 +1168,7 @@ opt_eq (VALUE recv, VALUE obj) (VALUE val) { - val = opt_eq_func(GET_ISEQ(), recv, obj, cd); + val = opt_equality(GET_ISEQ(), recv, obj, cd); if (val == Qundef) { CALL_SIMPLE_METHOD(); |