Skip to content

Commit 14b937f

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 bce5eba commit 14b937f

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
@@ -1478,6 +1478,7 @@ S_do_op_dump_bar(pTHX_ I32 level, UV bar, PerlIO *file, const OP *o,
14781478
case OP_AELEMFAST:
14791479
case OP_GVSV:
14801480
case OP_GV:
1481+
case OP_RCATLINE:
14811482
{
14821483
GV *gv;
14831484
#ifdef USE_ITHREADS
@@ -1519,6 +1520,7 @@ S_do_op_dump_bar(pTHX_ I32 level, UV bar, PerlIO *file, const OP *o,
15191520
case OP_CONST:
15201521
case OP_HINTSEVAL:
15211522
case OP_COREARGS:
1523+
case OP_ANONCODE:
15221524
/* an SVOP. On non-threaded builds, these OPs use op_sv to hold
15231525
* the SV associated with the const / hints hash / op num.
15241526
* On threaded builds, op_sv initially holds the SV, then at the

0 commit comments

Comments
 (0)