diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-06 08:39:57 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-06 08:39:57 +0000 |
commit | f825d848986177d779e8018a1083f88b8799ae5f (patch) | |
tree | 809011760b8e3ffa50a32d6a6fe69f3275bc69be /compile.c | |
parent | bd8da69e9b5df785cc3fa0871332257e09335a78 (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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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)); } |