Skip to content

Commit

Permalink
Merge branch 'unroll-loops' of git://github.com/rurban/perl-compiler …
Browse files Browse the repository at this point in the history
…into unroll-loops
  • Loading branch information
wbraswell committed Oct 31, 2012
2 parents c9c47c2 + fdb7991 commit 427d506
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lib/B/CC.pm
Expand Up @@ -672,6 +672,9 @@ sub runtime {
sub init_pp {
$ppname = shift;
$declare_ref = {};
if ($runtime) {
$runtime->[-1]{values} = $runtime->[-1]{dbg} = [];
}
runtime("dSP;");
declare( "I32", "oldsave" );
map { declare( "SV", "*$_" ) } qw(sv src dst left right);
Expand Down
2 changes: 1 addition & 1 deletion lib/B/Stackobj.pm
Expand Up @@ -411,7 +411,7 @@ sub B::Stackobj::Aelem::new {
my $sv;
# pop ix before av
if ($av eq 'POPs' and $ix eq 'POPi') {
$sv = "({ oldsave = SvIVX(POPs); AvARRAY(POPs)[oldsave]; })";
$sv = "({ ix = POPi; AvARRAY(POPs)[ix]; })";
} else {
$sv = "AvARRAY($av)[$ix]";
}
Expand Down

0 comments on commit 427d506

Please sign in to comment.