diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-17 13:15:29 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-07-17 13:15:29 +0000 |
commit | 7e1db85dc56c76709222135cc04eaaa2d47be87e (patch) | |
tree | 0afff0572d31b6bd65dc11e5b1643d14ba1cf88d | |
parent | 2a2d2c662c834a0d256545700865e3a753e28386 (diff) | |
download | ruby-7e1db85dc56c76709222135cc04eaaa2d47be87e.tar.gz |
compile.c: remove unused big
* compile.c (iseq_compile_each): remove unused big flag, `while`
loop always leaves a result on the stack.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | compile.c | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -3726,10 +3726,6 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped) level++; if (ip->compile_data->redo_label != 0) { level = 0x8000; - if (ip->compile_data->loopval_popped == 0) { - /* need value */ - level |= 0x4000; - } goto break_by_insn; } else if (ip->type == ISEQ_TYPE_BLOCK) { @@ -3789,7 +3785,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped) break; } - level = 0x8000 | 0x4000; + level = 0x8000; if (ip->compile_data->redo_label != 0) { /* while loop */ break; @@ -3850,8 +3846,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped) } else { const rb_iseq_t *ip = iseq; - unsigned long level; - level = 0x8000 | 0x4000; + unsigned long level = 0x8000; while (ip) { if (!ip->compile_data) { |