Skip to content

Commit

Permalink
Fix HLLCompiler to use PackfileView. This fixes several tests, though…
Browse files Browse the repository at this point in the history
… it does add in the weirdness that the .evalpmc() method doesn't do anything with Eval.
  • Loading branch information
Whiteknight committed Apr 20, 2012
1 parent 843d395 commit d61cabb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions compilers/pct/src/PCT/HLLCompiler.pir
Expand Up @@ -555,6 +555,7 @@ Transform PAST C<source> into POST.
$P0 = compreg 'PIR'
$P1 = $P0(source)
$P1 = $P1.'main_sub'()
.return($P1)
.end
Expand Down
5 changes: 5 additions & 0 deletions compilers/pct/src/POST/Compiler.pir
Expand Up @@ -433,9 +433,14 @@ the sub.
compiler = compreg $S0
$I0 = isa compiler, 'Sub'
if $I0 goto compiler_sub
$I0 = isa compiler, 'PackfileView'
if $I0 goto compiler_packfileview
.tailcall compiler.'compile'(source, options :flat :named)
compiler_sub:
.tailcall compiler(source, options :flat :named)
compiler_packfileview:
$P0 = compiler.'main_sub'()
.tailcall $P0(source, options :flat :named)
.end
=back
Expand Down
1 change: 1 addition & 0 deletions t/profiling/profiling.t
Expand Up @@ -178,6 +178,7 @@ CODE
push_eh eh
f = comp(s)
f = f."main_sub"()
f()
pop_eh
Expand Down

0 comments on commit d61cabb

Please sign in to comment.