aboutsummaryrefslogtreecommitdiffstats
path: root/insns.def
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-13 21:55:28 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-13 21:55:28 +0000
commit6c0a375c58e99d1f5f1c9b9754d1bb87f1646f61 (patch)
tree1ab207476fba06800d90209fe001d37fe8ffbdbc /insns.def
parent97c2eac2dfe48dcaddb7454035b5cec005976246 (diff)
downloadruby-6c0a375c58e99d1f5f1c9b9754d1bb87f1646f61.tar.gz
insns.def (opt_succ): remove Time#succ optimization
Time#succ is a deprecated method and not frequently used, so this wastes icache in vm_exec_core. Using bloat-o-meter in the Linux kernel source to shows a small reduction on my x86-64 system: $ ~/linux/scripts/bloat-o-meter ruby.before ruby.after add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-57 (-57) function old new delta vm_exec_core 24216 24159 -57 [Feature #10501] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'insns.def')
-rw-r--r--insns.def4
1 files changed, 0 insertions, 4 deletions
diff --git a/insns.def b/insns.def
index 9e1c16be4c..eae0b8e1d8 100644
--- a/insns.def
+++ b/insns.def
@@ -2105,10 +2105,6 @@ opt_succ
BASIC_OP_UNREDEFINED_P(BOP_SUCC, STRING_REDEFINED_OP_FLAG)) {
val = rb_str_succ(recv);
}
- else if (RBASIC_CLASS(recv) == rb_cTime &&
- BASIC_OP_UNREDEFINED_P(BOP_SUCC, TIME_REDEFINED_OP_FLAG)) {
- val = rb_time_succ(recv);
- }
else
{
goto INSN_LABEL(normal_dispatch);