Skip to content

Commit f1170a0

Browse files
committed
op_dump(): add RCATLINE, ANONCODE as SV-holding
The OP_RCATLINE op has a GV attached. So When dumping OPs, display its value, similarly to what is already done for other GV-holding ops like OP_GVSV. Similarly, OP_ANONCODE has a CV attached.
1 parent 8b15627 commit f1170a0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dump.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1476,6 +1476,7 @@ S_do_op_dump_bar(pTHX_ I32 level, UV bar, PerlIO *file, const OP *o,
14761476
case OP_AELEMFAST:
14771477
case OP_GVSV:
14781478
case OP_GV:
1479+
case OP_RCATLINE:
14791480
{
14801481
GV *gv;
14811482
#ifdef USE_ITHREADS
@@ -1517,6 +1518,7 @@ S_do_op_dump_bar(pTHX_ I32 level, UV bar, PerlIO *file, const OP *o,
15171518
case OP_CONST:
15181519
case OP_HINTSEVAL:
15191520
case OP_COREARGS:
1521+
case OP_ANONCODE:
15201522
/* an SVOP. On non-threaded builds, these OPs use op_sv to hold
15211523
* the SV associated with the const / hints hash / op num.
15221524
* On threaded builds, op_sv initially holds the SV, then at the

0 commit comments

Comments
 (0)