summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2013-09-15 15:37:43 -0700
committerFather Chrysostomos <sprout@cpan.org>2013-09-16 08:22:51 -0700
commit51bed69aaa2e68c52d7ae58440ff51a40ccd0923 (patch)
tree8c039fecb437101561c88fc9fa983eab2ee1406d /op.c
parent650b15348faa8fd7a1ec5848500a25bc9174ef9c (diff)
downloadperl-51bed69aaa2e68c52d7ae58440ff51a40ccd0923.tar.gz
Remove OPpCONST_FOLDED
Now that we have op->op_folded, we don’t need OPpCONST_FOLDED any more. In removing it, I modified B::Concise to output op_folded the way OPpCONST_FOLDED was output before, since it can be helpful to have it when reading op dumps.
Diffstat (limited to 'op.c')
-rw-r--r--op.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/op.c b/op.c
index 3ea01950d8..87e3403f16 100644
--- a/op.c
+++ b/op.c
@@ -3439,7 +3439,7 @@ S_fold_constants(pTHX_ OP *o)
newop = newGVOP(OP_GV, 0, MUTABLE_GV(sv));
else
{
- newop = newSVOP(OP_CONST, OPpCONST_FOLDED<<8, MUTABLE_SV(sv));
+ newop = newSVOP(OP_CONST, 0, MUTABLE_SV(sv));
newop->op_folded = 1;
}
op_getmad(o,newop,'f');
@@ -6015,8 +6015,6 @@ S_new_logop(pTHX_ I32 type, I32 flags, OP** firstp, OP** otherp)
|| other->op_type == OP_TRANS)
/* Mark the op as being unbindable with =~ */
other->op_flags |= OPf_SPECIAL;
- else if (other->op_type == OP_CONST)
- other->op_private |= OPpCONST_FOLDED;
other->op_folded = 1;
return other;
@@ -6178,8 +6176,6 @@ Perl_newCONDOP(pTHX_ I32 flags, OP *first, OP *trueop, OP *falseop)
|| live->op_type == OP_TRANS || live->op_type == OP_TRANSR)
/* Mark the op as being unbindable with =~ */
live->op_flags |= OPf_SPECIAL;
- else if (live->op_type == OP_CONST)
- live->op_private |= OPpCONST_FOLDED;
live->op_folded = 1;
return live;
}