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 | 02695684d617d8973b495b1317670cdd84fd9e76 (patch) | |
tree | 809011760b8e3ffa50a32d6a6fe69f3275bc69be /compile.c | |
parent | 228994868ff2f9584ea499f06cffa53cb3c2723a (diff) | |
download | ruby-02695684d617d8973b495b1317670cdd84fd9e76.tar.gz ruby-02695684d617d8973b495b1317670cdd84fd9e76.tar.xz ruby-02695684d617d8973b495b1317670cdd84fd9e76.zip |
* 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: http://svn.ruby-lang.org/repos/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)); } |