summaryrefslogtreecommitdiff
path: root/dump.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2012-04-30 18:18:03 -0700
committerFather Chrysostomos <sprout@cpan.org>2012-07-04 18:00:00 -0700
commitcc2ebcd790252079cb9b33d2eef133701a7eb63e (patch)
tree9d746020dfb4cd47c5501c69c93388452ef25d4d /dump.c
parentaba33b8a16881a79d8ef8ab7e7786e35cb84e6ae (diff)
downloadperl-cc2ebcd790252079cb9b33d2eef133701a7eb63e.tar.gz
Record folded constants in the op tree
Diffstat (limited to 'dump.c')
-rw-r--r--dump.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/dump.c b/dump.c
index b5240fb43f..ad3b96025c 100644
--- a/dump.c
+++ b/dump.c
@@ -745,6 +745,7 @@ const struct flag_to_name op_const_names[] = {
{OPpCONST_SHORTCIRCUIT, ",SHORTCIRCUIT"},
{OPpCONST_STRICT, ",STRICT"},
{OPpCONST_ENTERED, ",ENTERED"},
+ {OPpCONST_FOLDED, ",FOLDED"},
{OPpCONST_BARE, ",BARE"}
};
@@ -2923,6 +2924,8 @@ Perl_do_op_xmldump(pTHX_ I32 level, PerlIO *file, const OP *o)
sv_catpv(tmpsv, ",STRICT");
if (o->op_private & OPpCONST_ENTERED)
sv_catpv(tmpsv, ",ENTERED");
+ if (o->op_private & OPpCONST_FOLDED)
+ sv_catpv(tmpsv, ",FOLDED");
}
else if (o->op_type == OP_FLIP) {
if (o->op_private & OPpFLIP_LINENUM)