Skip to content

Commit

Permalink
BC: ident DEBUG_v args
Browse files Browse the repository at this point in the history
  • Loading branch information
Reini Urban committed Oct 31, 2012
1 parent 5ada1e0 commit f163cf7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bytecode.pl
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ package B::Asmdata;
} else {
printf BYTERUN_C "\t\tBGET_%s(arg);\n", $fundtype;
}
printf BYTERUN_C "\t\tDEBUG_v(Perl_deb(aTHX_ \"(insn %%3d) $insn $argtype:%s\\n\", insn, $printarg%s));\n",
printf BYTERUN_C "\t\tDEBUG_v(Perl_deb(aTHX_ \"(insn %%3d) $insn $argtype:%s\\n\",\n\t\t\t\tinsn, $printarg%s));\n",
$argfmt, ($argtype =~ /index$/ ? ', (int)ix' : '');
if ($insn eq 'newopx' or $insn eq 'newop') {
print BYTERUN_C "\t\tDEBUG_v(Perl_deb(aTHX_ \"\t [%s %d]\\n\", PL_op_name[arg>>7], bstate->bs_ix));\n";
Expand All @@ -481,7 +481,7 @@ package B::Asmdata;
# Special setter method named after insn
print BYTERUN_C "\t\tif (force)\n\t" if $unsupp;
print BYTERUN_C "\t\tBSET_$insn($lvalue$optarg);\n";
my $optargcast = $optarg eq ", arg" ? ", $printarg" : '';
my $optargcast = $optarg eq ", arg" ? ",\n\t\t\t\t$printarg" : '';
$optargcast .= ($insn =~ /x$/ and $optarg eq ", arg" ? ", bstate->bs_ix-1" : '');
printf BYTERUN_C "\t\tDEBUG_v(Perl_deb(aTHX_ \"\t BSET_$insn($lvalue%s)\\n\"$optargcast));\n",
$optarg eq ", arg"
Expand Down

0 comments on commit f163cf7

Please sign in to comment.