summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-06 08:39:57 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-06 08:39:57 +0000
commitf825d848986177d779e8018a1083f88b8799ae5f (patch)
tree809011760b8e3ffa50a32d6a6fe69f3275bc69be /compile.c
parentbd8da69e9b5df785cc3fa0871332257e09335a78 (diff)
* compile.c (iseq_specialized_instruction), insns.def (opt_size):
optimize #size methods (by specialized instruction). * id.c, id.h, vm.c, vm_insnhelper.h: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/compile.c b/compile.c
index 42828a802b..d3c26671a6 100644
--- a/compile.c
+++ b/compile.c
@@ -1803,6 +1803,9 @@ iseq_specialized_instruction(rb_iseq_t *iseq, INSN *iobj)
if (mid == idLength) {
insn_set_specialized_instruction(iobj, BIN(opt_length));
}
+ else if (mid == idSize) {
+ insn_set_specialized_instruction(iobj, BIN(opt_size));
+ }
else if (mid == idSucc) {
insn_set_specialized_instruction(iobj, BIN(opt_succ));
}