summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-17 13:15:29 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-17 13:15:29 +0000
commit2731b91d80054f237bf4abf1fa280c2caa0e3109 (patch)
tree0afff0572d31b6bd65dc11e5b1643d14ba1cf88d /compile.c
parentdf62161d7e1e7e1878e6e4c834b61ebcc15b4f67 (diff)
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
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/compile.c b/compile.c
index bcd6ce8..a696cf0 100644
--- a/compile.c
+++ b/compile.c
@@ -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) {