Skip to content

Commit

Permalink
BC: rename newpadl to newpadlx
Browse files Browse the repository at this point in the history
  • Loading branch information
Reini Urban committed Nov 2, 2012
1 parent f163cf7 commit 2cb0016
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions ByteLoader/bytecode.h
Original file line number Diff line number Diff line change
Expand Up @@ -748,12 +748,12 @@ static int bget_swab = 0;
} STMT_END

#if PERL_VERSION >= 17
#define BSET_newpadl(padl, arg) STMT_START { \
#define BSET_newpadlx(padl, arg) STMT_START { \
padl = (SV*)Perl_pad_new(arg); \
BSET_OBJ_STOREX(padl); \
} STMT_END
#define BSET_padl_name(padl, pad) PadlistARRAY((PADLIST*)padl)[0] = (PAD*)pad;
#define BSET_padl_sym(padl, pad) PadlistARRAY((PADLIST*)padl)[1] = (PAD*)pad;
#define BSET_padl_name(padl, pad) PadlistARRAY((PADLIST*)padl)[0] = (PAD*)pad
#define BSET_padl_sym(padl, pad) PadlistARRAY((PADLIST*)padl)[1] = (PAD*)pad
#endif

/* NOTE: The bytecode header only sanity-checks the bytecode. If a script cares about
Expand Down
6 changes: 3 additions & 3 deletions bytecode.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1042,6 +1042,6 @@ =head1 AUTHOR
# restore dup to stdio handles 0-2
158 0 xio_ifp bstate->bs_sv char x
159 10 xpvshared bstate->bs_sv none x
160 17.005 newpadl bstate->bs_sv U8 x
161 17.005 padl_name PadlistARRAY((PADLIST*)bstate->bs_sv)[0] svindex x
162 17.005 padl_sym PadlistARRAY((PADLIST*)bstate->bs_sv)[1] svindex x
160 17.005 newpadlx bstate->bs_sv U8 x
161 17.005 padl_name bstate->bs_sv svindex x
162 17.005 padl_sym bstate->bs_sv svindex x
2 changes: 1 addition & 1 deletion lib/B/Assembler.pm
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ sub asm ($;$$) {
if ( defined $_[1] ) {
return
if $_[1] eq "0"
and $_[0] !~ /^(?:ldsv|stsv|newsvx?|newpadl|av_pushx?|av_extend|xav_flags)$/;
and $_[0] !~ /^(?:ldsv|stsv|newsvx?|newpadlx|av_pushx?|av_extend|xav_flags)$/;
return if $_[1] eq "1" and $]>5.007 and $_[0] =~ /^(?:sv_refcnt)$/;
}
my ( $insn, $arg, $comment ) = @_;
Expand Down
2 changes: 1 addition & 1 deletion lib/B/Bytecode.pm
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ sub B::PADLIST::ix {
defined($ix) ? $ix : do {
nice '[' . class($padl) . " $tix]";
B::Assembler::maxsvix($tix) if $debug{A};
asm "newpadl", 0;
asm "newpadlx", 0;
$svtab{$$padl} = $varix = $ix = $tix++;
$padl->bsave($ix);
$ix;
Expand Down
2 changes: 1 addition & 1 deletion lib/B/Disassembler.pm
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ sub print_insn {
$arg .= sprintf( " \t# size:%d, type:%d %s", $size, $type ) if $comment;
printf "\n# [%s %d]\n", $opname[$type], $ix++;
}
elsif ( $insn eq 'newpadl' ) {
elsif ( $insn eq 'newpadlx' ) {
$arg .= "\t# " . $comment if $comment ne '1';
printf "\n# [%s %d]\n", "PADLIST", $ix++;
}
Expand Down

0 comments on commit 2cb0016

Please sign in to comment.