Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ext/Opcode/Opcode.pm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package Opcode 1.61;
package Opcode 1.62;

use strict;

Expand Down Expand Up @@ -336,6 +336,7 @@ invert_opset function.
warn die lineseq nextstate scope enter leave

rv2cv anoncode prototype coreargs avhvswitch anonconst
emptyavhv

entersub leavesub leavesublv return method method_named
method_super method_redir method_redir_super
Expand Down
19 changes: 17 additions & 2 deletions lib/B/Deparse.pm
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
# This is based on the module of the same name by Malcolm Beattie,
# but essentially none of his code remains.

package B::Deparse 1.70;
package B::Deparse 1.71;
use strict;
use Carp;
use B qw(class main_root main_start main_cv svref_2object opnumber perlstring
OPf_WANT OPf_WANT_VOID OPf_WANT_SCALAR OPf_WANT_LIST
OPf_KIDS OPf_REF OPf_STACKED OPf_SPECIAL OPf_MOD OPf_PARENS
OPpLVAL_INTRO OPpOUR_INTRO OPpENTERSUB_AMPER OPpSLICE OPpKVSLICE
OPpCONST_BARE
OPpCONST_BARE OPpEMPTYAVHV_IS_HV
OPpTRANS_SQUASH OPpTRANS_DELETE OPpTRANS_COMPLEMENT OPpTARGET_MY
OPpEXISTS_SUB OPpSORT_NUMERIC OPpSORT_INTEGER OPpREPEAT_DOLIST
OPpSORT_REVERSE OPpMULTIDEREF_EXISTS OPpMULTIDEREF_DELETE
Expand Down Expand Up @@ -2785,6 +2785,21 @@ sub pp_anonlist {

*pp_anonhash = \&pp_anonlist;

sub pp_emptyavhv {
my $self = shift;
my ($op, $cx, $forbid_parens) = @_;
my $val = ($op->private & OPpEMPTYAVHV_IS_HV) ? '{}' : '[]';
if ($op->private & OPpTARGET_MY) {
my $targ = $op->targ;
my $var = $self->maybe_my($op, $cx, $self->padname($targ),
$self->padname_sv($targ),
$forbid_parens);
return $self->maybe_parens("$var = $val", $cx, 7);
} else {
return $val;
}
}

sub pp_refgen {
my $self = shift;
my($op, $cx) = @_;
Expand Down
16 changes: 10 additions & 6 deletions lib/B/Op_private.pm

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading