aboutsummaryrefslogtreecommitdiffstats
path: root/insns.def
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2020-05-29 17:42:23 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2020-06-02 12:38:01 +0900
commit40ced763b4f97dd3bc3abfd4cb16580f7cf8e898 (patch)
treed749c82c65a835e350bd5ffcd0100c886d04e859 /insns.def
parent27bef648629760ffeda569057ddef6fb3be64b9a (diff)
downloadruby-40ced763b4f97dd3bc3abfd4cb16580f7cf8e898.tar.gz
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).
Diffstat (limited to 'insns.def')
-rw-r--r--insns.def2
1 files changed, 1 insertions, 1 deletions
diff --git a/insns.def b/insns.def
index 58349b0ccc..ba95655f9f 100644
--- a/insns.def
+++ b/insns.def
@@ -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();